From d2353dd13c6bf6d78868e2e950be797361065b3d Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 15 Oct 2017 01:10:06 +0200 Subject: [PATCH] living monsters awaken terracotta; salamanders stunned by fire too --- game.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/game.cpp b/game.cpp index 3ee6b457..944c65c9 100644 --- a/game.cpp +++ b/game.cpp @@ -3022,6 +3022,8 @@ void moveEffect(cell *ct, cell *cf, eMonster m) { if(cf) destroyWeakBranch(cf, ct, m); mayExplodeMine(ct, m); + + if(!isNonliving(m)) terracottaAround(ct); if(ct->wall == waMineUnknown && !ct->item && !ignoresPlates(m)) ct->landparam |= 2; // mark as safe @@ -5259,7 +5261,8 @@ void moverefresh(bool turn = true) { } else if(isFire(c)) { - if(c->monst && !survivesFire(c->monst) && !isWorm(c->monst)) { + if(c->monst == moSalamander) c->stuntime = max(c->stuntime, 1); + else if(c->monst && !survivesFire(c->monst) && !isWorm(c->monst)) { addMessage(XLAT("%The1 burns!", c->monst)); if(isBull(c->monst)) { addMessage(XLAT("Fire is extinguished!")); @@ -6647,6 +6650,11 @@ void terracotta(cell *c) { } } +void terracottaAround(cell *c) { + forCellEx(c2, c) + terracotta(c2); + } + void terracotta() { for(int i=0; i