Remove ref passing, but keep devirtualizations
This commit is contained in:
@@ -1,20 +1,11 @@
|
||||
namespace Craftimizer.Simulator.Actions;
|
||||
|
||||
internal sealed class MastersMend : BaseAction
|
||||
internal sealed class MastersMend() : BaseAction(
|
||||
ActionCategory.Durability, 7, 100003,
|
||||
durabilityCost: 0,
|
||||
defaultCPCost: 88
|
||||
)
|
||||
{
|
||||
public MastersMend()
|
||||
{
|
||||
Category = ActionCategory.Durability;
|
||||
Level = 7;
|
||||
ActionId = 100003;
|
||||
DurabilityCost = 0;
|
||||
}
|
||||
|
||||
public override void CPCost(Simulator s, ref int cost)
|
||||
{
|
||||
cost = 88;
|
||||
}
|
||||
|
||||
public override void UseSuccess(Simulator s, ref int eff) =>
|
||||
public override void UseSuccess(Simulator s) =>
|
||||
s.RestoreDurability(30);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user