[MIRROR] Gives the hop a trapdoor (#5864)

* Gives the hop a trapdoor (#59081)

* Gives the hop a trapdoor

Co-authored-by: tralezab <40974010+tralezab@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-05-23 04:31:51 +01:00
committed by GitHub
co-authored by tralezab
parent f8241827fa
commit da88f8e596
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)