Remove ref passing, but keep devirtualizations
This commit is contained in:
@@ -1,27 +1,12 @@
|
||||
namespace Craftimizer.Simulator.Actions;
|
||||
|
||||
internal sealed class HastyTouch : BaseAction
|
||||
internal sealed class HastyTouch() : BaseAction(
|
||||
ActionCategory.Quality, 9, 100355,
|
||||
increasesQuality: true,
|
||||
defaultCPCost: 0,
|
||||
defaultEfficiency: 100,
|
||||
defaultSuccessRate: 0.60f
|
||||
)
|
||||
{
|
||||
public HastyTouch()
|
||||
{
|
||||
Category = ActionCategory.Quality;
|
||||
Level = 9;
|
||||
ActionId = 100355;
|
||||
IncreasesQuality = true;
|
||||
}
|
||||
|
||||
public override void CPCost(Simulator s, ref int cost)
|
||||
{
|
||||
cost = 0;
|
||||
}
|
||||
|
||||
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