Fix world/Topic()'s manifest to include synthetics like datacore.dm

* The world/Topic() bot integration API's manifest output uses the same logic as datacore's get_manifest(), except it omits the part that includes synthetics.  The `set_names` variable clearly shows bots are intended to be included, they are just arent.
* Copying the logic from datacore.dm ensures a consistent view of bots and AI.
This commit is contained in:
Leshana
2016-11-08 14:25:46 -05:00
parent 4b913b9353
commit 24ce98c89c

View File

@@ -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"