Skip to content

Commit

Permalink
remark
Browse files Browse the repository at this point in the history
  • Loading branch information
PuroSlavKing committed Nov 25, 2024
1 parent d31fa54 commit 1a5701e
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ public async Task CancelTilePry()
await SetTile(Floor);
await InteractUsing(Pry, awaitDoAfters: false);

// WD EDIT START
// CORVAX-NEXT START
if (!ActiveDoAfters.Any())
{
await AssertTile(Plating);
return;
}
// WD EDIT END
// CORVAX-NEXT END

await CancelDoAfters();
await AssertTile(Floor);
Expand All @@ -89,7 +89,7 @@ public async Task CancelRepeatedTilePry()
await InteractUsing(Pry, awaitDoAfters: false);
await RunTicks(1);

if (!ActiveDoAfters.Any()) // WD EDIT
if (!ActiveDoAfters.Any()) // CORVAX-NEXT
return;

Assert.That(ActiveDoAfters.Count(), Is.EqualTo(1));
Expand Down
2 changes: 1 addition & 1 deletion Content.Shared/Prying/Components/PryingComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public record struct GetPryTimeModifierEvent
public readonly EntityUid User;
public float PryTimeModifier = 1.0f;
public float BaseTime = 5.0f;
public float Neglect = 5f; // WD EDIT
public float Neglect = 5f; // CORVAX-NEXT

public GetPryTimeModifierEvent(EntityUid user)
{
Expand Down
6 changes: 3 additions & 3 deletions Content.Shared/Prying/Systems/PryingSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,13 @@ private bool StartPry(EntityUid target, EntityUid user, EntityUid? tool, float t

RaiseLocalEvent(target, ref modEv);

// WD EDIT START
// CORVAX-NEXT START
var time = modEv.BaseTime * modEv.PryTimeModifier / toolModifier;

if (time <= modEv.Neglect)
time = 0;

var doAfterArgs = new DoAfterArgs(EntityManager, user, TimeSpan.FromSeconds(time), new DoorPryDoAfterEvent(), target, target, tool) // WD EDIT END
var doAfterArgs = new DoAfterArgs(EntityManager, user, TimeSpan.FromSeconds(time), new DoorPryDoAfterEvent(), target, target, tool) // CORVAX-NEXT END
{
BreakOnDamage = true,
BreakOnMove = true,
Expand Down Expand Up @@ -175,7 +175,7 @@ private void OnDoAfter(EntityUid uid, DoorComponent door, DoorPryDoAfterEvent ar
return;
}

if (args.Used != null && comp != null && door.State is not DoorState.Closing and not DoorState.Opening) // WD EDIT
if (args.Used != null && comp != null && door.State is not DoorState.Closing and not DoorState.Opening) // CORVAX-NEXT-EDIT
{
_audioSystem.PlayPredicted(comp.UseSound, args.Used.Value, args.User);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public sealed partial class ToolTileCompatibleComponent : Component
/// The time it takes to modify the tile.
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public TimeSpan Delay = TimeSpan.FromSeconds(0); // WD EDIT
public TimeSpan Delay = TimeSpan.FromSeconds(0); // CORVAX-NEXT-EDIT

/// <summary>
/// Whether or not the tile being modified must be unobstructed
Expand Down
2 changes: 2 additions & 0 deletions Resources/Locale/en-US/_corvaxnext/tools/tool-qualities.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tool-quality-advanced-prying-name = Advanced Prying
tool-quality-advanced-prying-tool-name = Axe
5 changes: 0 additions & 5 deletions Resources/Locale/en-US/tools/tool-qualities.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,3 @@ tool-quality-rolling-tool-name = Rolling Pin
tool-quality-digging-name = Digging
tool-quality-digging-tool-name = Shovel
# White Dream
tool-quality-advanced-prying-name = Advanced Prying
tool-quality-advanced-prying-tool-name = Axe
# White Dream
2 changes: 2 additions & 0 deletions Resources/Locale/ru-RU/_corvaxnext/tools/tool-qualities.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tool-quality-advanced-prying-name = Продвинутое монтирование
tool-quality-advanced-prying-tool-name = Топор
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
- type: Tool
qualities:
- Prying
- AdvancedPrying # White Dream
- AdvancedPrying # Corvax-Next-AdvancedPrying
- type: ToolTileCompatible
- type: Prying
- type: UseDelay
Expand Down
6 changes: 3 additions & 3 deletions Resources/Prototypes/Tiles/plating.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
sprite: /Textures/Tiles/plating.png
baseTurf: Lattice
isSubfloor: true
deconstructTools: [ AdvancedPrying ] # White Dream
deconstructTools: [ AdvancedPrying ] # Corvax-Next-AdvancedPrying
footstepSounds:
collection: FootstepPlating
friction: 0.3
Expand All @@ -21,7 +21,7 @@
- 1.0
baseTurf: Lattice
isSubfloor: true
deconstructTools: [ AdvancedPrying ] # White Dream
deconstructTools: [ AdvancedPrying ] # Corvax-Next-AdvancedPrying
footstepSounds:
collection: FootstepPlating
friction: 0.3
Expand All @@ -33,7 +33,7 @@
sprite: /Textures/Tiles/plating_burnt.png
baseTurf: Lattice
isSubfloor: true
deconstructTools: [ AdvancedPrying ] # White Dream
deconstructTools: [ AdvancedPrying ] # Corvax-Next-AdvancedPrying
footstepSounds:
collection: FootstepPlating
friction: 0.3
Expand Down

0 comments on commit 1a5701e

Please sign in to comment.