lava effects for monsters and objects

This patch, based on code sent to us by <Someone> well over a year ago, addresses
bugs recently resurfaced.  Namely, that lava does not generally do anything
to monsters or objects that land in java.  Newly renamed minliquid() handles
both water and lava, and new fire_damage() is used similar to water_damage().
This commit is contained in:
cohrs
2002-01-20 07:04:18 +00:00
parent 629f0897d6
commit e7bdcb157f
10 changed files with 176 additions and 12 deletions

View File

@@ -1208,7 +1208,7 @@ domove()
place_monster(mtmp, u.ux0, u.uy0);
/* check for displacing it into pools and traps */
switch (minwater(mtmp) ? 2 : mintrap(mtmp)) {
switch (minliquid(mtmp) ? 2 : mintrap(mtmp)) {
case 0:
You("%s %s.", mtmp->mtame ? "displaced" : "frightened",
pnambuf);
@@ -1230,7 +1230,7 @@ domove()
}
/* you killed your pet by direct action.
* minwater and mintrap don't know to do this
* minliquid and mintrap don't know to do this
*/
u.uconduct.killer++;
break;