Feldzugkarte, Reise in 3D, Kampfstile der Gegner, Missio, inszenierte Heimkehr

Stand von main 8c62f0dd.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-09 16:13:28 +01:00
parent 35a5ac5032
commit 9c433c61ba
33 changed files with 1265 additions and 131 deletions

View File

@@ -157,6 +157,27 @@ namespace GladiatorIdle
}
DevShot.Log(line.ToString());
}
// je Kampfstil der Gegner: Siegquote bei mittlerem Geschick
foreach (string style in new[] { "", "clumsy", "brawler", "spear", "dual", "champion" })
{
var line = new System.Text.StringBuilder($"duel style={(style == "" ? "plain" : style)} skill=0.6:");
foreach (double ratio in new[] { 0.7, 1.0, 1.4, 2.0 })
{
int wins = 0; double time = 0; const int N = 200;
for (int n = 0; n < N; n++)
{
var rng = new Random(n * 7919 + (int)(ratio * 100));
var d = new Duel(1000, 0.2, Special.ShieldBash, 1000, ratio, style == "champion", false, rng, null);
d.SetStyle(style);
var bot = new DuelBot(0.6, rng);
while (!d.Over && d.Time < 180) { bot.Act(d); d.Step(1 / 60.0); d.Events.Clear(); }
if (d.PlayerWon) wins++;
time += d.Time;
}
line.Append($" r{ratio}: {wins * 100 / N}% {time / N:0}s");
}
DevShot.Log(line.ToString());
}
}
/// Schwerer Schlag (W) gegen normalen Schlag: wie oft trifft er, wie viel Schaden macht er.