From d6c6c80578df578e67b3bad8de947229ce63a285 Mon Sep 17 00:00:00 2001 From: DragonTrance Date: Tue, 29 Dec 2020 11:23:08 -0700 Subject: [PATCH] rahh --- .../game/objects/items/robot/robot_upgrades.dm | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) 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 99f2c964..19e8b061 100644 --- a/modular_citadel/code/game/objects/items/robot/robot_upgrades.dm +++ b/modular_citadel/code/game/objects/items/robot/robot_upgrades.dm @@ -10,17 +10,18 @@ /obj/effect/proc_holder/silicon/cyborg/vtecControl/Click(mob/living/silicon/robot/user = usr) + if(!user) + return currentState = (currentState + 1) % 3 - if(usr) - switch(currentState) - if (0) - user.remove_movespeed_modifier(MOVESPEED_ID_SILICON_VTEC) - if (1) - user.add_movespeed_modifier(MOVESPEED_ID_SILICON_VTEC, override=TRUE, multiplicative_slowdown = -0.15) - if (2) - user.add_movespeed_modifier(MOVESPEED_ID_SILICON_VTEC, override=TRUE, multiplicative_slowdown = -0.325) + switch(currentState) + if (0) + user.remove_movespeed_modifier(MOVESPEED_ID_SILICON_VTEC) + if (1) + user.add_movespeed_modifier(MOVESPEED_ID_SILICON_VTEC, override=TRUE, multiplicative_slowdown = -0.15) + if (2) + user.add_movespeed_modifier(MOVESPEED_ID_SILICON_VTEC, override=TRUE, multiplicative_slowdown = -0.325) action.button_icon_state = "Chevron_State_[currentState]" action.UpdateButtonIcon()