* 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
34 lines
1.1 KiB
C#
34 lines
1.1 KiB
C#
using Content.Shared._CP14.MagicEnergy;
|
|
using Content.Shared._CP14.Skill.Prototypes;
|
|
using Content.Shared.FixedPoint;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared._CP14.Skill.Effects;
|
|
|
|
public sealed partial class AddManaMax : CP14SkillEffect
|
|
{
|
|
[DataField]
|
|
public FixedPoint2 AdditionalMana = 0;
|
|
public override void AddSkill(IEntityManager entManager, EntityUid target)
|
|
{
|
|
var magicSystem = entManager.System<SharedCP14MagicEnergySystem>();
|
|
magicSystem.ChangeMaximumEnergy(target, AdditionalMana);
|
|
}
|
|
|
|
public override void RemoveSkill(IEntityManager entManager, EntityUid target)
|
|
{
|
|
var magicSystem = entManager.System<SharedCP14MagicEnergySystem>();
|
|
magicSystem.ChangeMaximumEnergy(target, -AdditionalMana);
|
|
}
|
|
|
|
public override string? GetName(IEntityManager entMagager, IPrototypeManager protoManager)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
public override string? GetDescription(IEntityManager entMagager, IPrototypeManager protoManager, ProtoId<CP14SkillPrototype> skill)
|
|
{
|
|
return Loc.GetString("cp14-skill-desc-add-mana", ("mana", AdditionalMana.ToString()));
|
|
}
|
|
}
|