actually fix starting ammo

also improve box overflow
This commit is contained in:
Kistaro Windrider 2025-01-26 12:50:27 -08:00
parent 44c70a028f
commit 26c3a5b91e
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -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,8 +846,9 @@ blast_gun = mknew(gun_base.new{
actually_shoot = spawn_one(blast),
hdr = "bLASTER",
body= [[plasma orb
floats through
cuts through
enemies.
slow.
ammo: 5
rate: 1/2sec
@ -917,7 +918,8 @@ 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
@ -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