Files
Craftimizer/Simulator/Actions/Groundwork.cs
T
2024-03-15 10:31:05 -07:00

27 lines
630 B
C#

namespace Craftimizer.Simulator.Actions;
internal sealed class Groundwork : BaseAction
{
public Groundwork()
{
Category = ActionCategory.Synthesis;
Level = 72;
ActionId = 100403;
IncreasesProgress = true;
DurabilityCost = 20;
}
public override void CPCost(Simulator s, ref int cost)
{
cost = 18;
}
public override void Efficiency(Simulator s, ref int eff)
{
// Groundwork Mastery Trait
eff = s.Input.Stats.Level >= 86 ? 360 : 300;
if (s.Durability < s.CalculateDurabilityCost(DurabilityCost))
eff /= 2;
}
}