1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 06:27:17 +00:00

new sound effects

This commit is contained in:
Zeno Rogue 2020-07-07 21:24:56 +02:00
parent 0ced76c4f2
commit f900ec7443
10 changed files with 13 additions and 1 deletions

View File

@ -319,6 +319,7 @@ EX void spill(cell* c, eWall t, int rad) {
EX void degradeDemons() {
addMessage(XLAT("You feel more experienced in demon fighting!"));
playSound(cwt.at, "levelup");
int dcs = isize(dcal);
for(int i=0; i<dcs; i++) {
cell *c = dcal[i];
@ -428,7 +429,10 @@ EX void killMonster(cell *c, eMonster who, flagtype deathflags IS(0)) {
c->hitpoints = 0;
c->stuntime = 1;
cell *head = kraken::head(c);
if(kraken::totalhp(head) == 0) kraken::kill(head, who);
if(kraken::totalhp(head) == 0) {
kraken::kill(head, who);
playSound(head, "die-kraken");
}
return;
}

View File

@ -251,6 +251,7 @@ EX bool collectItem(cell *c2, bool telekinesis IS(false)) {
if(ch == '*') playSound(c2, "pickup-gem");
else if(ch == '$' || ch == 'x') playSound(c2, "pickup-gold");
else if(ch == '%' || ch == ';') playSound(c2, "pickup-potion");
else if(c2->item == itApple) playSound(c2, "apple");
else playSound(c2, "pickup-scroll");
}
}
@ -460,6 +461,7 @@ EX void gainItem(eItem it) {
gainItem(itElemental);
gainItem(itElemental);
addMessage(XLAT("You construct some Elemental Gems!", it) + itemcounter(items[itElemental]));
playSound(cwt.at, "elementalgem");
}
if(it == itBounty)

View File

@ -39,6 +39,12 @@ EX void playSeenSound(cell *c) {
playSound(c, "seen-earth");
else if(c->monst == moAirElemental)
playSound(c, "seen-air");
else if(c->monst == moPhaser)
playSound(c, "seen-frog1");
else if(c->monst == moFrog)
playSound(c, "seen-frog2");
else if(c->monst == moVaulter)
playSound(c, "seen-frog3");
else if(c->monst == moWaterElemental)
playSound(c, "seen-water");
else if(c->monst == moFireElemental)

BIN
sounds/apple.ogg Normal file

Binary file not shown.

BIN
sounds/die-kraken.ogg Normal file

Binary file not shown.

BIN
sounds/elementalgem.ogg Normal file

Binary file not shown.

BIN
sounds/levelup.ogg Normal file

Binary file not shown.

BIN
sounds/seen-frog1.ogg Normal file

Binary file not shown.

BIN
sounds/seen-frog2.ogg Normal file

Binary file not shown.

BIN
sounds/seen-frog3.ogg Normal file

Binary file not shown.