NTNet Ethernet Bugfix (#10305)

* NTNet Ethernet Tweak

* Update geeves-ntnet_comp_stuff.yml

* centcomm computers
This commit is contained in:
Geeves
2020-10-21 13:45:25 +02:00
committed by GitHub
parent bb37ed0aa5
commit 2b04a969c9
2 changed files with 13 additions and 4 deletions
@@ -60,19 +60,22 @@ var/global/ntnet_card_uid = 1
return 0
if(!check_functionality())
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 || !ntnet_global.check_function(specific_action))
return 0
if(parent_computer)
var/turf/T = get_turf(parent_computer)
if((T && istype(T)) && isStationLevel(T.z))
// Computer is on station. Low/High signal depending on what type of network card you have
if(long_range)
if(ethernet)
return 3
else if(long_range)
return 2
else
return 1
var/area/A = get_area(parent_computer)
if(A.centcomm_area && ethernet)
return 3
if(long_range) // Computer is not on station, but it has upgraded network card. Low signal.
return 1