mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-31 07:58:22 +01:00
Fixes some runtimes (hopefully)
This commit is contained in:
@@ -232,6 +232,10 @@
|
||||
return 1
|
||||
|
||||
. = OnTopic(href, href_list, usr)
|
||||
|
||||
if(!pref_mob || !pref_mob.client) // Just in case we disappeared during OnTopic
|
||||
return 1
|
||||
|
||||
if(. & TOPIC_UPDATE_PREVIEW)
|
||||
pref_mob.client.prefs.update_preview_icon()
|
||||
if(. & TOPIC_REFRESH)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user