Skip to content

Commit

Permalink
Fix bypassing bonking with verb
Browse files Browse the repository at this point in the history
  • Loading branch information
Tayrtahn committed Feb 5, 2024
1 parent 66e9974 commit efa0f0f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Content.Shared/Climbing/Systems/ClimbSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,12 @@ private void AddClimbableVerb(EntityUid uid, ClimbableComponent component, GetVe
// TODO VERBS ICON add a climbing icon?
args.Verbs.Add(new AlternativeVerb
{
Act = () => TryClimb(args.User, args.User, args.Target, out _, component),
Act = () =>
{
// This is a bit of a hack, but it makes bonkables work without redoing the whole system.
var ev = new DragDropTargetEvent(args.User, args.User);
RaiseLocalEvent(uid, ref ev);
},
Text = Loc.GetString("comp-climbable-verb-climb")
});
}
Expand Down

0 comments on commit efa0f0f

Please sign in to comment.