Juiblex' frozen "moat"
<Someone> reported that freezing the swamp on Juiblex' level would result in message about a frozen moat. Avoid this by using waterbody_name to to determine if it's a moat or not.
This commit is contained in:
15
src/zap.c
15
src/zap.c
@@ -3645,10 +3645,7 @@ boolean *shopdamage;
|
||||
}
|
||||
else if(abstype == ZT_COLD && (is_pool(x,y) || is_lava(x,y))) {
|
||||
boolean lava = is_lava(x,y);
|
||||
boolean moat = (!lava && (lev->typ != POOL) &&
|
||||
(lev->typ != WATER) &&
|
||||
!Is_medusa_level(&u.uz) &&
|
||||
!Is_waterlevel(&u.uz));
|
||||
const char *moat = waterbody_name(x, y);
|
||||
|
||||
if (lev->typ == WATER) {
|
||||
/* For now, don't let WATER freeze. */
|
||||
@@ -3670,12 +3667,12 @@ boolean *shopdamage;
|
||||
}
|
||||
bury_objs(x,y);
|
||||
if(cansee(x,y)) {
|
||||
if(moat)
|
||||
Norep("The moat is bridged with ice!");
|
||||
else if(lava)
|
||||
Norep("The lava cools and solidifies.");
|
||||
if(lava)
|
||||
Norep("The lava cools and solidifies.");
|
||||
else if(strcmp(moat, "moat") == 0)
|
||||
Norep("The %s is bridged with ice!", moat);
|
||||
else
|
||||
Norep("The water freezes.");
|
||||
Norep("The water freezes.");
|
||||
newsym(x,y);
|
||||
} else if(!Deaf && !lava)
|
||||
You_hear("a crackling sound.");
|
||||
|
||||
Reference in New Issue
Block a user