grateful frozen monsters

a frozen (possibly sleeping) monster cannot be grateful unless it wakes up.
From a bug report.  The pit case can only happen if mfrozen is
non-zero, but other traps may leave msleeping set as well.
This commit is contained in:
cohrs
2002-07-01 02:44:26 +00:00
parent 032f701e9d
commit fbdc238f33
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -132,6 +132,7 @@ headstone writing was using the adjective "weird" when engraving with a wand
don't report "you were riding" if you die as a result of dismounting don't report "you were riding" if you die as a result of dismounting
allow #untrapping of chests that are co-located with floor traps and hero allow #untrapping of chests that are co-located with floor traps and hero
unmap "I" symbols when searching while blind and levitating unmap "I" symbols when searching while blind and levitating
monsters that are frozen or sleeping cannot be grateful for untrapping
Platform- and/or Interface-Specific Fixes Platform- and/or Interface-Specific Fixes
+1
View File
@@ -2886,6 +2886,7 @@ struct monst *mtmp;
{ {
if (!ttmp->madeby_u) { if (!ttmp->madeby_u) {
if (rnl(10) < 8 && !mtmp->mpeaceful && if (rnl(10) < 8 && !mtmp->mpeaceful &&
!mtmp->msleeping && !mtmp->mfrozen &&
!mindless(mtmp->data) && !mindless(mtmp->data) &&
mtmp->data->mlet != S_HUMAN) { mtmp->data->mlet != S_HUMAN) {
mtmp->mpeaceful = 1; mtmp->mpeaceful = 1;