mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-22 04:37:45 +01:00
Adds a new experimental item digestion mode that divides the digestion damage between all items within the gut instead of going through one item at a time. Disabled by default.
Experimental because I don't know how badly it affects performance and because I'm feeling too lazy to make a vorepanel button for it rn, so it's a varedit toggle for now.
This commit is contained in:
@@ -654,7 +654,7 @@
|
||||
//the item should be worth
|
||||
/obj/belly/proc/digest_item(obj/item/item, /var/touchable_amount) //CHOMPEdit
|
||||
var/digested = item.digest_act(src, touchable_amount) //CHOMPEdit
|
||||
if(!digested > 0) //CHOMPEdit
|
||||
if(digested == FALSE) //CHOMPEdit
|
||||
items_preserved |= item
|
||||
else
|
||||
owner.adjust_nutrition((nutrition_percent / 100) * 5 * digested)
|
||||
|
||||
@@ -27,6 +27,8 @@
|
||||
if(isbelly(item_storage))
|
||||
var/obj/belly/B = item_storage
|
||||
g_damage = 0.25 * (B.digest_brute + B.digest_burn) / touchable_amount //CHOMPEdit
|
||||
if(g_damage <= 0) //CHOMPEdit
|
||||
return FALSE //CHOMPEdit
|
||||
|
||||
if(digest_stage > 0)
|
||||
if(g_damage > digest_stage)
|
||||
|
||||
Reference in New Issue
Block a user