aboutsummaryrefslogtreecommitdiff
path: root/taipan.c
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-05-15 15:14:01 -0400
committerB. Watson <yalhcru@gmail.com>2021-05-17 13:02:55 -0400
commit1e2d8abd29ff4717404f6527b4df7cd27d89c991 (patch)
treef206fac5145fce28f56b81353a9b73b114b4ce4f /taipan.c
parent6bd41ed0722712aa338a262907de66a7a08f41d9 (diff)
downloadtaipan-1e2d8abd29ff4717404f6527b4df7cd27d89c991.tar.gz
Restore "overburdened" prompt in new_gun(), costs 40 bytes, now 8781
Diffstat (limited to 'taipan.c')
-rw-r--r--taipan.c12
1 files changed, 7 insertions, 5 deletions
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;
}
/*