mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 03:33:21 +00:00
Less copypasta
This commit is contained in:
@@ -219,6 +219,10 @@
|
|||||||
description = "This is what makes chilis hot."
|
description = "This is what makes chilis hot."
|
||||||
reagent_state = LIQUID
|
reagent_state = LIQUID
|
||||||
color = "#B31008"
|
color = "#B31008"
|
||||||
|
var/agony_dose = 5
|
||||||
|
var/agony_amount = 2
|
||||||
|
var/discomfort_message = "<span class='danger'>Your insides feel uncomfortably hot!</span>"
|
||||||
|
var/slime_temp_adj = 10
|
||||||
|
|
||||||
/datum/reagent/capsaicin/affect_blood(var/mob/living/carbon/M, var/alien, var/removed)
|
/datum/reagent/capsaicin/affect_blood(var/mob/living/carbon/M, var/alien, var/removed)
|
||||||
if(alien == IS_DIONA)
|
if(alien == IS_DIONA)
|
||||||
@@ -232,30 +236,31 @@
|
|||||||
var/mob/living/carbon/human/H = M
|
var/mob/living/carbon/human/H = M
|
||||||
if(H.species && (H.species.flags & (NO_PAIN | IS_SYNTHETIC)))
|
if(H.species && (H.species.flags & (NO_PAIN | IS_SYNTHETIC)))
|
||||||
return
|
return
|
||||||
if(dose < 5 && (dose == metabolism || prob(5)))
|
if(dose < agony_dose)
|
||||||
M << "<span class='danger'>Your insides feel uncomfortably hot!</span>"
|
if(prob(5) || dose == metabolism) //dose == metabolism is a very hacky way of forcing the message the first time this procs
|
||||||
if(dose >= 5)
|
M << initial_message
|
||||||
M.apply_effect(2, AGONY, 0)
|
else
|
||||||
|
M.apply_effect(agony_amount, AGONY, 0)
|
||||||
if(prob(5))
|
if(prob(5))
|
||||||
M.visible_message("<span class='warning'>[M] [pick("dry heaves!","coughs!","splutters!")]</span>", "<span class='danger'>You feel like your insides are burning!</span>")
|
M.visible_message("<span class='warning'>[M] [pick("dry heaves!","coughs!","splutters!")]</span>")
|
||||||
|
M << "<span class='danger'>You feel like your insides are burning!</span>"
|
||||||
if(istype(M, /mob/living/carbon/slime))
|
if(istype(M, /mob/living/carbon/slime))
|
||||||
M.bodytemperature += rand(10, 25)
|
M.bodytemperature += rand(0, 15) + slime_temp_adj
|
||||||
holder.remove_reagent("frostoil", 5)
|
holder.remove_reagent("frostoil", 5)
|
||||||
|
|
||||||
/datum/reagent/condensedcapsaicin
|
/datum/reagent/capsaicin/condensed
|
||||||
name = "Condensed Capsaicin"
|
name = "Condensed Capsaicin"
|
||||||
id = "condensedcapsaicin"
|
id = "condensedcapsaicin"
|
||||||
description = "A chemical agent used for self-defense and in police work."
|
description = "A chemical agent used for self-defense and in police work."
|
||||||
reagent_state = LIQUID
|
reagent_state = LIQUID
|
||||||
touch_met = 50 // Get rid of it quickly
|
touch_met = 50 // Get rid of it quickly
|
||||||
color = "#B31008"
|
color = "#B31008"
|
||||||
|
agony_dose = 0.5
|
||||||
|
agony_amount = 4
|
||||||
|
discomfort_message = "<span class='danger'>You feel like your insides are burning!</span>"
|
||||||
|
slime_temp_adj = 15
|
||||||
|
|
||||||
/datum/reagent/condensedcapsaicin/affect_blood(var/mob/living/carbon/M, var/alien, var/removed)
|
/datum/reagent/capsaicin/condensed/affect_touch(var/mob/living/carbon/M, var/alien, var/removed)
|
||||||
if(alien == IS_DIONA)
|
|
||||||
return
|
|
||||||
M.adjustToxLoss(0.5 * removed)
|
|
||||||
|
|
||||||
/datum/reagent/condensedcapsaicin/affect_touch(var/mob/living/carbon/M, var/alien, var/removed)
|
|
||||||
var/eyes_covered = 0
|
var/eyes_covered = 0
|
||||||
var/mouth_covered = 0
|
var/mouth_covered = 0
|
||||||
var/obj/item/safe_thing = null
|
var/obj/item/safe_thing = null
|
||||||
@@ -304,21 +309,6 @@
|
|||||||
M.Weaken(5)
|
M.Weaken(5)
|
||||||
return
|
return
|
||||||
|
|
||||||
/datum/reagent/condensedcapsaicin/affect_ingest(var/mob/living/carbon/M, var/alien, var/removed)
|
|
||||||
if(ishuman(M))
|
|
||||||
var/mob/living/carbon/human/H = M
|
|
||||||
if(H.species && (H.species.flags & (NO_PAIN | IS_SYNTHETIC)))
|
|
||||||
return
|
|
||||||
if(dose == metabolism)
|
|
||||||
M << "<span class='danger'>You feel like your insides are burning!</span>"
|
|
||||||
else
|
|
||||||
M.apply_effect(4, AGONY, 0)
|
|
||||||
if(prob(5))
|
|
||||||
M.visible_message("<span class='warning'>[M] [pick("dry heaves!","coughs!","splutters!")]</span>", "<span class='danger'>You feel like your insides are burning!</span>")
|
|
||||||
if(istype(M, /mob/living/carbon/slime))
|
|
||||||
M.bodytemperature += rand(15, 30)
|
|
||||||
holder.remove_reagent("frostoil", 5)
|
|
||||||
|
|
||||||
/* Drinks */
|
/* Drinks */
|
||||||
|
|
||||||
/datum/reagent/drink
|
/datum/reagent/drink
|
||||||
|
|||||||
Reference in New Issue
Block a user