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:
Atlantis
2015-08-25 02:23:34 +02:00
parent 49f044d5b8
commit d40ce38e0a
18 changed files with 540 additions and 111 deletions

View File

@@ -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

View File

@@ -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