Differentiate between monster anger from attacks and from other causes
setmangry() and wakeup() were being used for multiple purposes. Add an extra parameter to track which. This fixes several minor bugs (e.g. whether monsters with no eyes were angered by (useless) gaze attacks against them previously depended on the state of a UI option, and the Minetown guards would be annoyed if you used a cursed scroll of tame monster on a shopkeeper). It's also a prerequisite for the Elbereth changes I'm working on.
This commit is contained in:
@@ -795,7 +795,8 @@ angry_priest()
|
||||
if ((priest = findpriest(temple_occupied(u.urooms))) != 0) {
|
||||
struct epri *eprip = EPRI(priest);
|
||||
|
||||
wakeup(priest);
|
||||
wakeup(priest, FALSE);
|
||||
setmangry(priest, FALSE);
|
||||
/*
|
||||
* If the altar has been destroyed or converted, let the
|
||||
* priest run loose.
|
||||
|
||||
Reference in New Issue
Block a user