[MIRROR] Cutting onions makes you cry [MDB IGNORE] (#16353)

* Cutting onions makes you cry (#70032)

Co-authored-by: tattle <article.disaster@ gmail.com>
Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>

* Cutting onions makes you cry

Co-authored-by: tattle <66640614+dragomagol@users.noreply.github.com>
Co-authored-by: tattle <article.disaster@ gmail.com>
Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-09-21 20:56:12 -07:00
committed by GitHub
co-authored by tattle Mothblocks tattle
parent c3a04fca35
commit 8a9e1002e8
2 changed files with 21 additions and 32 deletions
+1 -2
View File
@@ -14,7 +14,7 @@
growthstages = 3
weed_chance = 3
growing_icon = 'icons/obj/hydroponics/growing_vegetables.dmi'
reagents_add = list(/datum/reagent/consumable/nutriment/vitamin = 0.04, /datum/reagent/consumable/nutriment = 0.1)
reagents_add = list(/datum/reagent/consumable/nutriment/vitamin = 0.04, /datum/reagent/consumable/nutriment = 0.1, /datum/reagent/consumable/tearjuice = 0.5)
mutatelist = list(/obj/item/seeds/onion/red)
/obj/item/food/grown/onion
@@ -36,7 +36,6 @@
plantname = "Red Onion Sprouts"
weed_chance = 1
product = /obj/item/food/grown/onion/red
reagents_add = list(/datum/reagent/consumable/nutriment/vitamin = 0.04, /datum/reagent/consumable/nutriment = 0.1, /datum/reagent/consumable/tearjuice = 0.05)
mutatelist = null
/obj/item/food/grown/onion/red
@@ -472,6 +472,26 @@
. = TRUE
..()
/datum/reagent/consumable/tearjuice
name = "Tear Juice"
description = "A blinding substance extracted from certain onions."
color = "#c0c9a0"
taste_description = "bitterness"
ph = 5
/datum/reagent/consumable/tearjuice/expose_mob(mob/living/exposed_mob, methods = INGEST, reac_volume)
. = ..()
if(!ishuman(exposed_mob))
return
var/mob/living/carbon/victim = exposed_mob
if(methods & (INGEST | VAPOR))
var/tear_proof = victim.is_eyes_covered()
if (!tear_proof)
to_chat(exposed_mob, span_warning("Your eyes sting!"))
victim.emote("cry")
victim.blur_eyes(3) // 6 seconds
/datum/reagent/consumable/sprinkles
name = "Sprinkles"
description = "Multi-colored little bits of sugar, commonly found on donuts. Loved by cops."
@@ -697,36 +717,6 @@
taste_description = "rotten eggs"
chemical_flags = REAGENT_CAN_BE_SYNTHESIZED
/datum/reagent/consumable/tearjuice
name = "Tear Juice"
description = "A blinding substance extracted from certain onions."
color = "#c0c9a0"
taste_description = "bitterness"
ph = 5
chemical_flags = REAGENT_CAN_BE_SYNTHESIZED
/datum/reagent/consumable/tearjuice/expose_mob(mob/living/exposed_mob, methods=TOUCH, reac_volume)
. = ..()
if(!(methods & INGEST) || !((methods & (TOUCH|PATCH|VAPOR)) && (exposed_mob.is_mouth_covered() || exposed_mob.is_eyes_covered())))
return
if(!exposed_mob.getorganslot(ORGAN_SLOT_EYES)) //can't blind somebody with no eyes
to_chat(exposed_mob, span_notice("Your eye sockets feel wet."))
else
if(!exposed_mob.eye_blurry)
to_chat(exposed_mob, span_warning("Tears well up in your eyes!"))
exposed_mob.adjust_blindness(2)
exposed_mob.blur_eyes(5)
/datum/reagent/consumable/tearjuice/on_mob_life(mob/living/carbon/M, delta_time, times_fired)
..()
if(M.eye_blurry) //Don't worsen vision if it was otherwise fine
M.blur_eyes(4 * REM * delta_time)
if(DT_PROB(5, delta_time))
to_chat(M, span_warning("Your eyes sting!"))
M.adjust_blindness(2)
/datum/reagent/consumable/nutriment/stabilized
name = "Stabilized Nutriment"
description = "A bioengineered protien-nutrient structure designed to decompose in high saturation. In layman's terms, it won't get you fat."