comments, cleanup

This commit is contained in:
Kyep
2018-08-16 02:11:20 -07:00
parent f40127b348
commit f36468b865
4 changed files with 5 additions and 5 deletions
+1
View File
@@ -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)
-2
View File
@@ -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)
+2 -2
View File
@@ -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
+2 -1
View File
@@ -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