From 1e2d8abd29ff4717404f6527b4df7cd27d89c991 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 15 May 2021 15:14:01 -0400 Subject: Restore "overburdened" prompt in new_gun(), costs 40 bytes, now 8781 --- taipan.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'taipan.c') diff --git a/taipan.c b/taipan.c index 513c237..659d625 100644 --- a/taipan.c +++ b/taipan.c @@ -864,9 +864,7 @@ void new_gun(void) { amount = gunamt() + 500; - if((cash < amount) || (hold < 10)) { - return; - } + if(cash < amount) return; compradores_report(); // cputs("Do you wish to buy a ship's gun\nfor "); @@ -875,14 +873,18 @@ void new_gun(void) { cprint_taipan_prompt(); if(yngetc(0) == 'y') { + if(hold < 10) { + print_msg(M_overburdened); + cprint_taipan_bang(); + bad_joss_timed_getch(); + return; + } cash -= amount; hold -= 10; guns += 1; } port_stats(); - - return; } /* -- cgit v1.2.3