Subsystems are now ordered by name in MC tab

This commit is contained in:
Cyberboss
2017-03-02 14:43:38 -05:00
parent 311ba7b7f0
commit 3ad9be1555
10 changed files with 1 additions and 12 deletions

View File

@@ -33,9 +33,7 @@ var/cmp_field = "name"
return b.init_order - a.init_order return b.init_order - a.init_order
/proc/cmp_subsystem_display(datum/subsystem/a, datum/subsystem/b) /proc/cmp_subsystem_display(datum/subsystem/a, datum/subsystem/b)
if(a.display_order == b.display_order) return sorttext(b.name, a.name)
return sorttext(b.name, a.name)
return a.display_order - b.display_order
/proc/cmp_subsystem_priority(datum/subsystem/a, datum/subsystem/b) /proc/cmp_subsystem_priority(datum/subsystem/a, datum/subsystem/b)
return a.priority - b.priority return a.priority - b.priority

View File

@@ -5,7 +5,6 @@
var/name = "fire coderbus" //name of the subsystem var/name = "fire coderbus" //name of the subsystem
var/init_order = 0 //order of initialization. Higher numbers are initialized first, lower numbers later. Can be decimal and negative values. var/init_order = 0 //order of initialization. Higher numbers are initialized first, lower numbers later. Can be decimal and negative values.
var/wait = 20 //time to wait (in deciseconds) between each call to fire(). Must be a positive integer. var/wait = 20 //time to wait (in deciseconds) between each call to fire(). Must be a positive integer.
var/display_order = 100 //display affects the order the subsystem is displayed in the MC tab
var/priority = 50 //When mutiple subsystems need to run in the same tick, higher priority subsystems will run first and be given a higher share of the tick before MC_TICK_CHECK triggers a sleep var/priority = 50 //When mutiple subsystems need to run in the same tick, higher priority subsystems will run first and be given a higher share of the tick before MC_TICK_CHECK triggers a sleep
var/flags = 0 //see MC.dm in __DEFINES Most flags must be set on world start to take full effect. (You can also restart the mc to force them to process again) var/flags = 0 //see MC.dm in __DEFINES Most flags must be set on world start to take full effect. (You can also restart the mc to force them to process again)

View File

@@ -13,7 +13,6 @@ var/datum/subsystem/air/SSair
priority = 20 priority = 20
wait = 5 wait = 5
flags = SS_BACKGROUND flags = SS_BACKGROUND
display_order = 1
var/cost_turfs = 0 var/cost_turfs = 0
var/cost_groups = 0 var/cost_groups = 0

View File

@@ -4,7 +4,6 @@ var/datum/subsystem/garbage_collector/SSgarbage
name = "Garbage" name = "Garbage"
priority = 15 priority = 15
wait = 5 wait = 5
display_order = 2
flags = SS_FIRE_IN_LOBBY|SS_POST_FIRE_TIMING|SS_BACKGROUND|SS_NO_INIT flags = SS_FIRE_IN_LOBBY|SS_POST_FIRE_TIMING|SS_BACKGROUND|SS_NO_INIT
var/collection_timeout = 3000// deciseconds to wait to let running procs finish before we just say fuck it and force del() the object var/collection_timeout = 3000// deciseconds to wait to let running procs finish before we just say fuck it and force del() the object

View File

@@ -9,7 +9,6 @@ var/datum/subsystem/lighting/SSlighting
wait = 1 wait = 1
flags = SS_TICKER flags = SS_TICKER
priority = 25 priority = 25
display_order = 5
var/list/changed_lights = list() //list of all datum/light_source that need updating var/list/changed_lights = list() //list of all datum/light_source that need updating
var/changed_lights_workload = 0 //stats on the largest number of lights (max changed_lights.len) var/changed_lights_workload = 0 //stats on the largest number of lights (max changed_lights.len)

View File

@@ -3,7 +3,6 @@ var/datum/subsystem/machines/SSmachine
/datum/subsystem/machines /datum/subsystem/machines
name = "Machines" name = "Machines"
init_order = 9 init_order = 9
display_order = 3
flags = SS_KEEP_TIMING flags = SS_KEEP_TIMING
var/list/processing = list() var/list/processing = list()
var/list/currentrun = list() var/list/currentrun = list()

View File

@@ -4,7 +4,6 @@ var/datum/subsystem/mapping/SSmapping
name = "Mapping" name = "Mapping"
init_order = 12 init_order = 12
flags = SS_NO_FIRE flags = SS_NO_FIRE
display_order = 50
var/list/nuke_tiles = list() var/list/nuke_tiles = list()
var/list/nuke_threats = list() var/list/nuke_threats = list()

View File

@@ -3,7 +3,6 @@ var/datum/subsystem/mobs/SSmob
/datum/subsystem/mobs /datum/subsystem/mobs
name = "Mobs" name = "Mobs"
init_order = 4 init_order = 4
display_order = 4
priority = 100 priority = 100
flags = SS_KEEP_TIMING|SS_NO_INIT flags = SS_KEEP_TIMING|SS_NO_INIT

View File

@@ -3,7 +3,6 @@ var/datum/subsystem/npcpool/SSnpc
/datum/subsystem/npcpool /datum/subsystem/npcpool
name = "NPC Pool" name = "NPC Pool"
init_order = 17 init_order = 17
display_order = 6
flags = SS_POST_FIRE_TIMING|SS_NO_INIT|SS_NO_TICK_CHECK flags = SS_POST_FIRE_TIMING|SS_NO_INIT|SS_NO_TICK_CHECK
priority = 25 priority = 25

View File

@@ -4,7 +4,6 @@ var/datum/subsystem/tgui/SStgui
name = "tgui" name = "tgui"
wait = 9 wait = 9
init_order = 16 init_order = 16
display_order = 6
flags = SS_NO_INIT|SS_FIRE_IN_LOBBY flags = SS_NO_INIT|SS_FIRE_IN_LOBBY
priority = 110 priority = 110