Files
crystall-punk-14/Content.Shared/_CP14/Skill/Components/CP14MeleeWeaponSkillRequiredComponent.cs
Ed be495f274c Skill progression system (#1263)
* delete skill trees

* Revert "delete skill trees"

This reverts commit 9d7fae73c4.

* learning refactor

* UI tweaks

* sword mastery skill

* telegraphy

* rapier mastery

* research table ui

* finish studing

* polish UI researching

* pyrokinetic

* more skill tree working

* heat adapt

* alchemist and metamagic update

* skill multiple effects support + metamagic bugg manapool

* impossible 😢

* skimitar gaming

* skimidi

* blacksmithing branch

* remove research restrictions

* remove species magic buff

* fix loc

* Update thaumaturgy.yml

* pip

* Delete skill_tree.yml
2025-05-14 12:43:43 +03:00

32 lines
1.1 KiB
C#

using Content.Shared._CP14.Skill.Prototypes;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared._CP14.Skill.Components;
/// <summary>
/// Component that stores the skills learned by a player and their progress in the skill trees.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true)]
[Access(typeof(CP14SharedSkillSystem))]
public sealed partial class CP14MeleeWeaponSkillRequiredComponent : Component
{
/// <summary>
/// What skills does a character have to have to use this weapon?
/// </summary>
[DataField, AutoNetworkedField]
public HashSet<ProtoId<CP14SkillPrototype>> Skills = new();
/// <summary>
/// The chances of dropping a weapon from your hands if the required skills are not learned by the character.
/// </summary>
[DataField, AutoNetworkedField]
public float DropProbability = 0.5f;
/// <summary>
/// Reduces outgoing damage if the required skills are not learned by the character
/// </summary>
[DataField, AutoNetworkedField]
public float DamageMultiplier = 0.5f;
}