mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-31 20:53:34 +00:00
* Adds CI for missing icon_states * yeah * more fixes * more fixes * seems good * moar * fix * yea * hrtyhrt * yeah * WOE
67 lines
1.4 KiB
Plaintext
67 lines
1.4 KiB
Plaintext
/obj/effect/forcefield
|
|
desc = "A space wizard's magic wall."
|
|
name = "FORCEWALL"
|
|
icon = 'icons/effects/effects.dmi'
|
|
icon_state = "m_shield"
|
|
opacity = FALSE
|
|
density = TRUE
|
|
var/lifetime = 30 SECONDS
|
|
|
|
/obj/effect/forcefield/New()
|
|
..()
|
|
if(lifetime)
|
|
QDEL_IN(src, lifetime)
|
|
|
|
/obj/effect/forcefield/CanAtmosPass(direction)
|
|
return !density
|
|
|
|
/obj/effect/forcefield/wizard
|
|
var/mob/wizard
|
|
|
|
/obj/effect/forcefield/wizard/Initialize(mapload, mob/summoner)
|
|
. = ..()
|
|
wizard = summoner
|
|
|
|
/obj/effect/forcefield/wizard/CanPass(atom/movable/mover, turf/target)
|
|
if(mover == wizard)
|
|
return TRUE
|
|
return FALSE
|
|
|
|
///////////Mimewalls///////////
|
|
|
|
/obj/structure/forcefield
|
|
name = "ain't supposed to see this"
|
|
desc = "file a github report if you do!"
|
|
icon = 'icons/effects/effects.dmi'
|
|
density = TRUE
|
|
anchored = TRUE
|
|
var/blocks_atmos = TRUE
|
|
|
|
/obj/structure/forcefield/Initialize(mapload)
|
|
. = ..()
|
|
if(blocks_atmos)
|
|
recalculate_atmos_connectivity()
|
|
|
|
/obj/structure/forcefield/Destroy()
|
|
if(blocks_atmos)
|
|
blocks_atmos = FALSE
|
|
recalculate_atmos_connectivity()
|
|
return ..()
|
|
|
|
/obj/structure/forcefield/CanAtmosPass(direction)
|
|
return !blocks_atmos
|
|
|
|
/obj/structure/forcefield/mime
|
|
icon = 'icons/effects/effects.dmi'
|
|
icon_state = "5"
|
|
name = "invisible wall"
|
|
alpha = 1
|
|
desc = "You have a bad feeling about this."
|
|
max_integrity = 80
|
|
|
|
/obj/effect/forcefield/mime/advanced
|
|
icon_state = null
|
|
name = "invisible blockade"
|
|
desc = "You might be here a while."
|
|
lifetime = 60 SECONDS
|