Skip to content

Commit

Permalink
Middleclick buckling.
Browse files Browse the repository at this point in the history
  • Loading branch information
Segrain committed Mar 7, 2024
1 parent 9cc6358 commit a9faeb6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/_onclick/other_mobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
if (mods["middle"])
if (isStructure(A) && get_dist(src, A) <= 1)
var/obj/structure/S = A
S.do_climb(src, mods)
if(S.climbable)
S.do_climb(src, mods)
else if(S.can_buckle)
S.buckle_mob(src, src)
return TRUE
else if(!(isitem(A) && get_dist(src, A) <= 1) && (client && (client.prefs.toggle_prefs & TOGGLE_MIDDLE_MOUSE_SWAP_HANDS)))
swap_hand()
Expand Down

0 comments on commit a9faeb6

Please sign in to comment.