Add protean shakes

This commit is contained in:
Arokha Sieyes
2020-05-16 23:55:04 -04:00
parent b1f3a1b9cc
commit e91418fa6d
4 changed files with 43 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
/obj/item/weapon/reagent_containers/food/drinks/glass2/fitnessflask/proteanshake
name = "protean shake"
/obj/item/weapon/reagent_containers/food/drinks/glass2/fitnessflask/proteanshake/Initialize()
. = ..()
reagents.add_reagent("liquid_protean", 50)
reagents.add_reagent("nutriment", 50)
/obj/item/weapon/reagent_containers/food/drinks/glass2/fitnessflask/proteanshake/update_icon()
..()
// And now set half the stuff back because our name shouldn't change
name = initial(name)
desc = initial(desc)

View File

@@ -98,3 +98,30 @@
M.adjust_fire_stacks(-reac_volume)
M.ExtinguishMob()
/datum/reagent/liquid_protean
name = "Liquid protean"
id = "liquid_protean"
description = "This seems to be a small portion of a Protean creature, still slightly wiggling."
taste_description = "wiggly peanutbutter"
reagent_state = LIQUID
color = "#1d1d1d"
scannable = 0
metabolism = REM * 0.5
/datum/reagent/liquid_protean/affect_blood(var/mob/living/carbon/M, var/alien, var/removed)
if(alien != IS_DIONA)
var/chem_effective = 1
if(alien == IS_SLIME)
chem_effective = 0.5
M.adjustOxyLoss(-1 * removed * chem_effective)
M.heal_organ_damage(0.5 * removed, 0.5 * removed * chem_effective)
M.adjustToxLoss(-0.5 * removed * chem_effective)
if(ishuman(M))
var/mob/living/carbon/human/H = M
if(H.nif)
var/obj/item/device/nif/nif = H.nif //L o c a l
if(nif.stat == NIF_TEMPFAIL)
nif.stat = NIF_INSTALLING
nif.durability = min(nif.durability + removed*0.1, initial(nif.durability))