aboutsummaryrefslogtreecommitdiff
path: root/pickups.lua
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2022-02-10 18:22:43 -0800
committer1029chris <1029chris@gmail.com>2022-02-10 18:22:43 -0800
commit3c5f4bf5106d93939c6441f4da70e7830b654a34 (patch)
tree79908379d727029505b4f6fb94475fc952726be0 /pickups.lua
parent261d79999931657a25512c60e53fe322bbbf6f9a (diff)
LASERS!!!!!!!
Diffstat (limited to 'pickups.lua')
-rw-r--r--pickups.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/pickups.lua b/pickups.lua
index c5f8ea2..9c06ada 100644
--- a/pickups.lua
+++ b/pickups.lua
@@ -4,7 +4,7 @@ function randompickups.update()
pickuptimer -= 1/60
if pickuptimer < 0 then
pickuptimer = 10
- if rnd(100) > 90 then
+ if rnd(100) > 85 then
addpickup(128, rnd(80)+20)
end
end
@@ -17,7 +17,7 @@ function addpickup(x, y, type)
local pickup = {}
pickup.x = x
pickup.y = y
- pickup.type = type or rnd({"health", "fastshoot", "3shoot"})
+ pickup.type = type or rnd({"health", "health", "fastshoot", "3shoot"})
pickup.sprite = 4
if (pickup.type == "fastshoot") then