From 60424d978d86bca290df4403ff72757dcceb537a Mon Sep 17 00:00:00 2001 From: AmShegars <88627712+AmShegars@users.noreply.github.com> Date: Sat, 3 Feb 2024 14:55:59 +0500 Subject: [PATCH] Update mech_interaction.dm --- code/modules/mechs/mech_interaction.dm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/code/modules/mechs/mech_interaction.dm b/code/modules/mechs/mech_interaction.dm index 1aaca6c370..b02492c2b7 100644 --- a/code/modules/mechs/mech_interaction.dm +++ b/code/modules/mechs/mech_interaction.dm @@ -67,13 +67,13 @@ /mob/living/exosuit/ClickOn(var/atom/A, var/params, var/mob/user) if(!user || incapacitated() || user.incapacitated()) return - var/arms_choosed = FALSE - var/body_choosed = FALSE + var/arms_chosen = FALSE + var/body_chosen = FALSE if(selected_hardpoint == HARDPOINT_LEFT_HAND || selected_hardpoint == HARDPOINT_RIGHT_HAND) - arms_choosed = TRUE + arms_chosen = TRUE body_choosed = FALSE - if(selected_hardpoint == HARDPOINT_BACK || selected_hardpoint == HARDPOINT_HEAD || selected_hardpoint == HARDPOINT_LEFT_SHOULDER || selected_hardpoint == HARDPOINT_RIGHT_SHOULDER) - arms_choosed = FALSE + else if(selected_hardpoint == HARDPOINT_BACK || selected_hardpoint == HARDPOINT_HEAD || selected_hardpoint == HARDPOINT_LEFT_SHOULDER || selected_hardpoint == HARDPOINT_RIGHT_SHOULDER) + arms_chosen = FALSE body_choosed = TRUE if(!loc) return @@ -101,16 +101,16 @@ if(A.loc != src && !(get_dir(src, A) & dir)) return - if(!arms && arms_choosed) + if(!arms && arms_chosen) to_chat(user, SPAN_WARNING("\The [src] has no manipulators!")) setClickCooldown(3) return - if(!arms.motivator && arms_choosed) + if(!arms.motivator && arms_chosen) to_chat(user, SPAN_WARNING("Your motivators are damaged! You can't use your manipulators!")) setClickCooldown(15) return - if((!body || body.total_damage >= body.max_damage) && body_choosed) + if((!body || body.total_damage >= body.max_damage) && body_chosen) to_chat(user, SPAN_WARNING("Your cockpit too damaged, additional hardpoints control system damaged, you cant this module!")) setClickCooldown(15) return