mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Merge pull request #2710 from Leshana/world-topic-manifest
Fix world/Topic()'s manifest to include synthetics like datacore.dm
This commit is contained in:
@@ -224,6 +224,19 @@ var/world_topic_spam_protect_time = world.timeofday
|
||||
positions["misc"] = list()
|
||||
positions["misc"][name] = rank
|
||||
|
||||
// Synthetics don't have actual records, so we will pull them from here.
|
||||
for(var/mob/living/silicon/ai/ai in mob_list)
|
||||
if(!positions["bot"])
|
||||
positions["bot"] = list()
|
||||
positions["bot"][ai.name] = "Artificial Intelligence"
|
||||
for(var/mob/living/silicon/robot/robot in mob_list)
|
||||
// No combat/syndicate cyborgs, no drones.
|
||||
if(robot.module && robot.module.hide_on_manifest)
|
||||
continue
|
||||
if(!positions["bot"])
|
||||
positions["bot"] = list()
|
||||
positions["bot"][robot.name] = "[robot.modtype] [robot.braintype]"
|
||||
|
||||
for(var/k in positions)
|
||||
positions[k] = list2params(positions[k]) // converts positions["heads"] = list("Bob"="Captain", "Bill"="CMO") into positions["heads"] = "Bob=Captain&Bill=CMO"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user