more follow-up related to #1320

This commit is contained in:
nhmall
2024-11-10 10:06:07 -05:00
parent 5cc529efc8
commit c87a373b11
6 changed files with 27 additions and 15 deletions
+5 -2
View File
@@ -2895,12 +2895,15 @@ better_not_take_that_off(struct obj *otmp)
struct obj *corpse = carrying_stoning_corpse();
char buf[BUFSZ];
/* u_safe_from_fatal_corpse() with 0x4e instead of 0x6
/* u_safe_from_fatal_corpse() with
(st_corpse | st_petrifies | st_resists) instead of
(st_corpse | st_petrifies)
would also check for no stoning resistance before
bothering to prompt, but losing stoning resistance
later, without the gloves on could prove dangerous,
so we won't factor that in */
if (corpse && !u_safe_from_fatal_corpse(corpse, 0x6)) {
if (corpse
&& !u_safe_from_fatal_corpse(corpse, st_corpse | st_petrifies)) {
Snprintf(buf, sizeof buf,
"Take off your %s despite carrying a dead %s?",
gloves_simple_name(otmp), obj_pmname(corpse));