oops, miscalculated box width

This commit is contained in:
Kistaro Windrider 2025-05-03 17:04:29 -07:00
parent 80bb848468
commit 71a7351d77
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -730,7 +730,7 @@ function gun_base:ammo_upgrade_opt()
return {
icon=self.icon,
hdr=self.hdr,
body=[[----------AMMO
body=[[--------AMMO
more shots
before you
@ -754,20 +754,22 @@ function gun_base:rate_upgrade_opt()
return {
icon=self.icon,
hdr=self.hdr,
body=[[----------RATE
body=[[--------RATE
reduce delay
between shots
in frames.
between each
shot when
firing.
fractions
add up across
upgrades.
fractions
not shown,
but they
add up.
is: ]]..tostr(c)..[[
minus: ]]..tostr(c-newc)..[[
is: ]]..tostr(c)..[[f
minus: ]]..tostr(c-newc)..[[f
----------
total: ]]..tostr(newc),
total: ]]..tostr(newc).."f",
action=function()
self.cooldown=newc>>16
self.cd_remainder=newc-rawnewc
@ -916,12 +918,12 @@ blast_gun = mknew(gun_base.new{
maxammo = 5,
munition = blast,
hdr = "bLASTER",
body= [[-----------GUN
body= [[---------GUN
plasma orb
cuts through
enemies.
slow.
slow.
ammo: 5
rate: 1/2sec
@ -990,7 +992,7 @@ protron_gun_p = mknew(protron_gun_e.new{
maxammo = 20,
cooldown = 0x0.0018,
hdr = "pROTRON",
body = [[-----------GUN
body = [[---------GUN
spray shots
in a dense
@ -1053,10 +1055,10 @@ vulcan_gun_p = mknew(vulcan_gun_e.new{
munition=vulcan_p,
maxammo = 100,
hdr = "vULCAN",
body = [[-----------GUN
body = [[---------GUN
rapid fire in
a v shape.
rapidly fire
in a v.
ammo: 100
rate: 20/sec
@ -1147,11 +1149,11 @@ function player:small_upgrade_opts()
local ret = {{
icon=53,
hdr="hull",
body=[[----------SHIP
body=[[--------SHIP
survive more
unshielded
hits.
hits.
+2 hp]],
action=function()
@ -1161,7 +1163,7 @@ survive more
},{
icon=52,
hdr="capacity",
body=[[--------SHIELD
body=[[------SHIELD
shield can
absorb more
@ -1176,10 +1178,11 @@ recharging.
},{
icon=1,
hdr="thrusters",
body=[[----------SHIP
body=[[--------SHIP
move faster,
steer faster.]],
steer more
sharply.]],
action=function()
--maxspd thrust drag
self.maxspd += 0.5
@ -1189,7 +1192,7 @@ steer faster.]],
},{
icon=20,
hdr="magnet",
body=[[----------SHIP
body=[[--------SHIP
pick up xp
from further
@ -1203,11 +1206,12 @@ from further
add(ret, {
icon = 6,
hdr = "recharge",
body=[[--------SHIELD
body=[[------SHIELD
shield energy
refill rate
improves.
shield will
recharge at
a faster
pace.
]] .. tostr(ceil(100 * cdr / self.shieldcooldown)) .. "% faster",
action = function()
@ -1220,13 +1224,14 @@ shield energy
add(ret, {
icon = 6,
hdr = "recovery",
body=[[--------SHIELD
body=[[------SHIELD
reduce the
delay before
shield starts
recovering
after a hit.
delay after
a hit before
shield will
start to
recharge.
]] .. tostr(ceil(100 * pr / self.shieldpenalty)) .. "% shorter",
action = function()