Adds "Highlights" to the Orbit menu (#19168)

* adds highlights

* comment update

* misc support

* weird spacing begone

* requested changes
This commit is contained in:
Contrabang
2022-10-03 20:02:04 -04:00
committed by GitHub
parent 61c4d66f16
commit 0fbfa2ca0d
4 changed files with 27 additions and 3 deletions
+9 -1
View File
@@ -35,11 +35,13 @@
var/list/data = list()
var/list/alive = list()
var/list/highlights = list()
var/list/antagonists = list()
var/list/dead = list()
var/list/ghosts = list()
var/list/misc = list()
var/list/npcs = list()
var/length_of_ghosts = length(get_observers())
var/list/pois = getpois(mobs_only = FALSE, skip_mindless = FALSE)
for(var/name in pois)
@@ -72,6 +74,8 @@
else if(M.stat == DEAD)
dead += list(serialized)
else
if(length(orbiters) >= 0.2 * length_of_ghosts) // They're important if 20% of observers are watching them
highlights += list(serialized)
alive += list(serialized)
var/datum/mind/mind = M.mind
@@ -85,6 +89,7 @@
- traitor
- mindslaves/vampire thralls
- vampire
- changelings
*/
for(var/_A in mind.antag_datums)
var/datum/antagonist/A = _A
@@ -134,10 +139,13 @@
antag_serialized["antag"] = "Slaughter Demon"
antagonists += list(antag_serialized)
else
if(length(orbiters) >= 0.2 * length_of_ghosts) // If a bunch of people are orbiting an object, like the nuke disk.
highlights += list(serialized)
misc += list(serialized)
data["alive"] = alive
data["antagonists"] = antagonists
data["highlights"] = highlights
data["alive"] = alive
data["dead"] = dead
data["ghosts"] = ghosts
data["misc"] = misc