From 986f9306cebf9197455ac4a252defcb7f705cec2 Mon Sep 17 00:00:00 2001 From: Rob Pearce Date: Thu, 2 Jun 2016 14:56:52 +1000 Subject: [PATCH] After a low wisdom enemy wakes up robbed, make them angry towards everyone for a while. --- lf.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lf.c b/lf.c index e705ea1..0f6875a 100644 --- a/lf.c +++ b/lf.c @@ -23148,6 +23148,13 @@ void startlfturn(lifeform_t *lf) { } } else if (cantalk(lf)) { sayphrase(lf, SP_ROBBED, SV_SHOUT, NA, NULL, NULL); + // suspect anyone in sight until we calm down! + if (getattrbracket(getattr(lf, A_WIS), A_WIS, NULL) < AT_AVERAGE) { + int howlong; + howlong = (100 - getattr(lf, A_WIS)) / 2; + limit(&howlong, 10, 50); + addtempflag(lf->flags, F_HATESALL, B_TRUE, NA, NA, NULL, howlong); + } } killflagsofid(lf->flags, F_WASROBBED); }