aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-01-07 06:22:02 -0500
committerB. Watson <yalhcru@gmail.com>2016-01-07 06:22:02 -0500
commit2ae2b1397ec74e6535f5a5b5b0be8f0d0d4f4965 (patch)
tree8ed7e3d9034bc0c50c7f6d96835e843087108ce6
parent4fdd52d694a35ad9ef2db630739df15e1752a475 (diff)
downloadtaipan-2ae2b1397ec74e6535f5a5b5b0be8f0d0d4f4965.tar.gz
added more sounds
-rw-r--r--sounds.h35
-rw-r--r--taipan.c15
2 files changed, 28 insertions, 22 deletions
diff --git a/sounds.h b/sounds.h
index 7b72734..8df6aec 100644
--- a/sounds.h
+++ b/sounds.h
@@ -26,8 +26,6 @@ sunk X of 'em *
X ran away *
storm taipan! *
we made it! (after a storm) *
-
-call 2521:
wu_bailout (very well, good joss) *
trying to enter an empty firm name
we got 'em all! *
@@ -42,31 +40,26 @@ we made it! (after combat) *
got away in combat *
you're already here! *
price has risen (dropped) *
-
-call 2518:
-there's nothing there (throwing cargo)
+there's nothing there (throwing cargo) *
ship overloaded *
-you have only (trying to put too much in warehouse)
-you have only X in cash (paying Wu back, depositing in bank)
-you have only X in the bank
-warehouse will only hold an additional
-warehouse is full
-won't loan you so much
+you have only (trying to put too much in warehouse) *
+you have only X in cash (paying Wu back, depositing in bank) *
+you have only X in the bank *
+warehouse will only hold an additional *
+warehouse is full *
+won't loan you so much *
you have no cargo (trying to put in warehouse)
-
under_attack_sound: CALL 2512
X hostile ships approaching *
-hit in combat
-
-call 2512:
-beaten & robbed
-bodyguards killed
+hit in combat *
+beaten & robbed *
+bodyguards killed *
very well, the game is over (wu_bailout) *
-buggers hit a gun
-we've been hit
-what shall we do?
-we're going down (storm)
+buggers hit a gun *
+we've been hit *
+what shall we do? *
+we're going down (storm) *
X ships of li yuen's pirate fleet *
X hostile ships approaching *
diff --git a/taipan.c b/taipan.c
index 201979f..e3aee52 100644
--- a/taipan.c
+++ b/taipan.c
@@ -584,6 +584,7 @@ int sea_battle(int id, int num_ships) {
gotoxy(0, 3);
clrtoeol();
cputs("Taipan, what shall we do??\r\n(Fight, Run, Throw cargo)");
+ under_attack_sound();
// timeout(-1);
while ((input != 'f') &&
(input != 'r') &&
@@ -849,6 +850,7 @@ int sea_battle(int id, int num_ships) {
gotoxy(0, 3);
clrtoeol();
cputs("There's nothing there, Taipan!");
+ good_joss_sound();
// gotoxy(0, 18);
// clrtobot();
@@ -955,6 +957,7 @@ int sea_battle(int id, int num_ships) {
gotoxy(0, 3);
clrtoeol();
cputs("We've been hit, Taipan!!");
+ under_attack_sound();
timed_getch(TMOUT_3S);
@@ -974,6 +977,7 @@ int sea_battle(int id, int num_ships) {
gotoxy(0, 3);
clrtoeol();
cputs("The buggers hit a gun, Taipan!!");
+ under_attack_sound();
fight_stats(num_ships, orders);
timed_getch(TMOUT_3S);
@@ -1699,11 +1703,13 @@ void transfer(void)
} else if (in_use == 10000) {
gotoxy(0, 21);
cputs("Your warehouse is full, Taipan!");
+ good_joss_sound();
} else {
gotoxy(0, 21);
cputs("Your warehouse will only hold an\r\nadditional ");
cprintulong(10000 - in_use);
cputs(", Taipan!");
+ good_joss_sound();
timed_getch(TMOUT_5S);
}
@@ -1713,6 +1719,7 @@ void transfer(void)
cputs("You have only ");
cprintulong(hold_[i]);
cputs(", Taipan.\r\n");
+ good_joss_sound();
timed_getch(TMOUT_5S);
}
@@ -1915,6 +1922,7 @@ void quit(void)
if(sunk) {
cputs("We're going down, Taipan!!\r\n");
+ under_attack_sound();
timed_getch(TMOUT_5S);
final_stats();
@@ -2191,6 +2199,7 @@ void elder_brother_wu(void)
cputs("Taipan, you only have ");
cputs(fancy_num);
cputs("\r\nin cash.\r\n");
+ good_joss_sound();
timed_getch(TMOUT_5S);
}
@@ -2216,7 +2225,7 @@ void elder_brother_wu(void)
break;
} else {
cputs("\r\n\r\nHe won't loan you so much, Taipan!");
-
+ good_joss_sound();
timed_getch(TMOUT_5S);
}
}
@@ -2239,6 +2248,7 @@ void elder_brother_wu(void)
cputs(" of your bodyguards have been killed\r\n");
cputs("by cutthroats and you have been robbed\r\n");
cputs("of all of your cash, Taipan!!\r\n");
+ under_attack_sound();
timed_getch(TMOUT_5S);
}
@@ -2701,6 +2711,7 @@ void visit_bank(void)
cputs("Taipan, you only have ");
cputs(fancy_num);
cputs("\r\nin cash.\r\n");
+ good_joss_sound();
timed_getch(TMOUT_5S);
}
@@ -2727,6 +2738,7 @@ void visit_bank(void)
cputs("Taipan, you only have ");
cputs(fancy_num);
cputs("\r\nin the bank.");
+ good_joss_sound();
timed_getch(TMOUT_5S);
}
@@ -2910,6 +2922,7 @@ int main(void) {
cputs("robbed of ");
cputs(fancy_num);
cputs(" in cash, Taipan!!\r\n");
+ under_attack_sound();
timed_getch(TMOUT_5S);
}