Remove ref passing, but keep devirtualizations
This commit is contained in:
@@ -1,27 +1,13 @@
|
||||
namespace Craftimizer.Simulator.Actions;
|
||||
|
||||
internal sealed class CarefulSynthesis : BaseAction
|
||||
internal sealed class CarefulSynthesis() : BaseAction(
|
||||
ActionCategory.Synthesis, 62, 100203,
|
||||
increasesProgress: true,
|
||||
defaultCPCost: 7,
|
||||
defaultEfficiency: 150
|
||||
)
|
||||
{
|
||||
public int CP = 7;
|
||||
public int EfficiencyNormal = 150;
|
||||
public int EfficiencyMastery = 180;
|
||||
|
||||
public CarefulSynthesis()
|
||||
{
|
||||
Category = ActionCategory.Synthesis;
|
||||
Level = 62;
|
||||
ActionId = 100203;
|
||||
IncreasesProgress = true;
|
||||
}
|
||||
|
||||
public override void CPCost(Simulator s, ref int cost)
|
||||
{
|
||||
cost = CP;
|
||||
}
|
||||
|
||||
// Careful Synthesis Mastery Trait
|
||||
public override void Efficiency(Simulator s, ref int eff)
|
||||
{
|
||||
eff = s.Input.Stats.Level >= 82 ? EfficiencyMastery : EfficiencyNormal;
|
||||
}
|
||||
public override int Efficiency(Simulator s) =>
|
||||
s.Input.Stats.Level >= 82 ? 180 : 150;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user