From 7753acc5476d1cc577d2f1ee46a9fb972ae68054 Mon Sep 17 00:00:00 2001 From: DragonTrance Date: Tue, 29 Dec 2020 11:27:53 -0700 Subject: [PATCH] forgot one thing --- .../code/game/objects/items/robot/robot_upgrades.dm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modular_citadel/code/game/objects/items/robot/robot_upgrades.dm b/modular_citadel/code/game/objects/items/robot/robot_upgrades.dm index 19e8b061..f3fdd837 100644 --- a/modular_citadel/code/game/objects/items/robot/robot_upgrades.dm +++ b/modular_citadel/code/game/objects/items/robot/robot_upgrades.dm @@ -12,9 +12,14 @@ /obj/effect/proc_holder/silicon/cyborg/vtecControl/Click(mob/living/silicon/robot/user = usr) if(!user) return + if(!user.cell) + return + + if(user.cell.charge <= 0) + to_chat(user, "You cannot cycle through your VTEC upgrade without power!") + return currentState = (currentState + 1) % 3 - switch(currentState) if (0) user.remove_movespeed_modifier(MOVESPEED_ID_SILICON_VTEC)