mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 13:07:16 +00:00
new sound effects
This commit is contained in:
parent
0ced76c4f2
commit
f900ec7443
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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
BIN
sounds/apple.ogg
Normal file
Binary file not shown.
BIN
sounds/die-kraken.ogg
Normal file
BIN
sounds/die-kraken.ogg
Normal file
Binary file not shown.
BIN
sounds/elementalgem.ogg
Normal file
BIN
sounds/elementalgem.ogg
Normal file
Binary file not shown.
BIN
sounds/levelup.ogg
Normal file
BIN
sounds/levelup.ogg
Normal file
Binary file not shown.
BIN
sounds/seen-frog1.ogg
Normal file
BIN
sounds/seen-frog1.ogg
Normal file
Binary file not shown.
BIN
sounds/seen-frog2.ogg
Normal file
BIN
sounds/seen-frog2.ogg
Normal file
Binary file not shown.
BIN
sounds/seen-frog3.ogg
Normal file
BIN
sounds/seen-frog3.ogg
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user