From c7d34925140c2f0f041aef99eb8fc602bd6c1b6e Mon Sep 17 00:00:00 2001 From: GDN <96800819+GDNgit@users.noreply.github.com> Date: Mon, 6 Mar 2023 22:50:41 -0600 Subject: [PATCH] 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 --------- Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com> Co-authored-by: Farie82 --- code/datums/spells/mime.dm | 2 +- code/game/objects/effects/forcefields.dm | 30 ++++++++++++++++++++++-- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/code/datums/spells/mime.dm b/code/datums/spells/mime.dm index 881e2bee263..6c3769364f0 100644 --- a/code/datums/spells/mime.dm +++ b/code/datums/spells/mime.dm @@ -3,7 +3,7 @@ desc = "The mime's performance transmutates into physical reality." school = "mime" panel = "Mime" - summon_type = list(/obj/effect/forcefield/mime) + summon_type = list(/obj/structure/forcefield/mime) invocation_type = "emote" invocation_emote_self = "You form a wall in front of yourself." summon_lifespan = 20 SECONDS diff --git a/code/game/objects/effects/forcefields.dm b/code/game/objects/effects/forcefields.dm index b0eca353798..85ad204b556 100644 --- a/code/game/objects/effects/forcefields.dm +++ b/code/game/objects/effects/forcefields.dm @@ -29,12 +29,38 @@ ///////////Mimewalls/////////// -/obj/effect/forcefield/mime - icon_state = "empty" +/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