mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
Gives the hop a trapdoor (#59081)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user