Borg Power Use Refactor

This commit is contained in:
Fox-McCloud
2016-07-09 01:50:26 -04:00
parent 61b436e92d
commit 405df28fab
11 changed files with 66 additions and 107 deletions
+5 -3
View File
@@ -244,10 +244,12 @@
/obj/item/attack_ai(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
if(!isrobot(user))
return
var/mob/living/silicon/robot/R = user
R.activate_module(src)
R.hud_used.update_robot_modules_display()
if(!R.low_power_mode) //can't equip modules with an empty cell.
R.activate_module(src)
R.hud_used.update_robot_modules_display()
// 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