Makes wormhole projector portals spawn effects once every 0.5 seconds max (#19398)

* Refactor the parameters and starting the teleport

* Adds arguments and moves the default effect generation up to do_teleport

* Typo in arguments

* portals now only create sparks every 0.5 second when things pass through

* Comment fix
This commit is contained in:
Farie82
2022-10-15 11:40:32 +01:00
committed by GitHub
parent 34309c24b8
commit a7179d97bf
6 changed files with 52 additions and 24 deletions
@@ -204,7 +204,7 @@ Difficulty: Hard
if(mode == BLUESPACE)
new /obj/effect/temp_visual/bsg_kaboom(get_turf(src))
src.visible_message("<span class='danger'>[src] teleports somewhere nearby!</span>")
do_teleport(src, target, 7, asoundin = 'sound/effects/phasein.ogg', safe_turf_pick = TRUE) //Teleport within 7 tiles of the target
do_teleport(src, target, 7, sound_in = 'sound/effects/phasein.ogg', safe_turf_pick = TRUE) //Teleport within 7 tiles of the target
new /obj/effect/temp_visual/bsg_kaboom(get_turf(src))
TR.health_and_snap_check(FALSE)// We want the legs to instantly teleport with it, without regening