placeholders for card draw

This commit is contained in:
Kistaro Windrider 2025-01-26 00:30:09 -08:00
parent 58da8e6dc3
commit 22d13121a9
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -1757,6 +1757,66 @@ function spawn_spec_gun_at(x, y, gunt)
gun_p:spawn_at(x, y) gun_p:spawn_at(x, y)
end end
-->8
-- upgrade options
-- all these return
-- a [2] of rearm_t:
--
-- s: sprite id
-- hdr: title text
-- body: text
-- action: callback
-- (method)
-- add a new gun
function spec_gun_opts()
return {{
s=1,
hdr="placeholder",
body="placeholder",
action = function() end,
},
{
s=1,
hdr="placeholder",
body="placeholder",
action = function() end,
}}
end
-- major upgrades
function big_opts()
return {{
s=1,
hdr="placeholder",
body="placeholder",
action = function() end,
},
{
s=1,
hdr="placeholder",
body="placeholder",
action = function() end,
}}
end
-- ordinary upgrades
function small_opts()
return {{
s=1,
hdr="placeholder",
body="placeholder",
action = function() end,
},
{
s=1,
hdr="placeholder",
body="placeholder",
action = function() end,
}}
end
-->8 -->8
-- rearm screen -- rearm screen
@ -1828,17 +1888,14 @@ function rearm_mode:shuffle()
-- these will be placeholders -- these will be placeholders
-- until the upgrade deck -- until the upgrade deck
-- is a thing that exists -- is a thing that exists
self.options = {{ local lev = primary_ship.level + 1
s=1, if lev == 4 or lev == 12 then
hdr=" hull", self.options = add_gun_opts()
body = "\n +1\n max\n health", elseif lev % 4 == 0 then
action = function() end, self.options = big_opts()
},{ else
s=37, self.options = small_opts()
hdr=" vulc", end
body = "\nplaceholder",
action = function() end,
}}
end end
function rearm_mode:draw() function rearm_mode:draw()