-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea963f9
commit 3223bdc
Showing
43 changed files
with
669 additions
and
332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,14 +4,17 @@ namespace Craftimizer.Simulator.Actions; | |
|
||
internal abstract class BaseBuffAction : BaseAction | ||
{ | ||
// Non-instanced properties | ||
public abstract EffectType Effect { get; } | ||
public virtual byte Duration => 1; | ||
public override int MacroWaitTime => 2; | ||
public BaseBuffAction() | ||
Check warning on line 7 in Simulator/Actions/BaseBuffAction.cs GitHub Actions / build
Check warning on line 7 in Simulator/Actions/BaseBuffAction.cs GitHub Actions / build
Check warning on line 7 in Simulator/Actions/BaseBuffAction.cs GitHub Actions / bench
|
||
{ | ||
MacroWaitTime = 2; | ||
DurabilityCost = 0; | ||
} | ||
|
||
public sealed override int DurabilityCost => 0; | ||
// Non-instanced properties | ||
public EffectType Effect; | ||
public int Duration = 1; | ||
|
||
public override void UseSuccess(Simulator s) => | ||
public override void UseSuccess(Simulator s, ref int eff) => | ||
s.AddEffect(Effect, Duration); | ||
|
||
public override string GetTooltip(Simulator s, bool addUsability) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,13 @@ public abstract class BaseComboAction : BaseAction | |
public abstract ActionType ActionTypeA { get; } | ||
public abstract ActionType ActionTypeB { get; } | ||
|
||
public sealed override ActionCategory Category => ActionCategory.Combo; | ||
public BaseComboAction() | ||
Check warning on line 8 in Simulator/Actions/BaseComboAction.cs GitHub Actions / build
Check warning on line 8 in Simulator/Actions/BaseComboAction.cs GitHub Actions / build
Check warning on line 8 in Simulator/Actions/BaseComboAction.cs GitHub Actions / bench
|
||
{ | ||
Category = ActionCategory.Combo; | ||
} | ||
|
||
protected bool BaseCouldUse(Simulator s) => | ||
base.CouldUse(s); | ||
protected bool BaseCouldUse(Simulator s, ref int cost) => | ||
base.CouldUse(s, ref cost); | ||
|
||
private static bool VerifyDurability2(int durabilityA, int durability, in Effects effects) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
3223bdc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
Craftimizer.Benchmark.Bench.Solve(State: 8C468532, Config: 99B38877)
1335583026.6666667
ns (± 10451109.65820422
)Craftimizer.Benchmark.Bench.Solve(State: 8C468532, Config: 99B38877)
961882553.8461539
ns (± 4843592.93665618
)Craftimizer.Benchmark.Bench.Solve(State: D472A5FE, Config: 99B38877)
948700664.2857143
ns (± 9059448.406422235
)Craftimizer.Benchmark.Bench.Solve(State: D472A5FE, Config: 99B38877)
708124692.8571428
ns (± 6881848.270348519
)This comment was automatically generated by workflow using github-action-benchmark.