Gives the hop a trapdoor (#59081)

This commit is contained in:
tralezab
2021-05-22 13:05:38 -07:00
committed by GitHub
parent 9866c26e0c
commit d9c3239d58
15 changed files with 360 additions and 35 deletions
+18
View File
@@ -490,3 +490,21 @@ INITIALIZE_IMMEDIATE(/obj/effect/mapping_helpers/no_lava)
icon_cache[url] = I
query_in_progress = FALSE
return I
/**
* ## trapdoor placer!
*
* This places an unlinked trapdoor in the tile its on (so someone with a remote needs to link it up first)
* Admins may spawn this in the round for additional trapdoors if they so desire
* if YOU want to learn more about trapdoors, read about the component at trapdoor.dm
* note: this is not a turf subtype because the trapdoor needs the type of the turf to turn back into
*/
/obj/effect/mapping_helpers/trapdoor_placer
name = "trapdoor placer"
late = TRUE
icon_state = "trapdoor"
/obj/effect/mapping_helpers/trapdoor_placer/LateInitialize()
var/turf/component_target = get_turf(src)
component_target.AddComponent(/datum/component/trapdoor, starts_open = FALSE)
qdel(src)