cursed potions of invisibility for monsters
Extend the recently changed behavior for cursed potion of invisibility. Monsters won't drink potions of invisibility if already invisible so can't accidentally or voluntarily make themselves visible again, but let player make them become visible by hitting them with thrown or wielded cursed potion of invisibility. They don't have any concept of temporary invisibility that might let them remain invisible while losing permanent invisibility, so they just lose the latter and immediately become visible.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.7 makemon.c $NHDT-Date: 1720128166 2024/07/04 21:22:46 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.249 $ */
|
||||
/* NetHack 3.7 makemon.c $NHDT-Date: 1770949988 2026/02/12 18:33:08 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.271 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Robert Patrick Rankin, 2012. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -1294,7 +1294,7 @@ makemon(
|
||||
mtmp->seen_resistance = M_SEEN_NOTHING;
|
||||
mtmp->mpeaceful = (mmflags & MM_ANGRY) ? FALSE : peace_minded(ptr);
|
||||
if ((mmflags & MM_MINVIS) != 0) /* for ^G */
|
||||
mon_set_minvis(mtmp); /* call after place_monster() */
|
||||
mon_set_minvis(mtmp, FALSE); /* call after place_monster() */
|
||||
|
||||
switch (ptr->mlet) {
|
||||
case S_MIMIC:
|
||||
|
||||
Reference in New Issue
Block a user