Skip to content

Commit

Permalink
Better variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
VMSolidus committed Jul 12, 2024
1 parent 84c5eba commit 7b9e6b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Content.Shared/Cuffs/Components/HandcuffComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public sealed partial class HandcuffComponent : Component
/// When false, handcuffs are easier to get out of if you are smaller than average, representing the use of dexterity to slip the cuffs.
/// </summary>
[DataField]
public bool UncuffMassMultiplies = false;
public bool UncuffEasierWhenLarge = false;
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Content.Shared/Cuffs/SharedCuffableSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ public void TryUncuff(EntityUid target, EntityUid user, EntityUid? cuffsToRemove
return;
}

var uncuffTime = (isOwner ? cuff.BreakoutTime : cuff.UncuffTime) * (cuff.UncuffMassMultiplies ? 1 / _contests.MassContest(user) : _contests.MassContest(user));
var uncuffTime = (isOwner ? cuff.BreakoutTime : cuff.UncuffTime) * (cuff.UncuffEasierWhenLarge ? 1 / _contests.MassContest(user) : _contests.MassContest(user));

if (isOwner)
{
Expand Down
4 changes: 2 additions & 2 deletions Resources/Prototypes/Entities/Objects/Misc/handcuffs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
path: /Audio/Items/Handcuffs/rope_breakout.ogg
startBreakoutSound:
path: /Audio/Items/Handcuffs/rope_takeoff.ogg
uncuffMassMultiplies: true # Inverts the mass multiplier for handcuffs; larger has an easier time to break out while smaller struggles.
uncuffEasierWhenLarge: true
- type: Construction
graph: makeshifthandcuffs
node: cuffscable
Expand Down Expand Up @@ -94,7 +94,7 @@
path: /Audio/Items/Handcuffs/rope_breakout.ogg
startBreakoutSound:
path: /Audio/Items/Handcuffs/rope_takeoff.ogg
uncuffMassMultiplies: true # Inverts the mass multiplier for handcuffs; larger has an easier time to break out while smaller struggles.
uncuffEasierWhenLarge: true
- type: Sprite
sprite: Objects/Misc/zipties.rsi
state: cuff
Expand Down

0 comments on commit 7b9e6b0

Please sign in to comment.