summaryrefslogtreecommitdiff
path: root/objects
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-03-12 23:45:16 +0800
committerEltrac <hi@guhub.cn>2025-03-12 23:45:16 +0800
commit8feb250231335a90d358f0ebdd53c4f29df60831 (patch)
tree0cd099d02f9eccfc807953943d07be053b1b1f3e /objects
parent58e52cdaef4bbacb0989038d5a75994591bba815 (diff)
feat(audio): special sound for shiny hearts
Diffstat (limited to 'objects')
-rw-r--r--objects/Player.lua4
1 files changed, 1 insertions, 3 deletions
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)