Skip to content

Commit 2c4dbad

Browse files
committed
consistancy
1 parent 1456138 commit 2c4dbad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/modules/ai/ai_behaviors/human_mobs/human_mob.dm

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,16 @@
8787
if(mob_parent.do_actions)
8888
return ..()
8989

90+
var/mob/living/carbon/human/human_parent = mob_parent
9091
if(human_parent.lying_angle)
9192
INVOKE_ASYNC(human_parent, TYPE_PROC_REF(/mob/living/carbon/human, get_up))
9293

9394
if((medical_rating >= AI_MED_MEDIC) && medic_process())
9495
return
9596

96-
var/mob/living/carbon/human/human_parent = mob_parent
9797
if((human_parent.nutrition <= NUTRITION_HUNGRY) && length(mob_inventory.food_list) && (human_parent.nutrition + (37.5 * human_parent.reagents.get_reagent_amount(/datum/reagent/consumable/nutriment)) < NUTRITION_WELLFED))
9898
var/obj/item/reagent_containers/food/food = mob_inventory.food_list[1]
99-
food.ai_use(mob_parent, mob_parent)
99+
food.ai_use(human_parent, human_parent)
100100

101101
if(mob_parent.buckled && !istype(mob_parent.buckled, /obj/structure/droppod)) //unbuckling from your pod midflight is not ideal
102102
mob_parent.buckled.unbuckle_mob(mob_parent)

0 commit comments

Comments
 (0)