3 Commits

Author SHA1 Message Date
b227844d12 Restyle ship stat upgrades. 2025-05-03 16:48:18 -07:00
ce14d03669 offer gun upgrades 2025-05-03 16:38:39 -07:00
ccd2c64103 update gun pick description style 2025-05-03 16:38:26 -07:00

View File

@ -916,7 +916,9 @@ blast_gun = mknew(gun_base.new{
maxammo = 5, maxammo = 5,
munition = blast, munition = blast,
hdr = "bLASTER", hdr = "bLASTER",
body= [[plasma orb body= [[-----------GUN
plasma orb
cuts through cuts through
enemies. enemies.
slow. slow.
@ -988,7 +990,9 @@ protron_gun_p = mknew(protron_gun_e.new{
maxammo = 20, maxammo = 20,
cooldown = 0x0.0018, cooldown = 0x0.0018,
hdr = "pROTRON", hdr = "pROTRON",
body = [[spray shots body = [[-----------GUN
spray shots
in a dense in a dense
arc. arc.
@ -1049,9 +1053,10 @@ vulcan_gun_p = mknew(vulcan_gun_e.new{
munition=vulcan_p, munition=vulcan_p,
maxammo = 100, maxammo = 100,
hdr = "vULCAN", hdr = "vULCAN",
body = [[rapid fire body = [[-----------GUN
in a v
shape. rapid fire in
a v shape.
ammo: 100 ammo: 100
rate: 20/sec rate: 20/sec
@ -1142,7 +1147,11 @@ function player:small_upgrade_opts()
local ret = {{ local ret = {{
icon=53, icon=53,
hdr="hull", hdr="hull",
body=[[ armor body=[[----------SHIP
survive more
unshielded
hits.
+2 hp]], +2 hp]],
action=function() action=function()
@ -1151,8 +1160,13 @@ function player:small_upgrade_opts()
end, end,
},{ },{
icon=52, icon=52,
hdr="shield", hdr="capacity",
body=[[ capacity body=[[--------SHIELD
shield can
absorb more
hits before
recharging.
+1 hp]], +1 hp]],
action=function() action=function()
@ -1162,10 +1176,10 @@ function player:small_upgrade_opts()
},{ },{
icon=1, icon=1,
hdr="thrusters", hdr="thrusters",
body=[[performance body=[[----------SHIP
move faster, move faster,
steer faster]], steer faster.]],
action=function() action=function()
--maxspd thrust drag --maxspd thrust drag
self.maxspd += 0.5 self.maxspd += 0.5
@ -1174,12 +1188,12 @@ steer faster]],
end, end,
},{ },{
icon=20, icon=20,
hdr="hull", hdr="magnet",
body=[[ magnet body=[[----------SHIP
pick up xp pick up xp
from further from further
away]], away.]],
action=function () action=function ()
self.magnet += 2 self.magnet += 2
end, end,
@ -1188,8 +1202,12 @@ from further
if cdr > 0 then if cdr > 0 then
add(ret, { add(ret, {
icon = 6, icon = 6,
hdr = "shield", hdr = "recharge",
body=[[charge rate body=[[--------SHIELD
shield energy
refill rate
improves.
]] .. tostr(ceil(100 * cdr / self.shieldcooldown)) .. "% faster", ]] .. tostr(ceil(100 * cdr / self.shieldcooldown)) .. "% faster",
action = function() action = function()
@ -1201,8 +1219,14 @@ from further
if pr > 0 then if pr > 0 then
add(ret, { add(ret, {
icon = 6, icon = 6,
hdr = "shield", hdr = "recovery",
body=[[disruption body=[[--------SHIELD
reduce the
delay before
shield starts
recovering
after a hit.
]] .. tostr(ceil(100 * pr / self.shieldpenalty)) .. "% shorter", ]] .. tostr(ceil(100 * pr / self.shieldpenalty)) .. "% shorter",
action = function() action = function()
@ -1863,7 +1887,11 @@ end
-- ordinary upgrades -- ordinary upgrades
function small_opts() function small_opts()
-- todo: include gun opts -- todo: include gun opts
return pick(primary_ship:small_upgrade_opts(), 2) if(not primary_ship.special_guns) return pick(primary_ship:small_upgrade_opts(), 2)
local opts = {rnd(primary_ship:small_upgrade_opts())}
for g in all(primary_ship.special_guns) do
add(opts, rnd(g:small_upgrade_opts()))
end
end end
-->8 -->8