mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-30 07:27:57 +01:00
comments, cleanup
This commit is contained in:
@@ -114,6 +114,7 @@
|
||||
|
||||
if(!is_teleport_allowed(destturf.z))
|
||||
return 0
|
||||
// Only check the destination zlevel for is_teleport_allowed. Checking origin as well breaks ERT teleporters.
|
||||
|
||||
var/area/destarea = get_area(destturf)
|
||||
|
||||
|
||||
@@ -403,8 +403,6 @@
|
||||
var/turf/portal_turf = get_step(src, portaldir)
|
||||
var/obj/effect/portal/redspace/P = new(portal_turf, tele_target, src, 0)
|
||||
myportal = P
|
||||
P.failchance = 0
|
||||
P.icon_state = "portal1"
|
||||
var/area/A = get_area(tele_target)
|
||||
P.name = "[A] portal"
|
||||
else if(!portal_enabled && myportal)
|
||||
|
||||
@@ -340,10 +340,10 @@
|
||||
to_chat(T, "[pick(TPError)]")
|
||||
return
|
||||
else
|
||||
if(!teleport(M) && isliving(M))
|
||||
if(!teleport(M) && isliving(M)) // the isliving(M) is needed to avoid triggering errors if a spark bumps the telehub
|
||||
visible_message("<span class='warning'>[src] emits a loud buzz, as its teleport portal flickers and fails!</span>")
|
||||
playsound(loc, 'sound/machines/buzz-sigh.ogg', 50, 0)
|
||||
power_station.toggle()
|
||||
power_station.toggle() // turn off the portal.
|
||||
|
||||
use_power(5000)
|
||||
//--FalseIncarnate
|
||||
|
||||
@@ -65,6 +65,7 @@
|
||||
|
||||
/obj/effect/portal/redspace
|
||||
name = "redspace portal"
|
||||
desc = "A rare kind of subspace portal, capable of cutting through interference that can jam normal bluespace portals."
|
||||
desc = "A portal capable of bypassing bluespace interference."
|
||||
icon_state = "portal1"
|
||||
failchance = 0
|
||||
ignore_tele_proof_area_setting = TRUE
|
||||
Reference in New Issue
Block a user