From 995f96d8af37320da58733aeb4b2107af25ab668 Mon Sep 17 00:00:00 2001 From: Chris Bradley <1029chris@gmail.com> Date: Sun, 20 Feb 2022 15:51:09 -0800 Subject: Turns out "\" is division + floor, thats cool! Saved a little tokens implementing it all over --- players.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'players.lua') diff --git a/players.lua b/players.lua index bc5a095..4765096 100644 --- a/players.lua +++ b/players.lua @@ -55,7 +55,7 @@ function addplayer(x, y, sprite, spriteup, spritedwn, bulletsprite) sfx(11, 0) --killed sfx(22, 1) --rewind beat elseif player.health <= 0 then - currentscore = ceil(currentscore * 0.5) --halves score if coop + currentscore = currentscore \ 0.5 --halves score if coop sfx(11, 0) player.inv = 5 end -- cgit