Attributkuerzel deutsch: GES, KON, WEI (Migration 5 inkl. Daten)

This commit is contained in:
torsten 2026-11-22 12:52:52 +01:00
parent a79e7e7781
commit be55f9c3f5
6 changed files with 62 additions and 35 deletions

View file

@ -878,7 +878,7 @@ function page_admin_skills(string $method, array $user): void
$category = post_string('category', 'Allgemein');
if ($name === '') {
$error = 'Bitte einen Namen angeben.';
} elseif (!in_array($attribute, ['STR', 'DEX', 'CON', 'INT', 'WIS', 'CHA', ''], true)) {
} elseif (!in_array($attribute, array_merge(array_keys(WS_ATTRIBUTE_CODES), ['']), true)) {
$attribute = '';
} else {
skills_catalog_add($name, $attribute, $category);