placeholders for card draw
This commit is contained in:
		| @@ -1757,6 +1757,66 @@ function spawn_spec_gun_at(x, y, gunt) | ||||
|  gun_p:spawn_at(x, y) | ||||
| 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 | ||||
| -- rearm screen | ||||
|  | ||||
| @@ -1828,17 +1888,14 @@ function rearm_mode:shuffle() | ||||
|  -- these will be placeholders | ||||
|  -- until the upgrade deck | ||||
|  -- is a thing that exists | ||||
|  self.options = {{ | ||||
|   s=1, | ||||
|   hdr=" hull", | ||||
|   body = "\n    +1\n   max\n  health", | ||||
|   action = function() end, | ||||
|  },{ | ||||
|   s=37, | ||||
|   hdr=" vulc", | ||||
|   body = "\nplaceholder", | ||||
|   action = function() end, | ||||
|  }} | ||||
|  local lev = primary_ship.level + 1 | ||||
|  if lev == 4 or lev == 12 then | ||||
|   self.options = add_gun_opts() | ||||
|  elseif lev % 4 == 0 then | ||||
|   self.options = big_opts() | ||||
|  else | ||||
|   self.options = small_opts() | ||||
|  end | ||||
| end | ||||
|  | ||||
| function rearm_mode:draw() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user