Merge pull request #11204 from GunHog/Malf_Shopping_List

Displays a Malf AI's powers at round end.
This commit is contained in:
Remie Richards
2015-08-18 20:27:16 +01:00
2 changed files with 10 additions and 6 deletions
@@ -19,7 +19,7 @@
/datum/AI_Module/large/fireproof_core
module_name = "Core upgrade"
module_name = "Core Upgrade"
mod_pick_name = "coreup"
description = "An upgrade to improve core resistance, making it immune to fire and heat. This effect is permanent."
cost = 50
@@ -36,7 +36,7 @@
src << "<span class='notice'>Core fireproofed.</span>"
/datum/AI_Module/large/upgrade_turrets
module_name = "AI Turret upgrade"
module_name = "AI Turret Upgrade"
mod_pick_name = "turret"
description = "Improves the power and health of all AI turrets. This effect is permanent."
cost = 50
@@ -121,7 +121,7 @@
minor_announce("Automatic system reboot complete. Have a secure day.","Network reset:")
/datum/AI_Module/large/disable_rcd
module_name = "RCD disable"
module_name = "RCD Disable"
mod_pick_name = "rcd"
description = "Send a specialised pulse to break all RCD devices on the station."
cost = 50
@@ -217,7 +217,7 @@
/datum/AI_Module/small/overload_machine
module_name = "Machine overload"
module_name = "Machine Overload"
mod_pick_name = "overload"
description = "Overloads an electrical machine, causing a small explosion. 2 uses."
uses = 2
@@ -246,7 +246,7 @@
else src << "<span class='notice'>That's not a machine.</span>"
/datum/AI_Module/small/override_machine
module_name = "Machine override"
module_name = "Machine Override"
mod_pick_name = "override"
description = "Overrides a machine's programming, causing it to rise up and attack everyone except other machines. 4 uses."
uses = 4
@@ -285,6 +285,7 @@
/datum/game_mode/proc/auto_declare_completion_malfunction()
if( malf_ai.len || istype(ticker.mode,/datum/game_mode/malfunction) )
var/text = "<br><FONT size=3><B>The malfunctioning AIs were:</B></FONT>"
var/module_text_temp = "<br><b>Purchased modules:</b><br>" //Added at the end
for(var/datum/mind/malf in malf_ai)
@@ -296,10 +297,13 @@
text += "operational"
if(malf.current.real_name != malf.name)
text += " as <b>[malf.current.real_name]</b>"
var/mob/living/silicon/ai/AI = malf.current
for(var/datum/AI_Module/mod in AI.current_modules)
module_text_temp += mod.module_name + "<br>"
else
text += "hardware destroyed"
text += ")"
text += "<br>"
text += module_text_temp
world << text
return 1