Merge pull request #1334 from ArchieBeepBoop/copium

Copium Reagent
This commit is contained in:
Dahlular
2021-06-27 23:04:53 -06:00
committed by GitHub
6 changed files with 44 additions and 5 deletions

View File

@@ -53,8 +53,8 @@
/datum/reagent/carpet,
/datum/reagent/firefighting_foam,
/datum/reagent/consumable/tearjuice,
/datum/reagent/medicine/strange_reagent
/datum/reagent/medicine/strange_reagent,
/datum/reagent/medicine/copium
)
//needs to be chemid unit checked at some point

View File

@@ -22,3 +22,8 @@
description = "<span class='warning'>I feel like I'm held together by flimsy string, and could fall apart at any moment!</span>\n"
mood_change = -4
timeout = 2 MINUTES
/datum/mood_event/copium
description = "<span class='nicegreen'>Things are going to be okay, right?</span>\n"
mood_change = 3
timeout = 3 MINUTES

View File

@@ -6,6 +6,3 @@
nutriment_factor = 5 * REAGENTS_METABOLISM
metabolization_rate = 1 * REAGENTS_METABOLISM
taste_description = "sweetness"
/datum/reagent/consumable/alienhoney/on_mob_life(mob/living/carbon/M)
..()

View File

@@ -0,0 +1,29 @@
/datum/reagent/medicine/copium
name = "copium"
description = "A heavy scented substance meant to help one deal with loss."
reagent_state = LIQUID
color = "#a8707e"
overdose_threshold = 21
metabolization_rate = 0.75 * REAGENTS_METABOLISM
pH = 4
/datum/reagent/medicine/copium/on_mob_life(mob/living/carbon/M)
var/datum/component/mood/mood = M.GetComponent(/datum/component/mood)
if(mood.sanity <= SANITY_NEUTRAL && current_cycle >= 5)
mood.setSanity(min(mood.sanity+5, SANITY_NEUTRAL))
SEND_SIGNAL(M, COMSIG_ADD_MOOD_EVENT, "copium", /datum/mood_event/copium)
..()
/datum/reagent/medicine/copium/overdose_process(mob/living/carbon/M) //copious amounts of copium
M.blur_eyes(10)
if(prob(50))
M.adjustToxLoss(1, 0)
if(prob(5))
M.say(pick("That's okay. Things are going to be okay.", "This is fine.", "I'm okay with the events that are unfolding currently.", "World of Spacecraft is still a good game...", "I'm winning.", "Diesels are far more powerful."))
if(prob(5))
M.emote("me", 1, "seems to be crying.")
if(prob(4))
M.emote("me", 1, "falls over, crying.")
M.Knockdown(40)
//To-do: /datum/reagent/medicine/seethium

View File

@@ -0,0 +1,6 @@
/datum/chemical_reaction/copium
name = "copium"
id = /datum/reagent/medicine/copium
results = list(/datum/reagent/medicine/copium = 5)
required_reagents = list(/datum/reagent/medicine/mannitol = 2, /datum/reagent/water = 1, /datum/reagent/medicine/epinephrine = 1, /datum/reagent/consumable/sugar = 1)
required_temp = 266

View File

@@ -3125,7 +3125,9 @@
#include "hyperstation\code\modules\power\reactor\rbmk.dm"
#include "hyperstation\code\modules\power\reactor\reactor_cargo.dm"
#include "hyperstation\code\modules\reagents\chemistry\reagents\food_reagents.dm"
#include "hyperstation\code\modules\reagents\chemistry\reagents\medicine_reagents.dm"
#include "hyperstation\code\modules\reagents\chemistry\reagents\hydroponics_reactions.dm"
#include "hyperstation\code\modules\reagents\chemistry\recipes\medicine.dm"
#include "hyperstation\code\modules\resize\resize_action.dm"
#include "hyperstation\code\modules\resize\resizing.dm"
#include "hyperstation\code\modules\resize\sizechems.dm"