mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-26 05:27:39 +01:00
Update bellymodes_datum_vr.dm
This commit is contained in:
@@ -22,6 +22,7 @@ GLOBAL_LIST_INIT(digest_modes, list())
|
||||
noise_chance = 50
|
||||
|
||||
/datum/digest_mode/digest/process_mob(obj/belly/B, mob/living/L)
|
||||
var/oldstat = L.stat
|
||||
//Pref protection!
|
||||
if(!L.digestable || L.absorbed)
|
||||
return null
|
||||
@@ -59,6 +60,8 @@ GLOBAL_LIST_INIT(digest_modes, list())
|
||||
B.owner.adjust_nutrition(offset*(4.5 * (damage_gain) / difference)) //4.5 nutrition points per health point. Normal same size 100+100 health prey with average weight would give 900 points if the digestion was instant. With all the size/weight offset taxes plus over time oxyloss+hunger taxes deducted with non-instant digestion, this should be enough to not leave the pred starved.
|
||||
else
|
||||
B.owner.adjust_nutrition(4.5 * (damage_gain) / difference)
|
||||
if(L.stat != oldstat)
|
||||
return list("to_update" = TRUE)
|
||||
|
||||
/datum/digest_mode/absorb
|
||||
id = DM_ABSORB
|
||||
|
||||
Reference in New Issue
Block a user