3D-Arena (Duell, Hub, Freiheit, Erstellung, Bestenliste), Retiarius beidhändig, Waffen je Klasse, Einführung, Willkommen, weniger Reiter, Wirtschaft ohne Taberna, Kantenglättung, Leuchten, weiche Schatten, Gamepad, Absturz-Protokoll

Stand von main 20cd8ba2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-09 13:24:20 +01:00
parent a08764c505
commit e29db47b20
44 changed files with 2089 additions and 991 deletions

View File

@@ -11,15 +11,15 @@ namespace GladiatorIdle.Arena
/// Tipp, der zum aktuellen Spielstand passt (was jetzt sinnvoll ist).
internal sealed partial class HubScene
{
static string GuideId(Drawer d) => d switch
string GuideId => _drawer switch
{
Drawer.Gladiator => "gladiator", Drawer.Ludus => "ludus", Drawer.Forum => "forum",
Drawer.Skills => "skills", Drawer.Hall => "hall", _ => "expedition"
Drawer.Gladiator => _page == Page.Skills ? "skills" : "gladiator", Drawer.Ludus => "ludus",
Drawer.Hall => "hall", _ => "expedition"
};
void DrawGuide(SpriteBatch sb, RectangleF r)
{
string id = GuideId(_drawer);
string id = GuideId;
Ui.Panel(sb, r, D.Border, 0.94f);
float x = r.X + 26, w = r.Width - 52, y = r.Y + 34;
D.Text(sb, Assets.Serif, 28, L.t("guide.title"), new Vector2(x, y), D.Gold);
@@ -52,6 +52,10 @@ namespace GladiatorIdle.Arena
var g = _game;
switch (_drawer)
{
case Drawer.Gladiator when _page == Page.Skills:
return g.LearnablePoints > 0
? (string.Format(L.t("tip.skills.points"), g.LearnablePoints), D.Gold)
: (string.Format(L.t("tip.skills.next"), g.CharLevel / 2 * 2 + 2), D.Sand);
case Drawer.Gladiator:
{
if (g.AttrPoints > 0) return (string.Format(L.t("tip.gladiator.points"), g.AttrPoints), D.Gold);
@@ -59,6 +63,10 @@ namespace GladiatorIdle.Arena
var better = g.Inventory.Where(it => g.PowerWith(it) > now * 1.005).OrderByDescending(g.PowerWith).FirstOrDefault();
if (better != null) return (string.Format(L.t("tip.gladiator.better"), ItemName(better)), D.Green);
if (g.Inventory.Count >= Items.INVENTORY - 4) return (L.t("tip.gladiator.full"), D.Red);
var slot = Enumerable.Range(0, 5).Select(i => (ItemSlot)i).Where(s => g.Equipped[(int)s] != null)
.OrderBy(g.UpgradeSlotCost).FirstOrDefault();
if (g.Equipped[(int)slot] != null && g.Gold >= g.UpgradeSlotCost(slot))
return (string.Format(L.t("tip.gladiator.forge"), L.t("slot." + slot.ToString().ToLowerInvariant())), D.Green);
return (L.t("tip.gladiator.none"), D.Sand);
}
case Drawer.Ludus:
@@ -69,23 +77,6 @@ namespace GladiatorIdle.Arena
? (string.Format(L.t("tip.ludus.afford"), L.t(cheapest.Key)), D.Green)
: (string.Format(L.t("tip.ludus.save"), L.t(cheapest.Key), NumberFormat.Format(cost - g.Gold)), D.Sand);
}
case Drawer.Forum:
{
double now = g.Power();
var buy = g.Merchant.Where(it => g.Gold >= Items.Value(it) && g.PowerWith(it) > now * 1.005)
.OrderByDescending(g.PowerWith).FirstOrDefault();
if (buy != null)
return (string.Format(L.t("tip.forum.buy"), ItemName(buy), NumberFormat.Percent(g.PowerWith(buy) / now - 1)), D.Green);
var slot = Enumerable.Range(0, 5).Select(i => (ItemSlot)i).Where(s => g.Equipped[(int)s] != null)
.OrderBy(g.UpgradeSlotCost).FirstOrDefault();
if (g.Equipped[(int)slot] != null && g.Gold >= g.UpgradeSlotCost(slot))
return (string.Format(L.t("tip.forum.forge"), L.t("slot." + slot.ToString().ToLowerInvariant())), D.Green);
return (string.Format(L.t("tip.forum.wait"), NumberFormat.Duration(g.MerchantRefreshIn)), D.Sand);
}
case Drawer.Skills:
return g.LearnablePoints > 0
? (string.Format(L.t("tip.skills.points"), g.LearnablePoints), D.Gold)
: (string.Format(L.t("tip.skills.next"), g.CharLevel / 2 * 2 + 2), D.Sand);
case Drawer.Hall:
{
if (g.Legends.Count == 0) return (L.t("tip.hall.none"), D.Sand);