Optimizations (from @wolfcomp)
This commit is contained in:
@@ -2,12 +2,21 @@ namespace Craftimizer.Simulator.Actions;
|
||||
|
||||
internal sealed class StandardTouch : BaseAction
|
||||
{
|
||||
public override ActionCategory Category => ActionCategory.Quality;
|
||||
public override int Level => 18;
|
||||
public override uint ActionId => 100004;
|
||||
public StandardTouch()
|
||||
{
|
||||
Category = ActionCategory.Quality;
|
||||
Level = 18;
|
||||
ActionId = 100004;
|
||||
IncreasesQuality = true;
|
||||
}
|
||||
|
||||
public override bool IncreasesQuality => true;
|
||||
public override void CPCost(Simulator s, ref int cost)
|
||||
{
|
||||
cost = s.ActionStates.TouchComboIdx == 1 ? 18 : 32;
|
||||
}
|
||||
|
||||
public override int CPCost(Simulator s) => s.ActionStates.TouchComboIdx == 1 ? 18 : 32;
|
||||
public override int Efficiency(Simulator s) => 125;
|
||||
public override void Efficiency(Simulator s, ref int eff)
|
||||
{
|
||||
eff = 125;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user