Skip to content

Commit

Permalink
staying hydrated helps you regen blood (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndroBetel committed Aug 28, 2024
1 parent 0cb0eb0 commit 692a6b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions code/modules/mob/living/carbon/human/human.dm
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,7 @@
nutrition -= 40
apply_damage(-3, TOX)
addtimer(VARSET_CALLBACK(src, lastpuke, FALSE), 35 SECONDS)
reagents.remove_any(rand(15, 30))

/mob/living/carbon/human/proc/get_visible_gender()
if(wear_suit && wear_suit.flags_inv_hide & HIDEJUMPSUIT && ((head && head.flags_inv_hide & HIDEMASK) || wear_mask))
Expand Down
8 changes: 7 additions & 1 deletion code/modules/reagents/chemistry_reagents/other.dm
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@
description = "A ubiquitous chemical substance that is composed of hydrogen and oxygen. It is a vital component to all known forms of organic life, even though it provides no calories or organic nutrients. It is also an effective solvent and can be used for cleaning."
reagent_state = LIQUID
color = "#0064C8" // rgb: 0, 100, 200
custom_metabolism = AMOUNT_PER_TIME(1, 200 SECONDS)
chemclass = CHEM_CLASS_BASIC
chemfiresupp = TRUE
intensitymod = -3
properties = list(PROPERTY_HEMOGENIC = 1)

/datum/reagent/water/reaction_turf(turf/T, volume)
if(!istype(T)) return
Expand All @@ -132,6 +132,12 @@
if(M.fire_stacks <= 0)
M.ExtinguishMob()

/datum/reagent/water/on_mob_life(mob/living/M)
. = ..()
if(ishuman(M) && volume >= 100 && prob(25))
var/mob/living/carbon/human/human = M
human.vomit()

/datum/reagent/water/holywater
name = "Holy Water"
id = "holywater"
Expand Down

0 comments on commit 692a6b8

Please sign in to comment.