mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 18:22:14 +00:00
* Process procs now properly use deltatime when implementing rates, timers and probabilities * Review fixes * Geiger counters cleanup Made hardsuit geiger code more similar to geiger counter code Geiger counters are more responsive now * Moved SS*_DT defines to subsystems.dm * Rebase fix * Redefined the SS*_DT defines to use the subsystem wait vars * Implemented suggested changes by @AnturK * Commented /datum/proc/process about the deltatime stuff * Send delta_time as a process parameter instead of the defines Also DTfied acid_processing * Dtfied new acid component
23 lines
806 B
Plaintext
23 lines
806 B
Plaintext
PROCESSING_SUBSYSTEM_DEF(nanites)
|
|
name = "Nanites"
|
|
flags = SS_BACKGROUND|SS_POST_FIRE_TIMING|SS_NO_INIT
|
|
wait = 1 SECONDS
|
|
|
|
var/list/datum/nanite_cloud_backup/cloud_backups = list()
|
|
var/list/mob/living/nanite_monitored_mobs = list()
|
|
var/list/datum/nanite_program/relay/nanite_relays = list()
|
|
var/neural_network_count = 0
|
|
|
|
/datum/controller/subsystem/processing/nanites/proc/check_hardware(datum/nanite_cloud_backup/backup)
|
|
if(QDELETED(backup.storage) || (backup.storage.machine_stat & (NOPOWER|BROKEN)))
|
|
return FALSE
|
|
return TRUE
|
|
|
|
/datum/controller/subsystem/processing/nanites/proc/get_cloud_backup(cloud_id, force = FALSE)
|
|
for(var/I in cloud_backups)
|
|
var/datum/nanite_cloud_backup/backup = I
|
|
if(!force && !check_hardware(backup))
|
|
return
|
|
if(backup.cloud_id == cloud_id)
|
|
return backup
|