mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Cetus Station (#11726)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
@@ -36,3 +36,17 @@
|
||||
/obj/effect/step_trigger/teleporter/poi/Initialize(mapload) //This is for placing teleporters in gateways/POIS, where Z levels can be different and I cant be assed to make fake teleporter stairs
|
||||
. = ..()
|
||||
teleport_z = src.z
|
||||
|
||||
/obj/effect/step_trigger/teleporter/randomspawn //teleporter/random was taken. This version only teleports when stepped on *sometimes*, and you can give it a chance not to spawn
|
||||
var/destroyprob = 99
|
||||
var/teleprob = 1
|
||||
|
||||
/obj/effect/step_trigger/teleporter/randomspawn/Initialize(mapload)
|
||||
. = ..()
|
||||
if(destroyprob && prob(destroyprob))
|
||||
qdel(src)
|
||||
|
||||
/obj/effect/step_trigger/teleporter/randomspawn/Trigger()
|
||||
if(teleprob && !prob(teleprob))
|
||||
return FALSE
|
||||
return ..()
|
||||
|
||||
Reference in New Issue
Block a user