offer gun upgrades
This commit is contained in:
		| @@ -1868,7 +1868,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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user