Makes catslugs slightly less annoying

Now they ONLY respond to psps, rather than everything except psps except when they are kicking your ass.

Also makes it so simplemobs get up to kick your ass if you attack them when they are resting.
This commit is contained in:
VerySoft
2021-08-21 00:49:09 -04:00
parent c2280892fe
commit ccaebcbd7f
2 changed files with 36 additions and 8 deletions
+4
View File
@@ -252,6 +252,10 @@
on_attacked(attacker)
return FALSE
if(holder.resting) // I can't kill someone while I'm laying down!
ai_log("react_to_attack() : AI is resting. Getting up up.", AI_LOG_TRACE)
holder.lay_down()
if(stance == STANCE_SLEEP) // If we're asleep, try waking up if someone's wailing on us.
ai_log("react_to_attack() : AI is asleep. Waking up.", AI_LOG_TRACE)
go_wake()