From 73236836bdf7cb03bcba8499a994cdc1e7039f1a Mon Sep 17 00:00:00 2001
From: Maaxxs <61059039+MaaxxsDev@users.noreply.github.com>
Date: Thu, 24 Sep 2026 01:16:39 +0200
Subject: [PATCH] Skill descriptions from the German client, hover info,
centered Daevanion board, aligned user admin buttons
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- Skills and stigmas show their description on hover (icon or name): official German text from aion2.app
(damage type, range, tags, values at level 1). New admin import "Beschreibungen übernehmen" stores it in
gear_skills.info (schema v42) and fills the official German name and specialization texts where the
leadership has not entered their own.
- Daevanion boards are centered with a fixed width and their stats below, so selecting fields no longer
resizes the board; hovering a field shows what it gives, its cost and whether it can be activated.
- User admin: "Neuen Benutzer anlegen" and "Jetzt mit Discord abgleichen" share one width and height.
Co-Authored-By: Claude Opus 5.5
| Klasse | Aktiv | Stigma | Passiv | Effekte | Ohne Icon | Nicht mehr gelistet | Abgeglichen | ||
|---|---|---|---|---|---|---|---|---|---|
| Klasse | Aktiv | Stigma | Passiv | Effekte | Beschreibung | Ohne Icon | Nicht mehr gelistet | Abgeglichen | = $row['stigma'] ?: '–' ?> | = $row['passive'] ?: '–' ?> | = $row['active'] + $row['stigma'] > 0 ? $row['effects'] . '/' . ($row['active'] + $row['stigma']) : '–' ?> | += $row['active'] + $row['stigma'] + $row['passive'] > 0 ? $row['info'] . '/' . ($row['active'] + $row['stigma'] + $row['passive']) : '–' ?> | = $row['no_icon'] ?: '–' ?> | = $row['unlisted'] ?: '–' ?> |
@@ -146,6 +150,8 @@ include __DIR__ . '/../includes/header.php';
+
+
diff --git a/admin/gear_items_action.php b/admin/gear_items_action.php
index 191a455..eda43be 100644
--- a/admin/gear_items_action.php
+++ b/admin/gear_items_action.php
@@ -200,6 +200,40 @@ try {
}
$respond(['ok' => true]);
+ case 'skill_info_plan':
+ // Skills, deren Beschreibung von aion2.app kommen soll: alle gelisteten, die ohne Beschreibung zuerst
+ // (mit only_missing nur die)
+ $rows = db()->query('SELECT id, info IS NULL AS missing FROM gear_skills WHERE is_listed = 1 ORDER BY info IS NOT NULL, class_name, kind, sort_order')->fetchAll();
+ if (!empty($_POST['only_missing'])) {
+ $rows = array_filter($rows, static fn (array $row): bool => (int) $row['missing'] === 1);
+ }
+ $respond(['ok' => true, 'ids' => array_values(array_map(static fn (array $row): int => (int) $row['id'], $rows))]);
+
+ case 'skill_info':
+ // Beschreibung eines Skills von aion2.app (deutscher Client) holen und speichern
+ $skill = gear_skill((int) ($_POST['id'] ?? 0));
+ if (!$skill) {
+ $respond(['ok' => false, 'error' => 'Diesen Skill gibt es nicht (mehr).'], 404);
+ }
+ $politePause();
+ $parsed = gear_source_parse_skill_info(gear_source_fetch(GEAR_SOURCE_SKILL_INFO_URL . (int) $skill['id']), (int) $skill['id']);
+ if ($parsed['desc'] === '') {
+ $respond(['ok' => false, 'error' => '„' . $skill['name'] . '“: keine Beschreibung bei aion2.app.'], 422);
+ }
+ // name/parts: ob der offizielle deutsche Name bzw. die deutschen Spezialisierungen eingetragen wurden
+ $respond(['ok' => true, 'skill' => $skill['name'], 'name_de' => $parsed['name'], 'class_name' => $skill['class_name']] + gear_skill_info_store($skill, $parsed));
+
+ case 'skill_info_done':
+ // Eine Zusammenfassung pro Durchlauf
+ admin_log('🗡️ Gear-Planer: Skill-Beschreibungen von aion2.app', array_filter([
+ 'Skills' => (int) ($_POST['total'] ?? 0) ?: null,
+ 'Neu oder geändert' => (int) ($_POST['changed'] ?? 0) ?: null,
+ 'Deutsche Namen eingetragen' => (int) ($_POST['names'] ?? 0) ?: null,
+ 'Deutsche Spezialisierungen eingetragen' => (int) ($_POST['parts'] ?? 0) ?: null,
+ 'Fehler' => (int) ($_POST['failed'] ?? 0) ?: null,
+ ], static fn ($value): bool => $value !== null), 'info', 'gear');
+ $respond(['ok' => true]);
+
case 'skills_done':
// Eine Zusammenfassung pro Durchlauf
$summary = array_filter([
diff --git a/admin/users.php b/admin/users.php
index 86a9bb4..abf4ab2 100644
--- a/admin/users.php
+++ b/admin/users.php
@@ -52,16 +52,21 @@ include __DIR__ . '/../includes/header.php';
automatisch vergeben und entzogen.
-
-
-
+
+
+
+ Neuen Benutzer anlegen
+
+
+
+
+
-
|