e190368d62
- Split into several projects - All dalamud/lumina deps are in the plugin - Crafty/craftingway sim implemented! - optimizations to follow
24 lines
830 B
C#
24 lines
830 B
C#
namespace Craftimizer.Simulator.Actions;
|
|
|
|
internal class TricksOfTheTrade : BaseAction
|
|
{
|
|
public override ActionCategory Category => ActionCategory.Other;
|
|
public override int Level => 13;
|
|
public override uint ActionId => 100371;
|
|
|
|
public override int CPCost => 0;
|
|
public override int DurabilityCost => 0;
|
|
public override bool IsGuaranteedAction => false;
|
|
|
|
public override bool CanUse =>
|
|
(Simulation.Condition == Condition.Good || Simulation.Condition == Condition.Excellent || Simulation.HasEffect(EffectType.HeartAndSoul))
|
|
&& base.CanUse;
|
|
|
|
public override void UseSuccess()
|
|
{
|
|
Simulation.RestoreCP(20);
|
|
if (Simulation.Condition != Condition.Good && Simulation.Condition != Condition.Excellent)
|
|
Simulation.RemoveEffect(EffectType.HeartAndSoul);
|
|
}
|
|
}
|