R809 - newcham message reorganization
Add a param to newcham() to let it print "The oldmon turns into a newmon!" rather than always printing this externally. Should ensure a good ordering of the messages. Also put some special name handling in one place and catch a couple cases where "saddled" was printed, resulting in funny messages.
This commit is contained in:
@@ -1072,8 +1072,7 @@ label2: if (mdef->mhp > 0) return 0;
|
||||
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);
|
||||
(void) newcham(mdef, &mons[PM_GREEN_SLIME], FALSE, vis);
|
||||
mdef->mstrategy &= ~STRAT_WAITFORU;
|
||||
tmp = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user