splashing sounds when pushing things into water/chasms; barrels produce permanent walls

This commit is contained in:
Zeno Rogue 2019-01-11 02:25:43 +01:00
parent d982407d5a
commit df73ccb4c2
1 changed files with 4 additions and 2 deletions

View File

@ -7555,11 +7555,13 @@ void pushThumper(cell *th, cell *cto) {
}
else if(cellUnstableOrChasm(cto)) {
addMessage(XLAT("%The1 fills the hole!", w));
cto->wall = waTempFloor;
cto->wall = w == waThumperOn ? waTempFloor : waNone;
playSound(cto, "click");
}
else if(isWatery(cto)) {
addMessage(XLAT("%The1 fills the hole!", w));
cto->wall = waTempBridge;
cto->wall = w == waThumperOn ? waTempBridge : waNone;
playSound(cto, "splash"+pick12());
}
else
cto->wall = w;