Skip to content

Commit

Permalink
Вернул культистам запрет телепортироваться в Гейте.
Browse files Browse the repository at this point in the history
  • Loading branch information
SmiLeYre committed Apr 5, 2024
1 parent cc9dc54 commit 60a24ae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions code/modules/antagonists/cult/blood_magic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -498,11 +498,11 @@
log_game("Teleport talisman failed - no other teleport runes")
return

// var/turf/T = get_turf(src)
// if(is_away_level(T.z))
// to_chat(user, "<span class='cultitalic'>You are not in the right dimension!</span>")
// log_game("Teleport spell failed - user in away mission")
// return
var/turf/T = get_turf(src)
if(is_away_level(T.z))
to_chat(user, "<span class='cultitalic'>Вы находитесь не в том измерении!</span>")
log_game("Руна телепортации не сработала - пользователь находится за Вратами.")
return

var/input_rune_key = input(user, "Choose a rune to teleport to.", "Rune to Teleport to") as null|anything in potential_runes //we know what key they picked
var/obj/effect/rune/teleport/actual_selected_rune = potential_runes[input_rune_key] //what rune does that key correspond to?
Expand Down
10 changes: 5 additions & 5 deletions code/modules/antagonists/cult/runes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -379,11 +379,11 @@ structure_check() searches for nearby cultist structures required for the invoca
return

var/turf/T = get_turf(src)
// if(is_away_level(T.z))
// to_chat(user, "<span class='cult italic'>You are not in the right dimension!</span>")
// log_game("Teleport rune failed - user in away mission")
// fail_invoke()
// return
if(is_away_level(T.z))
to_chat(user, "<span class='cult italic'>Вы находитесь не в том измерении!</span>")
log_game("Руна телепортации не сработала - пользователь находится за Вратами.")
fail_invoke()
return

var/input_rune_key = input(user, "Choose a rune to teleport to.", "Rune to Teleport to") as null|anything in potential_runes //we know what key they picked
var/obj/effect/rune/teleport/actual_selected_rune = potential_runes[input_rune_key] //what rune does that key correspond to?
Expand Down

0 comments on commit 60a24ae

Please sign in to comment.