Optimizations/improve action gen
This commit is contained in:
@@ -94,6 +94,13 @@ public sealed class Simulator : SimulatorNoRandom
|
|||||||
baseAction.IncreasesQuality)
|
baseAction.IncreasesQuality)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
// use First Turn actions if it's available and the craft is difficult
|
||||||
|
if (baseAction.Category != ActionCategory.FirstTurn &&
|
||||||
|
Input.Recipe.ClassJobLevel == 90 &&
|
||||||
|
StepCount == 1 &&
|
||||||
|
CP > 10)
|
||||||
|
return false;
|
||||||
|
|
||||||
// don't allow pure quality moves under Veneration
|
// don't allow pure quality moves under Veneration
|
||||||
if (HasEffect(EffectType.Veneration) &&
|
if (HasEffect(EffectType.Veneration) &&
|
||||||
!baseAction.IncreasesProgress &&
|
!baseAction.IncreasesProgress &&
|
||||||
@@ -130,7 +137,7 @@ public sealed class Simulator : SimulatorNoRandom
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (action == ActionType.Observe &&
|
if (action == ActionType.Observe &&
|
||||||
CP < 5)
|
CP < 12)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (action == ActionType.MastersMend &&
|
if (action == ActionType.MastersMend &&
|
||||||
|
|||||||
@@ -18,9 +18,9 @@ public readonly record struct SolverConfig
|
|||||||
Iterations = 300000;
|
Iterations = 300000;
|
||||||
ScoreStorageThreshold = 1f;
|
ScoreStorageThreshold = 1f;
|
||||||
MaxScoreWeightingConstant = 0.1f;
|
MaxScoreWeightingConstant = 0.1f;
|
||||||
ExplorationConstant = 2;
|
ExplorationConstant = 4;
|
||||||
MaxStepCount = 25;
|
MaxStepCount = 25;
|
||||||
MaxRolloutStepCount = 99;
|
MaxRolloutStepCount = MaxStepCount;
|
||||||
ThreadCount = Environment.ProcessorCount;
|
ThreadCount = Environment.ProcessorCount;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user