Rebalance most languages and revamp main game loop

This commit is contained in:
2026-10-25 23:50:04 +01:00
parent 53f831d91e
commit a4109f5be0
76 changed files with 4198 additions and 573 deletions
+8 -1
View File
@@ -332,7 +332,7 @@ namespace KernelPanic.Editor
{
var text = new StringBuilder("# Seeded combat comparison\n\n");
text.AppendLine(report.policy).AppendLine().AppendLine(report.limitations).AppendLine();
text.AppendLine($"Encounter revision: seeded campaign variants, then endless. Route: {report.options.route}. Repair restores up to {RunJourney.RepairUptime} Uptime on departure; challenge adds a modified Daemon and awards Bits plus a draw rider on clear. Build rewards take Bits. Prefetch enabled: {report.options.prefetch}; used only when the bot cannot play another card. Total prefetches: {report.runs.Sum(run => run.prefetches)}. Milestone automatically continues into endless when the wave cap exceeds five. These results are not directly comparable to the old structural encounter benchmark.").AppendLine();
text.AppendLine($"Encounter revision: seeded campaign variants, then endless. Preferred route: {report.options.route}, when reachable on the seeded map; otherwise the default reachable path. Interactive stops are passed without changing the deck. Repair restores up to {RunJourney.RepairUptime} Uptime on departure; challenge adds a modified Daemon and awards Bits plus a draw rider on clear. Build rewards take Bits. Prefetch enabled: {report.options.prefetch}; used only when the bot cannot play another card. Total prefetches: {report.runs.Sum(run => run.prefetches)}. Milestone automatically continues into endless when the wave cap exceeds five. These results are not directly comparable to benchmarks without the route map.").AppendLine();
text.AppendLine($"Seeds: {string.Join(", ", report.options.seeds)}. Limits: {report.options.maxWaves} waves / {report.options.maxRounds} total rounds. Unity {report.unityVersion}.").AppendLine();
text.AppendLine($"Package levels: {string.Join(", ", report.options.packageLevels)}. Shop policies: {string.Join(", ", report.options.shoppingPolicies.Select(shop => shop ? "upgrade-shop" : "no-shop"))}.").AppendLine();
text.AppendLine("| Loadout | Runs | Uptime damage / round | Mean rounds | Mean waves cleared | Wave cap reached | Round cap alive | Died | Repeat checked |");
@@ -411,11 +411,18 @@ namespace KernelPanic.Editor
GameEvents.RaiseCombatantDeathVisualCompleted(new CombatantDeathVisualCompletedEvent(enemy.State));
}
if (_combat.RunLost) { Complete("defeat"); return false; }
if (_combat.Python.HasChoice)
{
for (int i = 0; i < _combat.Python.Choices.Count; i++)
if (_combat.Python.Choose(i)) { _trace.Append("python-choice:").Append(i).Append(';'); Progress(); break; }
return false;
}
if (_combat.AwaitingWaveContinue)
{
if (_run.WavesCleared >= _report.options.maxWaves) { Complete("wave-cap"); return false; }
if (_current.rounds >= _report.options.maxRounds) { Complete("round-cap"); return false; }
VisitRepository();
if (_run.RouteEventPending) _run.ResolveRouteEvent(skip: true);
if (_run.CampaignChoicePending) _combat.ContinueEndless();
else _combat.ContinueToNextWave();
Progress();