change appearance if polymorphing while mimicing

As per <Someone>:
> I had a game today where I was polymorphed (by a sink) into a mimic, and
> #monster-ed (hid).  The symbol on the map for me was ].  Then, I polymorphed
> again, this time into a kobold lord -- but the symbol remained ].  This
> seems wrong.
Handle this similar to the polyman code.
This commit is contained in:
cohrs
2002-05-16 04:02:52 +00:00
parent 25e5208deb
commit d62c6eac08
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -107,6 +107,7 @@ give more specific message when forbidden role attempts to use twoweapon mode
avoid double billing if #loot causes a shop's bag of holding to explode avoid double billing if #loot causes a shop's bag of holding to explode
when polymorphed, player killing a paper or straw golem via fire damage when polymorphed, player killing a paper or straw golem via fire damage
would kill the golem twice, resulting in an impossible error would kill the golem twice, resulting in an impossible error
usually stop mimicing if you polymorph while using #monster mimic capability
Platform- and/or Interface-Specific Fixes Platform- and/or Interface-Specific Fixes
+3
View File
@@ -356,6 +356,9 @@ int mntmp;
youmonst.mappearance == GOLD_PIECE) { youmonst.mappearance == GOLD_PIECE) {
/* stop mimicking gold immediately */ /* stop mimicking gold immediately */
if (multi < 0) unmul(""); if (multi < 0) unmul("");
} else if (mons[mntmp].mlet != S_MIMIC) {
/* as in polyman() */
youmonst.m_ap_type = M_AP_NOTHING;
} }
if (is_male(&mons[mntmp])) { if (is_male(&mons[mntmp])) {
if(flags.female) dochange = TRUE; if(flags.female) dochange = TRUE;