mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 13:07:16 +00:00
steamhiss sound
This commit is contained in:
parent
135e3cd336
commit
680db1be32
5
game.cpp
5
game.cpp
@ -2467,9 +2467,12 @@ void checkTide(cell *c) {
|
||||
int id = alchemyval(c, 0);
|
||||
if(id < 96) {
|
||||
if(c->wall == waNone || isWateryOrBoat(c) || c->wall == waVinePlant) {
|
||||
if(isWateryOrBoat(c))
|
||||
playSound(c, "steamhiss");
|
||||
c->wall = waMagma;
|
||||
if(itemBurns(c->item)) {
|
||||
addMessage(XLAT("%The1 burns!", c->item)), c->item = itNone;
|
||||
playSound(c, "steamhiss", 30);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -5296,11 +5299,11 @@ void moverefresh(bool turn = true) {
|
||||
else if(c->wall == waMagma) {
|
||||
if(c->monst == moSalamander) c->stuntime = max<int>(c->stuntime, 1);
|
||||
else if(c->monst && !survivesPoison(c->monst, c->wall)) {
|
||||
playSound(c, "splash"+pick12());
|
||||
if(isNonliving(c->monst))
|
||||
addMessage(XLAT("%The1 is destroyed by lava!", c->monst));
|
||||
else
|
||||
addMessage(XLAT("%The1 is killed by lava!", c->monst));
|
||||
playSound(c, "steamhiss", 70);
|
||||
fallMonster(c, AF_FALL);
|
||||
}
|
||||
}
|
||||
|
@ -66,6 +66,7 @@ click: https://www.freesound.org/people/KorgMS2000B/sounds/54406/
|
||||
pickup-mirror: https://www.freesound.org/people/wjl/sounds/267889/
|
||||
message-roar: https://www.freesound.org/people/JoelAudio/sounds/85568/
|
||||
opengate: https://www.freesound.org/people/Qat/sounds/107640/
|
||||
steamhiss: http://freesound.org/people/toiletrolltube/sounds/181488/
|
||||
|
||||
from Freesounds, under the CC BY 3.0 license:
|
||||
=============================================
|
||||
|
BIN
sounds/steamhiss.ogg
Normal file
BIN
sounds/steamhiss.ogg
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user