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
+5 -15
View File
@@ -1,20 +1,10 @@
namespace Craftimizer.Simulator.Actions;
internal sealed class GreatStrides : BaseBuffAction
internal sealed class GreatStrides() : BaseBuffAction(
ActionCategory.Buffs, 21, 260,
EffectType.GreatStrides, duration: 3,
increasesStepCount: false,
defaultCPCost: 32)
{
public int CP = 32;
public GreatStrides()
{
Category = ActionCategory.Buffs;
Level = 21;
ActionId = 260;
Effect = EffectType.GreatStrides;
Duration = 3;
}
public override void CPCost(Simulator s, ref int cost)
{
cost = CP;
}
}