Clumsy system refactor (#31147)
* First commit * Fixes * Added the noise * Renames * Timespan * Fixed space * entity -> ent * This shouldn't work * opps.... * Datafield name change * Better comments * small comment * Personal skill issue * Event renames and stuff * Couple fixes * Defib ref fixes (Silly me) * Added clumsy back! * no hard code clumsy! * Identity fix * Event name change * Comment change * Function name change * opp * Update names * Damage stuff! * Fixes! * Fixes * opps * This was hidden away!! * negative diff feeds me
This commit is contained in:
@@ -251,6 +251,18 @@ public sealed partial class ClimbSystem : VirtualController
|
||||
if (!Resolve(climbable, ref comp, false))
|
||||
return;
|
||||
|
||||
var selfEvent = new SelfBeforeClimbEvent(uid, user, (climbable, comp));
|
||||
RaiseLocalEvent(uid, selfEvent);
|
||||
|
||||
if (selfEvent.Cancelled)
|
||||
return;
|
||||
|
||||
var targetEvent = new TargetBeforeClimbEvent(uid, user, (climbable, comp));
|
||||
RaiseLocalEvent(climbable, targetEvent);
|
||||
|
||||
if (targetEvent.Cancelled)
|
||||
return;
|
||||
|
||||
if (!ReplaceFixtures(uid, climbing, fixtures))
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user