mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-01 13:02:02 +00:00
Major update
- Renames some files, tidies up some of the code - Adds forceMove() and Topic() sanity checks from github suggestions - Properly implements tablets, usage flags and portable devices in general. For now, adds codersprites (final release will have actual sprites) - Fixes some bugs - Assigns file sizes to programs
This commit is contained in:
@@ -70,7 +70,7 @@
|
||||
/datum/computer_hardware/hard_drive/proc/recalculate_size()
|
||||
var/total_size = 0
|
||||
for(var/datum/computer_file/F in stored_files)
|
||||
total_size = F.size
|
||||
total_size += F.size
|
||||
|
||||
used_capacity = total_size
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
// 0 - No signal, 1 - Low signal, 2 - High signal. 3 - Wired Connection
|
||||
/datum/computer_hardware/network_card/proc/get_signal(var/specific_action = 0)
|
||||
if(!holder) // Hardware is not installed in anything. No signal. How did this even get called?
|
||||
if(!holder && !holder2) // Hardware is not installed in anything. No signal. How did this even get called?
|
||||
return 0
|
||||
|
||||
if(!enabled)
|
||||
@@ -39,9 +39,14 @@
|
||||
if(!ntnet_global || !ntnet_global.check_function(specific_action)) // NTNet is down and we are not connected via wired connection. No signal.
|
||||
return 0
|
||||
|
||||
if(holder.z in config.station_levels) // Computer is on station, High signal
|
||||
if(holder && holder.z in config.station_levels) // Computer is on station, High signal
|
||||
return 2
|
||||
|
||||
if(holder2)
|
||||
var/turf/T = get_turf(holder2)
|
||||
if((T && istype(T)) && T.z in config.station_levels)
|
||||
return 2
|
||||
|
||||
if(long_range) // Computer is not on station, but it has upgraded network card. Low signal.
|
||||
return 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user