From 26c3a5b91e06478991ad0e39908a5dad21bff5ad Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Sun, 26 Jan 2025 12:50:27 -0800 Subject: [PATCH] actually fix starting ammo also improve box overflow --- vacuum_gambit.p8 | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/vacuum_gambit.p8 b/vacuum_gambit.p8 index 1ed8a2c..817edad 100644 --- a/vacuum_gambit.p8 +++ b/vacuum_gambit.p8 @@ -691,9 +691,9 @@ function gun_base:action() local item = self.new() item.ammo = item.maxammo if not primary_ship.special_guns then - primary_ship.special_guns = {self.new()} + primary_ship.special_guns = {item} else - add(primary_ship.special_guns, self.new()) + add(primary_ship.special_guns, item) end end @@ -846,11 +846,12 @@ blast_gun = mknew(gun_base.new{ actually_shoot = spawn_one(blast), hdr = "bLASTER", body= [[plasma orb -floats through - enemies. +cuts through +enemies. +slow. ammo: 5 -rate: 1 / 2sec +rate: 1/2sec dmg: 4 ]], }) @@ -917,10 +918,11 @@ protron_gun_p = mknew(protron_gun_e.new{ cooldown = 0x0.0018, hdr = "pROTRON", body = [[spray shots -in a dense arc. +in a dense +arc. ammo: 20 -rate: 2 / sec +rate: 2/sec dmg: 1 ]], }) @@ -977,7 +979,8 @@ vulcan_gun_p = mknew(vulcan_gun_e.new{ maxammo = 100, hdr = "vULCAN", body = [[rapid fire -in a v shape. +in a v +shape. ammo: 100 rate: 20/sec