mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-02-06 06:10:03 +00:00
24 lines
773 B
Plaintext
24 lines
773 B
Plaintext
//inverse of /datum/artifact_effect/cold, the two effects split up for neatness' sake
|
|
/datum/artifact_effect/heat
|
|
name = "heat"
|
|
var/target_temp
|
|
|
|
/datum/artifact_effect/heat/New()
|
|
..()
|
|
effect = pick(EFFECT_TOUCH, EFFECT_AURA)
|
|
effect_type = pick(EFFECT_ORGANIC, EFFECT_BLUESPACE, EFFECT_SYNTH)
|
|
target_temp = rand(300, 600)
|
|
|
|
/datum/artifact_effect/heat/DoEffectTouch(var/mob/user)
|
|
if(holder)
|
|
to_chat(user, "<font color='red'> You feel a wave of heat travel up your spine!</font>")
|
|
var/datum/gas_mixture/env = holder.loc.return_air()
|
|
if(env)
|
|
env.temperature += rand(5,50)
|
|
|
|
/datum/artifact_effect/heat/DoEffectAura()
|
|
if(holder)
|
|
var/datum/gas_mixture/env = holder.loc.return_air()
|
|
if(env && env.temperature < target_temp)
|
|
env.temperature += pick(0, 0, 1)
|