Optimizations (from @wolfcomp)
This commit is contained in:
@@ -2,22 +2,31 @@ namespace Craftimizer.Simulator.Actions;
|
||||
|
||||
internal sealed class MuscleMemory : BaseAction
|
||||
{
|
||||
public override ActionCategory Category => ActionCategory.FirstTurn;
|
||||
public override int Level => 54;
|
||||
public override uint ActionId => 100379;
|
||||
public MuscleMemory()
|
||||
{
|
||||
Category = ActionCategory.FirstTurn;
|
||||
Level = 54;
|
||||
ActionId = 100379;
|
||||
IncreasesProgress = true;
|
||||
}
|
||||
|
||||
public override bool IncreasesProgress => true;
|
||||
public override void CPCost(Simulator s, ref int cost)
|
||||
{
|
||||
cost = 6;
|
||||
}
|
||||
|
||||
public override int CPCost(Simulator s) => 6;
|
||||
public override int Efficiency(Simulator s) => 300;
|
||||
public override void Efficiency(Simulator s, ref int eff)
|
||||
{
|
||||
eff = 300;
|
||||
}
|
||||
|
||||
public override bool IsPossible(Simulator s) => s.IsFirstStep && base.IsPossible(s);
|
||||
|
||||
public override bool CouldUse(Simulator s) => s.IsFirstStep && base.CouldUse(s);
|
||||
public override bool CouldUse(Simulator s, ref int cost) => s.IsFirstStep && base.CouldUse(s, ref cost);
|
||||
|
||||
public override void UseSuccess(Simulator s)
|
||||
public override void UseSuccess(Simulator s, ref int eff)
|
||||
{
|
||||
base.UseSuccess(s);
|
||||
base.UseSuccess(s, ref eff);
|
||||
s.AddEffect(EffectType.MuscleMemory, 5);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user