follow-up related to #1320
This is additional groundwork related to https://github.com/NetHack/NetHack/issues/1320 This additional groundwork just puts some safeguards in place to make it rather tough to end up with an instant death from handling a cockatrice corpse in your inventory without appropriate protection. At this point, still no actual petrification will occur.
This commit is contained in:
@@ -6189,7 +6189,7 @@ makewish(void)
|
||||
/* TODO? maybe generate a second event describing what was received since
|
||||
these just echo player's request rather than show actual result */
|
||||
|
||||
if (otmp->otyp == CORPSE && !u_safe_from_fatal_corpse(otmp))
|
||||
if (otmp->otyp == CORPSE && !u_safe_from_fatal_corpse(otmp, 0xF))
|
||||
otmp->wishedfor = 1;
|
||||
|
||||
const char *verb = ((Is_airlevel(&u.uz) || u.uinwater)
|
||||
|
||||
Reference in New Issue
Block a user