salamanders
If salamanders are made immune to slime, then all the other places in the code which check for fire creatures should be modified too.
This commit is contained in:
@@ -491,6 +491,7 @@ register int pm;
|
||||
if (!Slimed && !Unchanging &&
|
||||
youmonst.data != &mons[PM_FIRE_VORTEX] &&
|
||||
youmonst.data != &mons[PM_FIRE_ELEMENTAL] &&
|
||||
youmonst.data != &mons[PM_SALAMANDER] &&
|
||||
youmonst.data != &mons[PM_GREEN_SLIME]) {
|
||||
You("don't feel very well.");
|
||||
Slimed = 10L;
|
||||
|
||||
@@ -1018,6 +1018,7 @@ label2: if (mdef->mhp > 0) return 0;
|
||||
case AD_SLIM:
|
||||
if (!rn2(4) && mdef->data != &mons[PM_FIRE_VORTEX] &&
|
||||
mdef->data != &mons[PM_FIRE_ELEMENTAL] &&
|
||||
mdef->data != &mons[PM_SALAMANDER] &&
|
||||
mdef->data != &mons[PM_GREEN_SLIME]) {
|
||||
if (vis) pline("%s turns into slime.", Monnam(mdef));
|
||||
(void) newcham(mdef, &mons[PM_GREEN_SLIME], FALSE);
|
||||
|
||||
@@ -1416,6 +1416,7 @@ do_stone:
|
||||
hitmsg(mtmp, mattk);
|
||||
if (!uncancelled) break;
|
||||
if (youmonst.data == &mons[PM_FIRE_VORTEX] ||
|
||||
youmonst.data == &mons[PM_SALAMANDER] ||
|
||||
youmonst.data == &mons[PM_FIRE_ELEMENTAL]) {
|
||||
pline_The("slime burns away!");
|
||||
dmg = 0;
|
||||
|
||||
@@ -404,7 +404,7 @@ int mntmp;
|
||||
You("no longer feel sick.");
|
||||
}
|
||||
if (Slimed) {
|
||||
if (mntmp == PM_FIRE_VORTEX || mntmp == PM_FIRE_ELEMENTAL) {
|
||||
if (mntmp == PM_FIRE_VORTEX || mntmp == PM_FIRE_ELEMENTAL || mntmp == PM_SALAMANDER) {
|
||||
pline_The("slime burns away!");
|
||||
Slimed = 0L;
|
||||
flags.botl = 1;
|
||||
|
||||
@@ -1444,6 +1444,7 @@ register struct attack *mattk;
|
||||
case AD_SLIM:
|
||||
if (!rn2(4) && mdef->data != &mons[PM_FIRE_VORTEX] &&
|
||||
mdef->data != &mons[PM_FIRE_ELEMENTAL] &&
|
||||
mdef->data != &mons[PM_SALAMANDER] &&
|
||||
mdef->data != &mons[PM_GREEN_SLIME]) {
|
||||
You("turn %s into slime.", mon_nam(mdef));
|
||||
(void) newcham(mdef, &mons[PM_GREEN_SLIME], FALSE);
|
||||
|
||||
Reference in New Issue
Block a user