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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user