From 89a3d29ce16b488c7d87087afb0dc5818925ea3f Mon Sep 17 00:00:00 2001 From: Archie Date: Sat, 24 Jul 2021 16:30:15 -0300 Subject: [PATCH] Pilk. --- .../food_and_drinks/recipes/drinks_recipes.dm | 5 ++++ .../chemistry/reagents/drink_reagents.dm | 23 +++++++++++++++++++ tgstation.dme | 2 ++ 3 files changed, 30 insertions(+) create mode 100644 hyperstation/code/modules/food_and_drinks/recipes/drinks_recipes.dm create mode 100644 hyperstation/code/modules/reagents/chemistry/reagents/drink_reagents.dm diff --git a/hyperstation/code/modules/food_and_drinks/recipes/drinks_recipes.dm b/hyperstation/code/modules/food_and_drinks/recipes/drinks_recipes.dm new file mode 100644 index 00000000..05fedabf --- /dev/null +++ b/hyperstation/code/modules/food_and_drinks/recipes/drinks_recipes.dm @@ -0,0 +1,5 @@ +/datum/chemical_reaction/pilk + name = "Pilk" + id = /datum/reagent/consumable/pilk + results = list(/datum/reagent/consumable/pilk = 2) + required_reagents = list(/datum/reagent/consumable/milk = 1, /datum/reagent/consumable/space_cola = 1) diff --git a/hyperstation/code/modules/reagents/chemistry/reagents/drink_reagents.dm b/hyperstation/code/modules/reagents/chemistry/reagents/drink_reagents.dm new file mode 100644 index 00000000..3656de15 --- /dev/null +++ b/hyperstation/code/modules/reagents/chemistry/reagents/drink_reagents.dm @@ -0,0 +1,23 @@ +/datum/reagent/consumable/pilk + name = "Pilk" + description = "A forbidden mixture that dates back to the early days of space civilization, its creation is known to have caused at least one or two massacres." + color = "#cf9f6f" + taste_description = "heresy" + glass_icon_state = "whiskeycolaglass" + glass_name = "glass of Pilk" + glass_desc = "Why would you do this to yourself?" + hydration = 3 + +/datum/reagent/consumable/pilk/on_mob_life(mob/living/carbon/M) + M.drowsyness = max(0,M.drowsyness-3) + M.adjust_bodytemperature(-3 * TEMPERATURE_DAMAGE_COEFFICIENT, BODYTEMP_NORMAL) + if(HAS_TRAIT(M, TRAIT_CALCIUM_HEALER)) + M.heal_bodypart_damage(0.75,0, 0) + . = 1 + else + if(M.getBruteLoss() && prob(20)) + M.heal_bodypart_damage(0.5,0, 0) + . = 1 + if(holder.has_reagent(/datum/reagent/consumable/capsaicin)) + holder.remove_reagent(/datum/reagent/consumable/capsaicin, 1) + ..() diff --git a/tgstation.dme b/tgstation.dme index 9ae84b47..ce527b72 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -3125,6 +3125,7 @@ #include "hyperstation\code\modules\clothing\under\under.dm" #include "hyperstation\code\modules\economy\account.dm" #include "hyperstation\code\modules\events\crystalline_reentry.dm" +#include "hyperstation\code\modules\food_and_drinks\recipes\drinks_recipes.dm" #include "hyperstation\code\modules\integrated_electronics\input.dm" #include "hyperstation\code\modules\jobs\job_types\roleplay.dm" #include "hyperstation\code\modules\mining\shelters.dm" @@ -3137,6 +3138,7 @@ #include "hyperstation\code\modules\power\reactor\fuel_rods.dm" #include "hyperstation\code\modules\power\reactor\rbmk.dm" #include "hyperstation\code\modules\power\reactor\reactor_cargo.dm" +#include "hyperstation\code\modules\reagents\chemistry\reagents\drink_reagents.dm" #include "hyperstation\code\modules\reagents\chemistry\reagents\food_reagents.dm" #include "hyperstation\code\modules\reagents\chemistry\reagents\hydroponics_reactions.dm" #include "hyperstation\code\modules\reagents\chemistry\reagents\medicine_reagents.dm"