forked from NebulaSS13/Nebula
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgas_generation.dm
More file actions
42 lines (34 loc) · 1.1 KB
/
gas_generation.dm
File metadata and controls
42 lines (34 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/datum/artifact_effect/gas
name = "gas creation"
var/spawned_gas
/datum/artifact_effect/gas/New()
..()
if(!spawned_gas)
spawned_gas = pick(get_filterable_material_types(as_list = TRUE))
operation_type = pick((XA_EFFECT_TOUCH), (XA_EFFECT_AURA))
origin_type = XA_EFFECT_SYNTH
/datum/artifact_effect/gas/DoEffectTouch(var/mob/user)
if(holder)
var/turf/holder_loc = holder.loc
if(istype(holder_loc))
holder_loc.assume_gas(spawned_gas, rand(2, 15))
/datum/artifact_effect/gas/DoEffectAura()
if(holder)
var/turf/holder_loc = holder.loc
if(istype(holder_loc))
holder_loc.assume_gas(spawned_gas, 1)
/datum/artifact_effect/gas/oxygen
name = "O2 creation"
spawned_gas = /decl/material/gas/oxygen
/datum/artifact_effect/gas/hydrogen
name = "H2 creation"
spawned_gas = /decl/material/gas/hydrogen
/datum/artifact_effect/gas/sleeping
name = "N2O creation"
spawned_gas = /decl/material/gas/nitrous_oxide
/datum/artifact_effect/gas/nitro
name = "N2 creation"
spawned_gas = /decl/material/gas/nitrogen
/datum/artifact_effect/gas/co2
name = "CO2 creation"
spawned_gas = /decl/material/gas/carbon_dioxide