Adds combat droid subtype

This commit is contained in:
ZomgPonies
2015-11-20 11:38:14 -05:00
parent e244fdb88d
commit c51f92bf37
2 changed files with 22 additions and 0 deletions
+1
View File
@@ -117,6 +117,7 @@ datum/game_mode/nations
AI.add_inherent_law("Remain available to mediate all conflicts between the various nations when asked to.")
AI.show_laws()
for(var/mob/living/silicon/robot/R in AI.connected_robots)
R.change_mob_type( /mob/living/silicon/robot/combat , null, null, 1, 1 )
R.lawsync()
R.show_laws()
@@ -1409,3 +1409,24 @@ var/list/robot_verbs_default = list(
connected_ai.connected_robots |= src
notify_ai(1)
sync()
/mob/living/silicon/robot/combat/New()
..()
var/module_sprites[0] //Used to store the associations between sprite names and sprite index.
module = new /obj/item/weapon/robot_module/combat(src)
module.channels = list("Security" = 1)
module_sprites["Combat Android"] = "droidcombat"
//languages
module.add_languages(src)
//subsystems
module.add_subsystems(src)
hands.icon_state = lowertext("Combat")
updatename()
status_flags &= ~CANPUSH
choose_icon(6,module_sprites)
radio.config(module.channels)
notify_ai(2)