2024-08-02 13:51:54 +03:00
|
|
|
using Content.Shared._CP14.MeleeWeapon.EntitySystems;
|
2024-11-29 01:31:42 +03:00
|
|
|
using Robust.Shared.GameStates;
|
2024-04-12 21:09:54 +03:00
|
|
|
|
2024-08-02 13:51:54 +03:00
|
|
|
namespace Content.Shared._CP14.MeleeWeapon.Components;
|
2024-04-12 21:09:54 +03:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// allows the object to become blunt with use
|
|
|
|
|
/// </summary>
|
2024-12-01 20:11:59 +03:00
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
2024-04-20 11:51:04 +03:00
|
|
|
public sealed partial class CP14SharpenedComponent : Component
|
2024-04-12 21:09:54 +03:00
|
|
|
{
|
2024-11-29 01:31:42 +03:00
|
|
|
[DataField, AutoNetworkedField]
|
2024-04-12 21:09:54 +03:00
|
|
|
public float Sharpness = 1f;
|
|
|
|
|
|
2025-04-18 13:51:15 +03:00
|
|
|
[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" },
|
|
|
|
|
};
|
|
|
|
|
|
2024-04-12 21:09:54 +03:00
|
|
|
[DataField]
|
2024-11-29 01:31:42 +03:00
|
|
|
public float SharpnessDamageBy1Damage = 0.001f; //1000 damage
|
2024-04-12 21:09:54 +03:00
|
|
|
}
|