Remove ref passing, but keep devirtualizations
This commit is contained in:
@@ -1,28 +1,14 @@
|
||||
namespace Craftimizer.Simulator.Actions;
|
||||
|
||||
internal sealed class RapidSynthesis : BaseAction
|
||||
internal sealed class RapidSynthesis() : BaseAction(
|
||||
ActionCategory.Synthesis, 9, 100363,
|
||||
increasesProgress: true,
|
||||
defaultCPCost: 0,
|
||||
defaultEfficiency: 250,
|
||||
defaultSuccessRate: 0.50f
|
||||
)
|
||||
{
|
||||
public RapidSynthesis()
|
||||
{
|
||||
Category = ActionCategory.Synthesis;
|
||||
Level = 9;
|
||||
ActionId = 100363;
|
||||
IncreasesProgress = true;
|
||||
}
|
||||
|
||||
public override void CPCost(Simulator s, ref int cost)
|
||||
{
|
||||
cost = 0;
|
||||
}
|
||||
|
||||
// Rapid Synthesis Mastery Trait
|
||||
public override void Efficiency(Simulator s, ref int eff)
|
||||
{
|
||||
eff = s.Input.Stats.Level >= 63 ? 500 : 250;
|
||||
}
|
||||
|
||||
public override void SuccessRate(Simulator s, ref float success)
|
||||
{
|
||||
success = 0.50f;
|
||||
}
|
||||
public override int Efficiency(Simulator s) =>
|
||||
s.Input.Stats.Level >= 63 ? 500 : 250;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user