Optimizations (from @wolfcomp)

This commit is contained in:
Asriel Camora
2024-03-15 09:49:03 -07:00
parent ea963f9e1b
commit 3223bdcbfb
43 changed files with 691 additions and 354 deletions
+14 -10
View File
@@ -2,16 +2,20 @@ namespace Craftimizer.Simulator.Actions;
internal sealed class FinalAppraisal : BaseBuffAction
{
public override ActionCategory Category => ActionCategory.Synthesis;
public override int Level => 42;
public override uint ActionId => 19012;
public int CP = 1;
public override bool IncreasesStepCount => false;
public FinalAppraisal()
{
Category = ActionCategory.Synthesis;
Level = 42;
ActionId = 19012;
Effect = EffectType.FinalAppraisal;
Duration = 4;
IncreasesStepCount = false;
}
public override EffectType Effect => EffectType.FinalAppraisal;
// This is set to 4 since IncreaseStepCount is false.
// Usually it adds 1 extra duration and then it would tick it down, but IncreaseStepCount prevents that.
public override byte Duration => 4;
public override int CPCost(Simulator s) => 1;
public override void CPCost(Simulator s, ref int cost)
{
cost = CP;
}
}