Remove ref passing, but keep devirtualizations
This commit is contained in:
@@ -1,25 +1,10 @@
|
||||
namespace Craftimizer.Simulator.Actions;
|
||||
|
||||
internal sealed class BasicTouch : BaseAction
|
||||
internal sealed class BasicTouch() : BaseAction(
|
||||
ActionCategory.Quality, 5, 100002,
|
||||
increasesQuality: true,
|
||||
defaultCPCost: 18,
|
||||
defaultEfficiency: 100)
|
||||
{
|
||||
public int CP = 18;
|
||||
public int eff = 100;
|
||||
|
||||
public BasicTouch()
|
||||
{
|
||||
Category = ActionCategory.Quality;
|
||||
Level = 5;
|
||||
ActionId = 100002;
|
||||
IncreasesQuality = true;
|
||||
}
|
||||
|
||||
public override void CPCost(Simulator s, ref int cost)
|
||||
{
|
||||
cost = CP;
|
||||
}
|
||||
|
||||
public override void Efficiency(Simulator s, ref int eff)
|
||||
{
|
||||
eff = this.eff;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user