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