Remove ref passing, but keep devirtualizations
This commit is contained in:
@@ -1,27 +1,10 @@
|
||||
namespace Craftimizer.Simulator.Actions;
|
||||
|
||||
internal sealed class AdvancedTouch : BaseAction
|
||||
internal sealed class AdvancedTouch() : BaseAction(
|
||||
ActionCategory.Quality, level: 84, actionId: 100411,
|
||||
increasesQuality: true,
|
||||
defaultCPCost: 46, defaultEfficiency: 150)
|
||||
{
|
||||
public int CostDefault = 46;
|
||||
public int CostOptimal = 18;
|
||||
public int EfficiencyDefault = 150;
|
||||
|
||||
public AdvancedTouch()
|
||||
{
|
||||
Category = ActionCategory.Quality;
|
||||
Level = 84;
|
||||
ActionId = 100411;
|
||||
IncreasesQuality = true;
|
||||
}
|
||||
|
||||
|
||||
public override void CPCost(Simulator s, ref int cost)
|
||||
{
|
||||
cost = s.ActionStates.TouchComboIdx == 2 ? CostOptimal : CostDefault;
|
||||
}
|
||||
|
||||
public override void Efficiency(Simulator s, ref int eff)
|
||||
{
|
||||
eff = EfficiencyDefault;
|
||||
}
|
||||
public override int CPCost(Simulator s) =>
|
||||
s.ActionStates.TouchComboIdx == 2 ? 18 : 46;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user