Coughing due to stinking cloud wakes up neighbors

This commit is contained in:
Pasi Kallinen
2023-09-29 10:56:17 +03:00
parent 86811ab266
commit 086f68187f
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -1245,6 +1245,7 @@ casting stone-to-flesh at self turned wielded or quivered rocks into unwielded,
the throne room on the Samurai quest home level lacked a throne but gave the throne room on the Samurai quest home level lacked a throne but gave
"You enter an opulent throne room!" message the first time it was "You enter an opulent throne room!" message the first time it was
entered; vary the message rather than add a throne entered; vary the message rather than add a throne
coughing due to stinking cloud wakes up nearby monsters
Fixes to 3.7.0-x General Problems Exposed Via git Repository Fixes to 3.7.0-x General Problems Exposed Via git Repository
+3
View File
@@ -1024,6 +1024,7 @@ inside_gas_cloud(genericptr_t p1, genericptr_t p2)
pline("%s is burning your %s!", Something, pline("%s is burning your %s!", Something,
makeplural(body_part(LUNG))); makeplural(body_part(LUNG)));
You("cough and spit blood!"); You("cough and spit blood!");
wake_nearto(u.ux, u.uy, 2);
dam = Maybe_Half_Phys(rnd(dam) + 5); dam = Maybe_Half_Phys(rnd(dam) + 5);
if (Half_gas_damage) /* worn towel */ if (Half_gas_damage) /* worn towel */
dam = (dam + 1) / 2; dam = (dam + 1) / 2;
@@ -1032,6 +1033,7 @@ inside_gas_cloud(genericptr_t p1, genericptr_t p2)
return FALSE; return FALSE;
} else { } else {
You("cough!"); You("cough!");
wake_nearto(u.ux, u.uy, 2);
monstseesu(M_SEEN_POISON); monstseesu(M_SEEN_POISON);
return FALSE; return FALSE;
} }
@@ -1041,6 +1043,7 @@ inside_gas_cloud(genericptr_t p1, genericptr_t p2)
if (m_poisongas_ok(mtmp) != M_POISONGAS_OK) { if (m_poisongas_ok(mtmp) != M_POISONGAS_OK) {
if (cansee(mtmp->mx, mtmp->my)) if (cansee(mtmp->mx, mtmp->my))
pline("%s coughs!", Monnam(mtmp)); pline("%s coughs!", Monnam(mtmp));
wake_nearto(mtmp->mx, mtmp->my, 2);
if (heros_fault(reg)) if (heros_fault(reg))
setmangry(mtmp, TRUE); setmangry(mtmp, TRUE);
if (haseyes(mtmp->data) && mtmp->mcansee) { if (haseyes(mtmp->data) && mtmp->mcansee) {