Files
Paradise/code/game/objects/effects/forcefields.dm
GDN c7d3492514 the mime's force wall is now destructible (#20399)
* the mime's forcefield is now destructable

* semi-invisible

* Update code/game/objects/effects/forcefields.dm

Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>

* this should be fine, if this breaks we'll know quickly

Co-authored-by: Farie82 <farie82@users.noreply.github.com>

---------

Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
Co-authored-by: Farie82 <farie82@users.noreply.github.com>
2023-03-06 23:50:41 -05:00

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(turf/T)
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)
air_update_turf(TRUE)
/obj/structure/forcefield/Destroy()
if(blocks_atmos)
blocks_atmos = FALSE
air_update_turf(TRUE)
return ..()
/obj/structure/forcefield/CanAtmosPass(turf/T)
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 = "empty"
name = "invisible blockade"
desc = "You might be here a while."
lifetime = 60 SECONDS