forked from space-wizards/space-station-14
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Small strange jackboots buff (space-wizards#30586)
* Small strange jackboots buff * Update ClothingSlowOnDamageModifierComponent.cs
- Loading branch information
1 parent
7e57b0d
commit 5c21b4e
Showing
6 changed files
with
65 additions
and
2 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
Content.Shared/Damage/Components/ClothingSlowOnDamageModifierComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Robust.Shared.GameStates; | ||
|
||
namespace Content.Shared.Damage.Components; | ||
|
||
/// <summary> | ||
/// This is used for a clothing item that modifies the slowdown from taking damage. | ||
/// Used for entities with <see cref="SlowOnDamageComponent"/> | ||
/// </summary> | ||
[RegisterComponent, NetworkedComponent, Access(typeof(SlowOnDamageSystem))] | ||
public sealed partial class ClothingSlowOnDamageModifierComponent : Component | ||
{ | ||
/// <summary> | ||
/// A coefficient modifier for the slowdown | ||
/// </summary> | ||
[DataField] | ||
public float Modifier = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
melee-stamina = Not enough stamina | ||
slow-on-damage-modifier-examine = Slowness from injuries is reduced by [color=yellow]{$mod}%[/color] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters