mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Fix computers above z6
This commit is contained in:
@@ -91,7 +91,7 @@
|
|||||||
. = ..()
|
. = ..()
|
||||||
|
|
||||||
/obj/machinery/computer/security/attack_hand(var/mob/user as mob)
|
/obj/machinery/computer/security/attack_hand(var/mob/user as mob)
|
||||||
if (src.z > 6)
|
if (using_map && !(src.z in using_map.station_levels))
|
||||||
user << "<span class='danger'>Unable to establish a connection:</span> You're too far away from the station!"
|
user << "<span class='danger'>Unable to establish a connection:</span> You're too far away from the station!"
|
||||||
return
|
return
|
||||||
if(stat & (NOPOWER|BROKEN)) return
|
if(stat & (NOPOWER|BROKEN)) return
|
||||||
|
|||||||
@@ -274,7 +274,7 @@
|
|||||||
/obj/machinery/computer/communications/attack_hand(var/mob/user as mob)
|
/obj/machinery/computer/communications/attack_hand(var/mob/user as mob)
|
||||||
if(..())
|
if(..())
|
||||||
return
|
return
|
||||||
if (src.z > 6)
|
if (using_map && !(src.z in using_map.station_levels))
|
||||||
user << "\red <b>Unable to establish a connection</b>: \black You're too far away from the station!"
|
user << "\red <b>Unable to establish a connection</b>: \black You're too far away from the station!"
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
/obj/machinery/computer/secure_data/attack_hand(mob/user as mob)
|
/obj/machinery/computer/secure_data/attack_hand(mob/user as mob)
|
||||||
if(..())
|
if(..())
|
||||||
return
|
return
|
||||||
if (src.z > 6)
|
if (using_map && !(src.z in using_map.station_levels))
|
||||||
user << "<span class='warning'>Unable to establish a connection:</span> You're too far away from the station!"
|
user << "<span class='warning'>Unable to establish a connection:</span> You're too far away from the station!"
|
||||||
return
|
return
|
||||||
var/dat
|
var/dat
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
/obj/machinery/computer/skills/attack_hand(mob/user as mob)
|
/obj/machinery/computer/skills/attack_hand(mob/user as mob)
|
||||||
if(..())
|
if(..())
|
||||||
return
|
return
|
||||||
if (src.z > 6)
|
if (using_map && !(src.z in using_map.station_levels))
|
||||||
user << "<span class='danger'>Unable to establish a connection:</span> You're too far away from the station!"
|
user << "<span class='danger'>Unable to establish a connection:</span> You're too far away from the station!"
|
||||||
return
|
return
|
||||||
var/dat
|
var/dat
|
||||||
|
|||||||
Reference in New Issue
Block a user