* sharpness reduce on throw hit * kill me please, submod update --------- Co-authored-by: Ed <96445749+TheShuEd@users.noreply.github.com>
27 lines
805 B
C#
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
|
|
}
|