After a low wisdom enemy wakes up robbed, make them angry towards everyone for a while.
This commit is contained in:
parent
c30a1c4b94
commit
986f9306ce
7
lf.c
7
lf.c
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue