Remove ref passing, but keep devirtualizations

This commit is contained in:
Asriel Camora
2024-03-16 13:24:26 -07:00
parent 3223bdcbfb
commit ec77f1d021
48 changed files with 411 additions and 787 deletions
+6 -15
View File
@@ -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);
}