diff --git a/code/game/objects/items/weapons/inducer_vr.dm b/code/game/objects/items/weapons/inducer_vr.dm index aec62a69be2..6e33a096453 100644 --- a/code/game/objects/items/weapons/inducer_vr.dm +++ b/code/game/objects/items/weapons/inducer_vr.dm @@ -242,6 +242,7 @@ charge_guns = TRUE // A 'human stand-in' cell for recharging 'nutrition' on synthetic humans (wow this is terrible! \o/) +#define NUTRITION_COEFF 0.05 // 1000 charge = 50 nutrition at 0.05 /obj/item/weapon/cell/standin name = "don't spawn this" desc = "this is for weird code use, don't spawn it!!!" @@ -259,12 +260,14 @@ QDEL_IN(src, 20 SECONDS) + /obj/item/weapon/cell/standin/give(var/amount) - amount *= 0.05 // So 1000 becomes 50 - ..(amount) - hume.nutrition += amount + . = ..(amount * NUTRITION_COEFF) //Shrink amount to store + hume.nutrition += . //Add the amount we really stored + . /= NUTRITION_COEFF //Inflate amount to take from the giver // Various sideways-defined get_cells /obj/mecha/get_cell() return cell +#undef NUTRITION_COEFF \ No newline at end of file