More heuristic improvements

This commit is contained in:
Asriel Camora
2023-07-08 14:38:35 +02:00
parent 436858e65c
commit 2e2db97ca7
5 changed files with 88 additions and 48 deletions
+7 -2
View File
@@ -95,9 +95,9 @@ public sealed class Simulator : SimulatorNoRandom
return false;
// use First Turn actions if it's available and the craft is difficult
if (baseAction.Category != ActionCategory.FirstTurn &&
if (IsFirstStep &&
Input.Recipe.ClassJobLevel == 90 &&
StepCount == 1 &&
baseAction.Category != ActionCategory.FirstTurn &&
CP > 10)
return false;
@@ -107,6 +107,11 @@ public sealed class Simulator : SimulatorNoRandom
baseAction.IncreasesQuality)
return false;
// don't allow pure quality moves when it won't be able to finish the craft
if (baseAction.IncreasesQuality &&
CalculateDurabilityCost(baseAction.DurabilityCost) > Durability)
return false;
if (baseAction.IncreasesProgress)
{
var progressIncrease = CalculateProgressGain(baseAction.Efficiency(this));