From ce14d03669f9bf53a2777c96add124f9701541bd Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Sat, 3 May 2025 16:38:39 -0700 Subject: [PATCH] offer gun upgrades --- vacuum_gambit.p8 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vacuum_gambit.p8 b/vacuum_gambit.p8 index bd75f78..24cc6ba 100644 --- a/vacuum_gambit.p8 +++ b/vacuum_gambit.p8 @@ -1868,7 +1868,11 @@ end -- ordinary upgrades function small_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 -->8