mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Reversions and fixes (#7889)
Co-authored-by: Selis <selis@xynolabs.com>
This commit is contained in:
@@ -243,7 +243,10 @@
|
||||
if(!target || !istype(target))
|
||||
return
|
||||
|
||||
amount = max(0, min(amount, total_volume, target.get_free_space() / multiplier))
|
||||
if(multiplier)
|
||||
amount = max(0, min(amount, total_volume, target.get_free_space() / multiplier))
|
||||
else
|
||||
amount = max(0, min(amount, total_volume))
|
||||
|
||||
if(!amount)
|
||||
return
|
||||
|
||||
@@ -443,7 +443,7 @@
|
||||
if(B.item_digest_mode == IM_HOLD)
|
||||
return
|
||||
var/obj/item/I = O
|
||||
var/spent_amt = I.digest_act(I.loc, 1, amount / (meltdose / 3))
|
||||
var/spent_amt = I.digest_act(B, 1, amount / (meltdose / 3))
|
||||
remove_self(spent_amt) //10u stomacid per w_class, less if stronger acid.
|
||||
if(B.owner)
|
||||
B.owner_adjust_nutrition((B.nutrition_percent / 100) * 5 * spent_amt)
|
||||
|
||||
Reference in New Issue
Block a user