Merge pull request #553 from jack-fractal/cyborg_backpack

Porting UI changes for AI's and Robots
This commit is contained in:
skull132
2015-05-31 16:38:03 +03:00
22 changed files with 757 additions and 190 deletions
+10
View File
@@ -179,6 +179,16 @@
user.put_in_active_hand(src)
return
/obj/item/equip_robot(mob/user as mob)
if (istype(src.loc, /obj/item/weapon/robot_module))
//If the item is part of a cyborg module, equip it
if(!isrobot(user)) return
var/mob/living/silicon/robot/R = user
R.activate_module(src)
R.hud_used.update_robot_modules_display()
return TRUE
// Due to storage type consolidation this should get used more now.
// I have cleaned it up a little, but it could probably use more. -Sayu
/obj/item/attackby(obj/item/weapon/W as obj, mob/user as mob)