dogs now resist before fetching or harassing, to unbuckle from stuff if they need to (#58686)

fixes #58656 (Pets can move while buckled in their beds)
This commit is contained in:
tralezab
2021-05-05 19:54:35 -07:00
committed by GitHub
parent d278d5e7f5
commit 271394dfd8
+4
View File
@@ -321,9 +321,13 @@
current_movement_target = pointed_movable
blackboard[BB_FETCH_TARGET] = pointed_movable
blackboard[BB_FETCH_DELIVER_TO] = pointing_friend
if(living_pawn.buckled)
current_behaviors += GET_AI_BEHAVIOR(/datum/ai_behavior/resist)//in case they are in bed or something
current_behaviors += GET_AI_BEHAVIOR(/datum/ai_behavior/fetch)
if(DOG_COMMAND_ATTACK)
pawn.visible_message("<span class='notice'>[pawn] follows [pointing_friend]'s gesture towards [pointed_movable] and growls intensely!</span>")
current_movement_target = pointed_movable
blackboard[BB_DOG_HARASS_TARGET] = pointed_movable
if(living_pawn.buckled)
current_behaviors += GET_AI_BEHAVIOR(/datum/ai_behavior/resist)//in case they are in bed or something
current_behaviors += GET_AI_BEHAVIOR(/datum/ai_behavior/harass)