diff options
author | B. Watson <yalhcru@gmail.com> | 2021-05-15 15:14:01 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2021-05-17 13:02:55 -0400 |
commit | 1e2d8abd29ff4717404f6527b4df7cd27d89c991 (patch) | |
tree | f206fac5145fce28f56b81353a9b73b114b4ce4f /taipan.c | |
parent | 6bd41ed0722712aa338a262907de66a7a08f41d9 (diff) | |
download | taipan-1e2d8abd29ff4717404f6527b4df7cd27d89c991.tar.gz |
Restore "overburdened" prompt in new_gun(), costs 40 bytes, now 8781
Diffstat (limited to 'taipan.c')
-rw-r--r-- | taipan.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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; } /* |