Few bugfixes for Shadow Demon (#25671)

* 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>
This commit is contained in:
Сиротка
2024-06-06 20:30:49 +00:00
committed by GitHub
co-authored by DGamerL
parent 3c05597cfa
commit ab85721b44
3 changed files with 9 additions and 0 deletions
@@ -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
@@ -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
@@ -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))