From 4f3bfa57d582d1f8a20da0c34cc7c94563570008 Mon Sep 17 00:00:00 2001 From: Chris Bradley <1029chris@gmail.com> Date: Sat, 19 Feb 2022 13:40:34 -0800 Subject: added back local variables, some more tokens gained target player now changes every second --- pickups.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'pickups.lua') diff --git a/pickups.lua b/pickups.lua index 41fa66c..cd0de85 100644 --- a/pickups.lua +++ b/pickups.lua @@ -15,8 +15,7 @@ function addpickup(x, y, type) local pickup = {} - x = x - y = y + --x,y = x,y type = type or rnd({"fastshoot", "3shoot"}) function pickup.draw(pickup) @@ -38,7 +37,7 @@ function addpickup(x, y, type) end function pickup:affect(player) - pickupcolor = 8 --health + local pickupcolor = 8 --health if type == "fastshoot" then player.shootspeed = 0.17 pickupcolor = 12 -- cgit