From ab85721b4497fef3e112489a0afce622ae064bea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B8=D1=80=D0=BE=D1=82=D0=BA=D0=B0?= <114731039+ErdGinalD@users.noreply.github.com> Date: Thu, 6 Jun 2024 23:30:49 +0300 Subject: [PATCH] Few bugfixes for Shadow Demon (#25671) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Few bugfixes for Shadow Demon * Update shadow_demon.dm * Update code/game/gamemodes/miniantags/demons/shadow_demon/shadow_demon.dm Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Signed-off-by: Сиротка <114731039+ErdGinalD@users.noreply.github.com> * Update code/game/objects/structures/crates_lockers/closets.dm Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Signed-off-by: Сиротка <114731039+ErdGinalD@users.noreply.github.com> --------- Signed-off-by: Сиротка <114731039+ErdGinalD@users.noreply.github.com> Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> --- .../gamemodes/miniantags/demons/shadow_demon/shadow_demon.dm | 1 + code/game/objects/structures/crates_lockers/closets.dm | 4 ++++ code/modules/atmospherics/machinery/atmospherics.dm | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/code/game/gamemodes/miniantags/demons/shadow_demon/shadow_demon.dm b/code/game/gamemodes/miniantags/demons/shadow_demon/shadow_demon.dm index 7edd0bf893e..0792bf40c9f 100644 --- a/code/game/gamemodes/miniantags/demons/shadow_demon/shadow_demon.dm +++ b/code/game/gamemodes/miniantags/demons/shadow_demon/shadow_demon.dm @@ -6,6 +6,7 @@ icon_living = "shadow_demon" move_resist = MOVE_FORCE_STRONG lighting_alpha = LIGHTING_PLANE_ALPHA_MOSTLY_VISIBLE // so they can tell where the darkness is + see_in_dark = 10 // Below 10 `see_in_dark`, you'll not have full vision with fullscreen loot = list(/obj/item/organ/internal/heart/demon/shadow) death_sound = 'sound/shadowdemon/shadowdeath.ogg' var/thrown_alert = FALSE diff --git a/code/game/objects/structures/crates_lockers/closets.dm b/code/game/objects/structures/crates_lockers/closets.dm index d7b37140b43..cb5dc18f242 100644 --- a/code/game/objects/structures/crates_lockers/closets.dm +++ b/code/game/objects/structures/crates_lockers/closets.dm @@ -92,6 +92,10 @@ if(throwing) throwing.finalize(FALSE) +/obj/structure/closet/extinguish_light(force) + for(var/atom/A in contents) + A.extinguish_light(force) + /obj/structure/closet/proc/open() if(opened) return FALSE diff --git a/code/modules/atmospherics/machinery/atmospherics.dm b/code/modules/atmospherics/machinery/atmospherics.dm index e904ecf8683..d1b103b57c9 100644 --- a/code/modules/atmospherics/machinery/atmospherics.dm +++ b/code/modules/atmospherics/machinery/atmospherics.dm @@ -344,6 +344,10 @@ Pipelines + Other Objects -> Pipe network /obj/machinery/atmospherics/proc/can_crawl_through() return TRUE +/obj/machinery/atmospherics/extinguish_light(force) + set_light(0) + update_icon(UPDATE_OVERLAYS) + /obj/machinery/atmospherics/proc/change_color(new_color) //only pass valid pipe colors please ~otherwise your pipe will turn invisible if(!pipe_color_check(new_color))