mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-26 14:46:52 +01:00
26 lines
705 B
Plaintext
26 lines
705 B
Plaintext
/datum/artifact_effect/common/gasco2
|
|
name = "CO2 creation"
|
|
effect_color = "#a5a5a5"
|
|
|
|
|
|
/datum/artifact_effect/common/gasco2/New()
|
|
..()
|
|
effect = pick(EFFECT_TOUCH, EFFECT_AURA)
|
|
effect_type = pick(EFFECT_BLUESPACE, EFFECT_SYNTH)
|
|
|
|
|
|
/datum/artifact_effect/common/gasco2/DoEffectTouch(mob/living/user)
|
|
var/atom/holder = get_master_holder()
|
|
if (holder)
|
|
var/turf/holder_loc = holder.loc
|
|
if (istype(holder_loc))
|
|
holder_loc.assume_gas("carbon_dioxide", rand(2, 15))
|
|
|
|
|
|
/datum/artifact_effect/common/gasco2/DoEffectAura()
|
|
var/atom/holder = get_master_holder()
|
|
if (holder)
|
|
var/turf/holder_loc = holder.loc
|
|
if (istype(holder_loc))
|
|
holder_loc.assume_gas("carbon_dioxide", pick(0, 0, 0.1, rand()))
|