Files
Paradise/code/game/objects/structures/plasmafire_generator.dm
Amy 85f8017ab6 More SoftReservedKeyword fixes (#29712)
* Update shieldgen.dm

Signed-off-by: Amy <3855802+amylizzle@users.noreply.github.com>

* Update station_alert.dm

Signed-off-by: Amy <3855802+amylizzle@users.noreply.github.com>

* Update plasmafire_generator.dm

Signed-off-by: Amy <3855802+amylizzle@users.noreply.github.com>

* Update turf.dm

Signed-off-by: Amy <3855802+amylizzle@users.noreply.github.com>

* Update atmospherics.dm

Signed-off-by: Amy <3855802+amylizzle@users.noreply.github.com>

* Update silicon_mob.dm

Signed-off-by: Amy <3855802+amylizzle@users.noreply.github.com>

* Update ai_mob.dm

Signed-off-by: Amy <3855802+amylizzle@users.noreply.github.com>

* Update robot_mob.dm

Signed-off-by: Amy <3855802+amylizzle@users.noreply.github.com>

* Update on_move.dm

Signed-off-by: Amy <3855802+amylizzle@users.noreply.github.com>

---------

Signed-off-by: Amy <3855802+amylizzle@users.noreply.github.com>
2025-07-04 18:51:32 +00:00

42 lines
1.0 KiB
Plaintext

/obj/structure/plasmafire_generator
name = "Plasmafire Generator"
desc = "A magical thing that you really shouldn't be able to see."
anchored = TRUE
alpha = 0
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
resistance_flags = LAVA_PROOF | FIRE_PROOF
flags = NODECONSTRUCT
/obj/structure/plasmafire_generator/Initialize(mapload)
. = ..()
START_PROCESSING(SSprocessing, src)
// for sanity checks
/obj/structure/plasmafire_generator/Destroy()
STOP_PROCESSING(SSprocessing, src)
return ..()
/obj/structure/plasmafire_generator/process()
var/turf/T = get_turf(src)
if(!istype(T))
return
var/datum/gas_mixture/fire = new()
fire.set_toxins(10)
fire.set_oxygen(4)
fire.set_temperature(500)
T.blind_release_air(fire)
/obj/structure/plasmafire_generator/shadow
var/enabled = FALSE
/obj/structure/plasmafire_generator/shadow/onShuttleMove(turf/oldT, turf/T1, rotation, mob/calling_mob)
if(T1.z != 1)
enabled = TRUE
return ..()
/obj/structure/plasmafire_generator/shadow/process()
if(!enabled)
return
return ..()