Trefferpunkte aus Einzelwuerfen berechnen (1W4 + 1W je Stufe + KON)

This commit is contained in:
torsten 2026-11-22 19:00:31 +01:00
parent 216a62191e
commit 6a6ce7b197
11 changed files with 277 additions and 11 deletions

View file

@ -59,6 +59,12 @@ const WS_MIGRATIONS = [
"UPDATE character_skills SET attribute = 'WEI' WHERE attribute = 'WIS'",
"ALTER TABLE skills MODIFY attribute ENUM('STR', 'GES', 'KON', 'INT', 'WEI', 'CHA', '') NOT NULL DEFAULT ''",
],
// 6: Einzelne Trefferpunkt-Würfe (Stufe 0: 1W4, dann je Stufe 1W<Klassen-
// würfel>). hp_max wird daraus berechnet; leer = Altdaten, hp_max gilt
// weiter als manueller Wert.
6 => [
"ALTER TABLE characters ADD COLUMN IF NOT EXISTS hp_rolls VARCHAR(160) NOT NULL DEFAULT '' AFTER hp_max",
],
];
function ws_migrations_apply(PDO $pdo): void