Updates Part Eleven

This commit is contained in:
Unknown
2019-04-13 19:30:30 -04:00
parent ced7e8d3b0
commit 042720823a
14 changed files with 271 additions and 28 deletions
@@ -58,6 +58,9 @@ var/global/ntnet_card_uid = 1
/obj/item/weapon/computer_hardware/network_card/proc/get_network_tag()
return "[identification_string] (NID [identification_id])"
/obj/item/weapon/computer_hardware/network_card/proc/is_banned()
return ntnet_global.check_banned(identification_id)
// 0 - No signal, 1 - Low signal, 2 - High signal. 3 - Wired Connection
/obj/item/weapon/computer_hardware/network_card/proc/get_signal(var/specific_action = 0)
if(!holder2) // Hardware is not installed in anything. No signal. How did this even get called?
@@ -66,13 +69,13 @@ var/global/ntnet_card_uid = 1
if(!enabled)
return 0
if(!check_functionality())
if(!check_functionality() || !ntnet_global || is_banned())
return 0
if(ethernet) // Computer is connected via wired connection.
return 3
if(!ntnet_global || !ntnet_global.check_function(specific_action)) // NTNet is down and we are not connected via wired connection. No signal.
if(!ntnet_global.check_function(specific_action)) // NTNet is down and we are not connected via wired connection. No signal.
return 0
if(holder2)