Commit 2c4dbad 1 parent 1456138 commit 2c4dbad Copy full SHA for 2c4dbad
File tree 1 file changed +2
-2
lines changed
code/modules/ai/ai_behaviors/human_mobs
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 87
87
if (mob_parent. do_actions)
88
88
return .. ()
89
89
90
+ var /mob /living/carbon/human/human_parent = mob_parent
90
91
if (human_parent. lying_angle)
91
92
INVOKE_ASYNC (human_parent, TYPE_PROC_REF (/ mob / living/ carbon/ human, get_up))
92
93
93
94
if ((medical_rating >= AI_MED_MEDIC ) && medic_process())
94
95
return
95
96
96
- var /mob /living/carbon/human/human_parent = mob_parent
97
97
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 ))
98
98
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 )
100
100
101
101
if (mob_parent. buckled && ! istype(mob_parent. buckled, / obj / structure/ droppod)) // unbuckling from your pod midflight is not ideal
102
102
mob_parent. buckled. unbuckle_mob(mob_parent)
You can’t perform that action at this time.
0 commit comments