Remove ref passing, but keep devirtualizations
This commit is contained in:
@@ -1,26 +1,17 @@
|
||||
namespace Craftimizer.Simulator.Actions;
|
||||
|
||||
internal sealed class HeartAndSoul : BaseBuffAction
|
||||
internal sealed class HeartAndSoul() : BaseBuffAction(
|
||||
ActionCategory.Other, 86, 100419,
|
||||
EffectType.HeartAndSoul, duration: 1,
|
||||
macroWaitTime: 3,
|
||||
increasesStepCount: false
|
||||
)
|
||||
{
|
||||
public HeartAndSoul()
|
||||
{
|
||||
Level = 86;
|
||||
Effect = EffectType.HeartAndSoul;
|
||||
MacroWaitTime = 3;
|
||||
ActionId = 100419;
|
||||
Category = ActionCategory.Other;
|
||||
IncreasesStepCount = false;
|
||||
}
|
||||
|
||||
public override void CPCost(Simulator s, ref int cost)
|
||||
{
|
||||
cost = 0;
|
||||
}
|
||||
|
||||
public override bool IsPossible(Simulator s) =>
|
||||
base.IsPossible(s) && s.Input.Stats.IsSpecialist && !s.ActionStates.UsedHeartAndSoul;
|
||||
|
||||
public override bool CouldUse(Simulator s, ref int cost) => !s.ActionStates.UsedHeartAndSoul;
|
||||
public override bool CouldUse(Simulator s) =>
|
||||
!s.ActionStates.UsedHeartAndSoul;
|
||||
|
||||
public override string GetTooltip(Simulator s, bool addUsability) =>
|
||||
$"{GetBaseTooltip(s, addUsability)}Specialist Only\n";
|
||||
|
||||
Reference in New Issue
Block a user