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
+16 -11
View File
@@ -2,18 +2,23 @@ namespace Craftimizer.Simulator.Actions;
internal sealed class WasteNot : BaseBuffAction
{
public override ActionCategory Category => ActionCategory.Durability;
public override int Level => 15;
public override uint ActionId => 4631;
public override EffectType Effect => EffectType.WasteNot;
public override byte Duration => 4;
public override int CPCost(Simulator s) => 56;
public override void UseSuccess(Simulator s)
public WasteNot()
{
base.UseSuccess(s);
Category = ActionCategory.Durability;
Level = 15;
ActionId = 4631;
Effect = EffectType.WasteNot;
Duration = 4;
}
public override void CPCost(Simulator s, ref int cost)
{
cost = 56;
}
public override void UseSuccess(Simulator s, ref int eff)
{
base.UseSuccess(s, ref eff);
s.RemoveEffect(EffectType.WasteNot2);
}
}