//The necropolis gate is used to call forth Legion from the Necropolis. /obj/structure/necropolis_gate name = "necropolis gate" desc = "A tremendous and impossibly large gateway, bored into dense bedrock." icon = 'icons/effects/96x96.dmi' icon_state = "door" anchored = 1 density = 1 opacity = 1 bound_width = 96 bound_height = 96 pixel_x = -32 resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF light_range = 1 var/boss = FALSE var/is_anyone_home = FALSE /obj/structure/necropolis_gate/attack_hand(mob/user) for(var/mob/living/simple_animal/hostile/megafauna/legion/L in mob_list) return if(is_anyone_home) return var/safety = alert(user, "You think this might be a bad idea...", "Knock on the door?", "Proceed", "Abort") if(safety == "Abort" || !in_range(src, user) || !src || is_anyone_home || user.incapacitated()) return user.visible_message("[user] knocks on [src]...", "You tentatively knock on [src]...") playsound(user.loc, 'sound/effects/shieldbash.ogg', 100, 1) is_anyone_home = TRUE sleep(50) if(boss) to_chat(user, "There's no response.") is_anyone_home = FALSE return 0 boss = TRUE visible_message("Locks along the door begin clicking open from within...") var/volume = 60 for(var/i in 1 to 3) playsound(src, 'sound/items/Deconstruct.ogg', volume, 0) volume += 20 sleep(10) sleep(10) visible_message("Something horrible emerges from the Necropolis!") message_admins("[key_name_admin(user)] has summoned Legion!") log_game("[key_name(user)] summoned Legion.") for(var/mob/M in player_list) if(M.z == z) to_chat(M, "Discordant whispers flood your mind in a thousand voices. Each one speaks your name, over and over. Something horrible has come.") M << 'sound/creatures/legion_spawn.ogg' flash_color(M, flash_color = "#FF0000", flash_time = 50) var/image/door_overlay = image('icons/effects/effects.dmi', "legiondoor") notify_ghosts("Legion has been summoned in the [get_area(src)]!", source = src, alert_overlay = door_overlay, action = NOTIFY_JUMP) is_anyone_home = FALSE new/mob/living/simple_animal/hostile/megafauna/legion(get_step(src.loc, SOUTH)) /obj/structure/necropolis_gate/singularity_pull() return 0 /obj/structure/necropolis_gate/Destroy(force) if(force) . = ..() else return QDEL_HINT_LETMELIVE