Journey encounters and 360 camera, Ludus training ground, offline gold fix, new music, settings layout, grounded KO, thraex shield, arena name chant

Stand von main 9c35eff2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-10 10:47:49 +01:00
parent 0454683fc3
commit c516679674
26 changed files with 856 additions and 151 deletions

View File

@@ -37,6 +37,8 @@ namespace GladiatorIdle
static readonly bool DevFreedomRun = Array.IndexOf(Environment.GetCommandLineArgs(), "--freedom") >= 0;
static readonly bool DevChampionRun = Array.IndexOf(Environment.GetCommandLineArgs(), "--champion") >= 0;
static readonly bool DevAdventureRun = Array.IndexOf(Environment.GetCommandLineArgs(), "--adventure") >= 0;
static readonly bool DevJourneyRun = Array.IndexOf(Environment.GetCommandLineArgs(), "--journey") >= 0;
static readonly bool DevTrainRun = Array.IndexOf(Environment.GetCommandLineArgs(), "--train") >= 0;
static readonly bool DevBoardRun = Array.IndexOf(Environment.GetCommandLineArgs(), "--leaderboard") >= 0;
static readonly bool DevTutorialRun = Array.IndexOf(Environment.GetCommandLineArgs(), "--tutorial") >= 0;
static readonly bool DevOathRun = Array.IndexOf(Environment.GetCommandLineArgs(), "--oath") >= 0;
@@ -240,6 +242,17 @@ namespace GladiatorIdle
DevShot.Log($"legend duel vs #{l.Number} {l.Name} ratio={_game.DuelRatio(_enemy):0.00}");
}
/// Ludus: 30-s-Übung für einen Wert gegen den Doctore.
void StartTraining(Stat s)
{
_offer = null; _legend = null;
_enemy = Enemy.Create(0, 0, true);
_before = _hub!.Snapshot();
_scene = new DuelScene(_game!, _enemy, _seed++);
_scene.StartTraining(s);
if (DevShot.Active) _scene.Bot = new DuelBot(0.8, new Random(3));
}
/// Gegner gewählt: Duell beginnt.
void StartDuel(Offer o)
{
@@ -260,7 +273,14 @@ namespace GladiatorIdle
{
bool won = _scene!.Won;
if (_scene.TutorialRan) _game!.TutorialDone = true;
if (_legend is Legend l)
if (_scene.Training is Stat ts)
{
double xp = _game!.Train(ts, _scene.TrainActions);
_hub!.ShowResult(new[] { L.t("ludus.train.done"),
string.Format(L.t("ludus.train.result"), _scene.TrainActions, NumberFormat.Format(xp), L.t(TextKeys.Of(ts))) }, Gfx.Draw.Gold);
SoundManager.PlayLevelUp();
}
else if (_legend is Legend l)
{
bool first = _game!.ResolveLegendDuel(l, won);
_hub!.ShowResult(new[] { L.t(won ? "duel.win" : "duel.lose"),
@@ -424,6 +444,7 @@ namespace GladiatorIdle
if (DevShot.Active) DevHub(dt);
if (_hub?.Chosen is Offer o) { _hub.Chosen = null; StartDuel(o); }
else if (_hub?.ChosenLegend is Legend lg) { _hub.ChosenLegend = null; StartLegendDuel(lg); }
else if (_hub?.ChosenTraining is Stat tr) { _hub.ChosenTraining = null; StartTraining(tr); }
else if (_hub != null && _game!.FreedomEarned && !_settings.Open) StartFreedom();
}
else if (_scene != null)
@@ -549,6 +570,27 @@ namespace GladiatorIdle
if (_devTime > 1.6 && _capture == null && _shots.Contains("w_welcome")) Exit();
return;
}
if (DevTrainRun)
{
// Ludus: Trainingsplatz, eine Übung (Ausdauer: der Doctore greift an), Ergebnis
if (_devTime > 0.6 && _shots.Add("tr_open")) _hub!.DevOpen("ludus");
if (_devTime > 1.4) Shot("tr_ludus");
if (_devTime > 1.8 && _shots.Add("tr_go")) { _hub!.DevOpen("none"); _hub.ChosenTraining = Stat.Endurance; }
if (_devTime > 6) Shot("tr_result");
if (_devTime > 7) Exit();
return;
}
if (DevJourneyRun)
{
// Reise: je eine Begegnung (Kampf, Lager, Fund, Dorf), Aufnahmen alle 1,2 s
if (_devTime > 0.8 && !_shots.Contains("j_go")) { _shots.Add("j_go"); _game!.StartExpedition("gallia", 1); _game.Tick(700); _hub!.DevOpen("journey"); }
int[] logs = { 1, 12, 4, 5 };
for (int i = 0; i < logs.Length; i++)
if (_devTime > 1.5 + i * 14 && _shots.Add($"j_enc{i}")) _hub!.DevEncounter(logs[i]);
for (int i = 0; i < 48; i++) if (_devTime > 2 + i * 1.2 && _shots.Add($"j_{i:00}")) { _capture = $"j_{i:00}"; break; }
if (_devTime > 60) Exit();
return;
}
if (DevAdventureRun)
{
// Expeditionen: Feldzugkarte, Aufbruch, Karte unterwegs, Reise in 3D zu vier Tageszeiten,
@@ -662,6 +704,10 @@ namespace GladiatorIdle
}
if (_scene.Tutorial != DuelScene.TutStep.Off) { Shot("t_" + _scene.Tutorial.ToString().ToLowerInvariant()); }
if (_devTime > 0.5) Shot("m_countdown");
if (_scene.Training != null) { for (int i = 0; i < 9; i++) if (d.Time > 2 + i * 3.5) Shot($"tr_f{i}"); if (_scene.Over) Shot("tr_end"); }
// --ko: Gegner fast besiegt (Aufnahmen vom Liegen am Boden)
if (Array.IndexOf(Environment.GetCommandLineArgs(), "--ko") >= 0 && d.Time > 1 && !d.Over) d.Enemy.Hp = Math.Min(d.Enemy.Hp, 0.01);
if (_scene.Over) for (int i = 0; i < 5; i++) if (_scene.EndTime > 0.6f + i * 0.6f) Shot($"m_down{i}");
if (d.Time > 0.6) Shot("m_fight");
if (d.Enemy.State == DuelState.Windup && d.Enemy.StateTime > d.Enemy.Windup * 0.6) Shot("m_telegraph");
if (d.Player.State == DuelState.Strike) Shot("m_strike");