Fixes some runtimes (hopefully)

This commit is contained in:
Heroman
2022-07-20 07:06:00 +10:00
parent 65f1f4bb38
commit 9873bfcf84
5 changed files with 27 additions and 22 deletions
+4 -2
View File
@@ -283,6 +283,8 @@
if(M.ckey)
GLOB.prey_digested_roundstat++
var/personal_nutrition_modifier = M.get_digestion_nutrition_modifier()
if((mode_flags & DM_FLAG_LEAVEREMAINS) && M.digest_leave_remains)
handle_remains_leaving(M)
digestion_death(M)
@@ -290,9 +292,9 @@
owner.update_icons()
if(isrobot(owner))
var/mob/living/silicon/robot/R = owner
R.cell.charge += (nutrition_percent / 100) * compensation * 25 * M.get_digestion_nutrition_modifier()
R.cell.charge += (nutrition_percent / 100) * compensation * 25 * personal_nutrition_modifier
else
owner.adjust_nutrition((nutrition_percent / 100) * compensation * 4.5 * M.get_digestion_nutrition_modifier())
owner.adjust_nutrition((nutrition_percent / 100) * compensation * 4.5 * personal_nutrition_modifier)
/obj/belly/proc/steal_nutrition(mob/living/L)
if(L.nutrition >= 100)