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

@@ -250,7 +250,20 @@ namespace GladiatorIdle
else
{
_game!.ResolveFight(_offer!, won);
_hub!.ShowResult(_hub.ResultLines(_before, won), won ? Gfx.Draw.Gold : Gfx.Draw.Red);
var lines = new System.Collections.Generic.List<string>(_hub!.ResultLines(_before, won));
// Gnadenstoß: Folgen der Wahl bzw. Urteil des Publikums
if (won && _scene.MercyChosen is bool mercy)
{
double bonus = _game.ApplyMissio(mercy, _scene.CrowdMercy, _game.FameRun - _before.Fame);
lines.Add(mercy == _scene.CrowdMercy ? string.Format(L.t("missio.toast.match"), NumberFormat.Format(bonus))
: mercy ? string.Format(L.t("missio.toast.mercy"), NumberFormat.Format(bonus)) : L.t("missio.toast.against"));
}
else if (!won && _scene.Spared is bool spared)
{
_game.ApplyVerdict(spared);
lines.Add(L.t(spared ? "missio.spared" : "missio.doomed"));
}
_hub.ShowResult(lines.ToArray(), won ? Gfx.Draw.Gold : Gfx.Draw.Red);
if (won && _offer!.Enemy.IsChampion) Net.Leaderboard.Submit(_game);
}
SoundManager.StartAmbient("music_ludus");
@@ -387,7 +400,7 @@ namespace GladiatorIdle
if ((input.Pressed(Keys.Escape) || input.PadPressed(Buttons.Start)) && !_scene.Over) _scene.Paused = !_scene.Paused;
if (_scene.Paused && input.Pressed(Keys.X)) _scene.GiveUp();
_game!.Tick(dt); // Training läuft auch im Kampf weiter
_scene.Update(dt, input);
_scene.Update(dt, input, ui);
if (DevShot.Active) DevSteps(dt);
if (_scene != null && _scene.Finished && (input.Pressed(Keys.Enter) || input.LeftClick || DevShot.Active && _shots.Contains("m_end") && _capture == null))
EndDuel();
@@ -504,17 +517,34 @@ namespace GladiatorIdle
}
if (DevAdventureRun)
{
// Expeditionen: Auswahl, unterwegs, Rückkehr-Bericht; dann ein Ereignis mit Entscheidung
// Expeditionen: Feldzugkarte, Aufbruch, Karte unterwegs, Reise in 3D zu vier Tageszeiten,
// Rückkehr-Bericht; dann ein Ereignis mit Entscheidung
if (_devTime > 0.8 && !_shots.Contains("x_open")) { _shots.Add("x_open"); _hub!.DevOpen("expedition"); }
if (_devTime > 1.6) Shot("x_regions");
if (_devTime > 1.9 && !_shots.Contains("x_go")) { _shots.Add("x_go"); _hub!.DevOpen("none"); _game!.StartExpedition("gallia", 1); }
if (_devTime > 2.6) Shot("x_away");
if (_devTime > 2.9 && !_shots.Contains("x_back")) { _shots.Add("x_back"); _game!.Tick(Adventures.Durations[1] + 1); }
if (_devTime > 3.6) Shot("x_report");
if (_devTime > 3.9 && !_shots.Contains("x_event")) { _shots.Add("x_event"); _game!.DismissExpeditionResult(); _game.DevEvent("nightduel"); }
if (_devTime > 4.6) Shot("x_eventcard");
if (_devTime > 4.9 && !_shots.Contains("x_choose")) { _shots.Add("x_choose"); _game!.Choose(0); }
if (_devTime > 5.3 && _capture == null && _shots.Contains("x_choose")) { DevShot.Log($"adventure: buffs={_game!.Buffs.Count} gold={_game.Gold:0}"); Exit(); }
if (_devTime > 1.6) Shot("x_map");
if (_devTime > 1.9 && !_shots.Contains("x_go")) { _shots.Add("x_go"); _game!.StartExpedition("gallia", 1); _game.Tick(700); }
if (_devTime > 2.6) Shot("x_map_away");
if (_devTime > 2.9 && !_shots.Contains("x_jopen")) { _shots.Add("x_jopen"); _hub!.DevOpen("journey"); _hub.DevDayPhase = 0.1f; }
if (_devTime > 4.2) Shot("x_journey_morning");
if (_devTime > 4.4 && !_shots.Contains("x_noon")) { _shots.Add("x_noon"); _hub!.DevDayPhase = 0.3f; }
if (_devTime > 5.0) Shot("x_journey_noon");
if (_devTime > 5.2 && !_shots.Contains("x_dusk")) { _shots.Add("x_dusk"); _hub!.DevDayPhase = 0.52f; }
if (_devTime > 5.8) Shot("x_journey_dusk");
if (_devTime > 6.0 && !_shots.Contains("x_night")) { _shots.Add("x_night"); _hub!.DevDayPhase = 0.78f; }
if (_devTime > 6.8) Shot("x_journey_night");
if (_devTime > 7.0 && !_shots.Contains("x_close")) { _shots.Add("x_close"); _hub!.DevOpen("none"); _hub.DevDayPhase = null; }
if (_devTime > 7.6) Shot("x_away");
if (_devTime > 7.9 && !_shots.Contains("x_back")) { _shots.Add("x_back"); _game!.DevExpeditionOutcome = true; _game.Tick(Adventures.Durations[1] + 1); }
// Heimkehr (Erfolg): Lauf, Titel und Tagebuch, Karten, fertig
if (_devTime > 8.8) Shot("x_home_walk");
if (_devTime > 11.4) Shot("x_home_title");
if (_devTime > 14.2) Shot("x_home_cards");
if (_devTime > 19.0) Shot("x_home_done");
if (_devTime > 19.3 && !_shots.Contains("x_fail_go")) { _shots.Add("x_fail_go"); _game!.DismissExpeditionResult(); _game.DevExpeditionOutcome = false; _game.StartExpedition("gallia", 0); _game.Tick(Adventures.Durations[0] + 1); }
if (_devTime > 25.0) Shot("x_home_fail");
if (_devTime > 25.3 && !_shots.Contains("x_event")) { _shots.Add("x_event"); _game!.DismissExpeditionResult(); _game.DevExpeditionOutcome = null; _game.DevEvent("nightduel"); }
if (_devTime > 26.0) Shot("x_eventcard");
if (_devTime > 26.3 && !_shots.Contains("x_choose")) { _shots.Add("x_choose"); _game!.Choose(0); }
if (_devTime > 26.7 && _capture == null && _shots.Contains("x_choose")) { DevShot.Log($"adventure: buffs={_game!.Buffs.Count} gold={_game.Gold:0}"); Exit(); }
return;
}
if (DevChampionRun && !_shots.Contains("m_end"))
@@ -605,6 +635,8 @@ namespace GladiatorIdle
if (d.Player.State == DuelState.Block && d.Player.StateTime > 0.1) Shot("m_block");
if (d.Player.State == DuelState.Hit && d.Player.StateTime < 0.03) Shot("m_hurt");
if (_scene.Over && !_shots.Contains("m_ko")) Shot("m_ko");
if (_scene.MissioTime > 2.2f) Shot("m_missio_vote");
if (_scene.MissioTime > 3.6f) Shot("m_missio_choice");
if (_scene.Finished) Shot("m_end");
if (_shots.Contains("m_end") && _capture == null && !_shots.Contains("m_logged"))
{