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 | |
parent | 6bd41ed0722712aa338a262907de66a7a08f41d9 (diff) | |
download | taipan-1e2d8abd29ff4717404f6527b4df7cd27d89c991.tar.gz |
Restore "overburdened" prompt in new_gun(), costs 40 bytes, now 8781
-rw-r--r-- | NOTES.txt | 8 | ||||
-rw-r--r-- | messages.msg | 1 | ||||
-rw-r--r-- | taipan.c | 12 |
3 files changed, 11 insertions, 10 deletions
@@ -120,11 +120,9 @@ Deliberate differences between the Apple II and Atari ports: Disabling these on an 800 is non-trivial. On XL/XE machines, they are disabled to mimic the Apple version. -19. A couple of prompts have been removed. "Limit your firm name - to 22 characters" is gone (instead, you just can't type more than - the limit). "Your ship would be overburdened", when you try to buy - a gun you don't have room for, is gone (instead, the game just - doesn't offer to sell you a gun). +19. One prompt has been removed: "Limit your firm name to 22 + characters" is gone (instead, you just can't type more than + the limit). 20. The game doesn't beep at you when you enter something incorrect. This is a stylistic decision (I hate error beeps). It does play the "bad diff --git a/messages.msg b/messages.msg index 2c8a5dd..bb03aab 100644 --- a/messages.msg +++ b/messages.msg @@ -166,3 +166,4 @@ whouse_theft "Messenger reports large theft\r\nfrom warehouse" has_sent_lieutenant "Li Yuen has sent a Lieutenant,\r\nTaipan. He says his admiral wishes\r\nto see you in Hong Kong, posthaste!\r\n" beaten_robbed "You've been beaten up and\r\nrobbed of " in_cash " in cash" +overburdened "\n\nYour ship would be overburdened" @@ -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; } /* |