Files
crystall-punk-14/Content.Shared/_CP14/MeleeWeapon/Components/CP14SharpenedComponent.cs
Gagarinten-Noverdo e1326c00b1 sharpness reduce on throw hit (#1164)
* sharpness reduce on throw hit

* kill me please, submod update

---------

Co-authored-by: Ed <96445749+TheShuEd@users.noreply.github.com>
2025-04-18 13:51:15 +03:00

27 lines
805 B
C#

using Content.Shared._CP14.MeleeWeapon.EntitySystems;
using Robust.Shared.GameStates;
namespace Content.Shared._CP14.MeleeWeapon.Components;
/// <summary>
/// allows the object to become blunt with use
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class CP14SharpenedComponent : Component
{
[DataField, AutoNetworkedField]
public float Sharpness = 1f;
[DataField]
public Dictionary<float, string> SharpnessExamineThresholds { get; private set; } = new()
{
{ 0.95f, "sharpening-examined-95" },
{ 0.75f, "sharpening-examined-75" },
{ 0.5f, "sharpening-examined-50" },
{ 0, "sharpening-examined-25" },
};
[DataField]
public float SharpnessDamageBy1Damage = 0.001f; //1000 damage
}