Charakterverwalter: Fertigkeiten-Attribut für eigene Einträge, Stufe ohne Vorzeichen

- eigenedefinierte Fertigkeiten bekommen ein Bezugsattribut (STR…CHA) im
  Selektor und lassen es im Bearbeiten-Abschnitt korrigieren
- neue Spalte character_skills.attribute (Migration 2, schema.sql angepasst);
  character_skills() nutzt COALESCE aus Zeilen- und Katalogattribut
- Fertigkeitsstufe startet bei max(0, Attributsbonus) und wird in Formular,
  Update und Anzeige (Web-Bogen, PDF) nie negativ bzw. nie mit Vorzeichen gezeigt
- MOD- und Stufe-Spalte im Bogen auf gemeinsame Grundlinie gezogen
This commit is contained in:
torsten 2026-11-21 14:05:51 +01:00
parent b4d4c53dd4
commit 929aa52c73
10 changed files with 86 additions and 30 deletions

View file

@ -276,7 +276,7 @@ function character_pdf(array $c, array $extra): string
$pdf->text($cx, $y + 8.5, 8.4, 'F3', $ink, shorten((string) $skill['name'], 34));
$pdf->text($cx + $colW - 64, $y + 8.2, 6.6, 'F1', $soft, trim((string) ($skill['attribute'] ?? '')));
$pdf->textRight($cx + $colW - 28, $y + 8.2, 6.8, 'F1', $soft, $mod === null ? '–' : signed($mod));
$pdf->textRight($cx + $colW, $y + 8.5, 8.4, 'F2', $gold, signed((int) $skill['bonus']));
$pdf->textRight($cx + $colW, $y + 8.5, 8.4, 'F2', $gold, (string) max(0, (int) $skill['bonus']));
$pdf->line($cx, $y + 10.4, $cx + $colW, $y + 10.4, $goldLight, 0.22);
}
$y += 12.6;