After a low wisdom enemy wakes up robbed, make them angry towards everyone for a while.

This commit is contained in:
Rob Pearce 2016-06-02 14:56:52 +10:00
parent c30a1c4b94
commit 986f9306ce
1 changed files with 7 additions and 0 deletions

7
lf.c
View File

@ -23148,6 +23148,13 @@ void startlfturn(lifeform_t *lf) {
} }
} else if (cantalk(lf)) { } else if (cantalk(lf)) {
sayphrase(lf, SP_ROBBED, SV_SHOUT, NA, NULL, NULL); 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); killflagsofid(lf->flags, F_WASROBBED);
} }