Optimizations (from @wolfcomp)
This commit is contained in:
@@ -2,13 +2,26 @@ namespace Craftimizer.Simulator.Actions;
|
||||
|
||||
internal sealed class HastyTouch : BaseAction
|
||||
{
|
||||
public override ActionCategory Category => ActionCategory.Quality;
|
||||
public override int Level => 9;
|
||||
public override uint ActionId => 100355;
|
||||
public HastyTouch()
|
||||
{
|
||||
Category = ActionCategory.Quality;
|
||||
Level = 9;
|
||||
ActionId = 100355;
|
||||
IncreasesQuality = true;
|
||||
}
|
||||
|
||||
public override bool IncreasesQuality => true;
|
||||
public override void CPCost(Simulator s, ref int cost)
|
||||
{
|
||||
cost = 0;
|
||||
}
|
||||
|
||||
public override int CPCost(Simulator s) => 0;
|
||||
public override int Efficiency(Simulator s) => 100;
|
||||
public override float SuccessRate(Simulator s) => 0.60f;
|
||||
public override void Efficiency(Simulator s, ref int eff)
|
||||
{
|
||||
eff = 100;
|
||||
}
|
||||
|
||||
public override void SuccessRate(Simulator s, ref float success)
|
||||
{
|
||||
success = 0.60f;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user