From 8feb250231335a90d358f0ebdd53c4f29df60831 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Wed, 12 Mar 2025 23:45:16 +0800 Subject: feat(audio): special sound for shiny hearts --- objects/Player.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'objects/Player.lua') diff --git a/objects/Player.lua b/objects/Player.lua index 9546162..e53192d 100644 --- a/objects/Player.lua +++ b/objects/Player.lua @@ -75,7 +75,7 @@ function Player:shoot(target) -- if no charging time is set, then set it and shoot no bullet if not G.player.chargingStarted then G.player.chargingStarted = G.time - return false + return end -- if charging time is set, then check if it's over 1 second -- if not, shoot no bullet @@ -91,8 +91,6 @@ function Player:shoot(target) table.remove(self.hearts) G.player.shootCooldown = G.time + config.playerShootCooldown - - return true end function Player:onContact(other, contact) -- cgit v1.2.3