mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-09 06:04:23 +01:00
Adds "Highlights" to the Orbit menu (#19168)
* adds highlights * comment update * misc support * weird spacing begone * requested changes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user