diff --git a/includes/gear_skills.php b/includes/gear_skills.php index 437b8e8..c92a97a 100644 --- a/includes/gear_skills.php +++ b/includes/gear_skills.php @@ -18,6 +18,9 @@ declare(strict_types=1); */ const GEAR_SKILL_ICON_DIR = __DIR__ . '/../assets/uploads/skills/'; +// Skills, die auf den Klassenseiten von aion2hub fehlen und von Hand (nach aion2.app) eingetragen wurden: +// source_version beginnt so - der Abgleich mit aion2hub blendet sie dann nicht als "nicht mehr in der Liste" aus +const GEAR_SKILL_MANUAL_SOURCE = 'manuell'; const GEAR_SKILL_ICON_URL = '/assets/uploads/skills/'; // Stufen (Stand: Global-Client des Launch Scale Tests und offizieller KR-Guide, geprueft 23.09.2026): @@ -633,6 +636,9 @@ function gear_skills_store(string $className, array $parsed, int $userId): array $listed = array_flip($ids); $unlist = $pdo->prepare('UPDATE gear_skills SET is_listed = 0 WHERE id = ?'); foreach ($old as $id => $row) { + if (str_starts_with((string) $row['source_version'], GEAR_SKILL_MANUAL_SOURCE)) { + continue; // von Hand nachgetragen (GEAR_SKILL_MANUAL_SOURCE) - aion2hub kennt ihn nicht + } if (!isset($listed[$id]) && $row['class_name'] === $className && (int) $row['is_listed']) { $unlist->execute([$id]); $result['unlisted'][] = $row['name'];