Prevent drawing teleport runes in the gateway (#17086)

This commit is contained in:
datlo
2021-11-13 13:37:30 +01:00
committed by GitHub
parent f12251aab0
commit 3d907490a8
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -501,7 +501,7 @@
log_game("Teleport spell failed - no other teleport runes")
return
if(!is_level_reachable(user.z))
to_chat(user, "<span class='cultitalic'>You are not in the right dimension!</span>")
to_chat(user, "<span class='cultitalic'>You are too far away from the station to teleport!</span>")
log_game("Teleport spell failed - user in away mission")
return
+5
View File
@@ -139,6 +139,11 @@
to_chat(user, "<span class='cultitalic'>The veil is not weak enough here to summon a cultist, you must be on station!</span>")
return
if(ispath(rune, /obj/effect/rune/teleport))
if(!is_level_reachable(user.z))
to_chat(user, "<span class='cultitalic'>You are too far away from the station to teleport!</span>")
return
var/old_color = user.color // we'll temporarily redden the user for better feedback to fellow cultists. Store this to revert them back.
if(narsie_rune)
if(!narsie_rune_check(user, A))
+1 -1
View File
@@ -461,7 +461,7 @@ structure_check() searches for nearby cultist structures required for the invoca
return
if(!is_level_reachable(user.z))
to_chat(user, "<span class='cultitalic'>You are not in the right dimension!</span>")
to_chat(user, "<span class='cultitalic'>You are too far away from the station to teleport!</span>")
log_game("Teleport rune failed - user in away mission")
fail_invoke()
return