Skip to content

Commit

Permalink
Update mech_interaction.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
AmShegars authored Feb 3, 2024
1 parent 75bb8b4 commit 60424d9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions code/modules/mechs/mech_interaction.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 60424d9

Please sign in to comment.