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 --- NOTES.txt | 8 +++----- messages.msg | 1 + taipan.c | 12 +++++++----- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/NOTES.txt b/NOTES.txt index eb6ea21..9ea7a9a 100644 --- a/NOTES.txt +++ b/NOTES.txt @@ -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" 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