aboutsummaryrefslogtreecommitdiff
path: root/taipan.c
diff options
context:
space:
mode:
Diffstat (limited to 'taipan.c')
-rw-r--r--taipan.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/taipan.c b/taipan.c
index 3200ef2..8722400 100644
--- a/taipan.c
+++ b/taipan.c
@@ -22,6 +22,9 @@
1000 capacity, 20 guns, and 1 billion cash and bank. */
// #define TIMEWARP
+/* define this to start the game in a 99% damaged ship */
+// #define ALMOST_DEAD
+
/**** atari-specific stuff */
/* values returned by cgetc() for backspace & enter keys */
@@ -520,10 +523,15 @@ int sea_battle(int id, int num_ships) {
fight_stats(num_ships, orders);
while(num_ships > 0) {
+ if(damage >= capacity) return 4;
+
status = 100L - ((damage * 100L / capacity));
+ /* // I think this is a problem:
if(status <= 0) {
return 4;
}
+ */
+
flushinp();
gotoxy(0, 3);
clrtoeol();
@@ -1179,6 +1187,8 @@ void cash_or_guns(void)
}
cputc(choice);
+ capacity = 60;
+ damage = 0;
if (choice == '1')
{
cash = 400;
@@ -1208,6 +1218,9 @@ void cash_or_guns(void)
li = 1;
bp = 7;
#endif
+#ifdef ALMOST_DEAD
+ damage = capacity - 1;
+#endif
}
return;