Manually-authored class notes

This commit is contained in:
2026-05-27 08:45:45 +02:00
parent 89508b3c03
commit 981288f09e
3 changed files with 51 additions and 3 deletions
+9 -2
View File
@@ -1506,7 +1506,7 @@ tables:
value: "{{range(HPMin, HPMax)}}"
- key: notes
label: Notes
value: "{{if(Level == 4 && BonusFeat != \"0\", link(\"feat:weapon_specialization\", \"Weapon Specialization\") + \" first available.\", Notes)}}"
value: "{{if(Level == 4 && BonusFeat != \"0\", link(\"feat:weapon_specialization\", \"Weapon Specialization\") + \" first available.\" + if(present(Notes), \" \" + Notes, \"\"), Notes)}}"
empty: ""
allow_wiki_markup: true
`)
@@ -1521,6 +1521,13 @@ tables:
"FeatsTable": map[string]any{"table": "classes/feats:fighter"},
"HitDie": 10,
"SavingThrowTable": map[string]any{"table": "classes/saves:fortitude"},
"meta": map[string]any{
"wiki": map[string]any{
"progression_notes": map[string]any{
"4": "Manual level note.",
},
},
},
},
}
@@ -1538,7 +1545,7 @@ tables:
`<td>2</td>`,
`<td>[[Feats/Literate|Literate]], [[Feats/Simple_Weapon_Proficiency|Simple Weapon Proficiency]]</td>`,
`<td>1-10</td>`,
`<td>[[Feats/Weapon_Specialization|Weapon Specialization]] first available.</td>`,
`<td>[[Feats/Weapon_Specialization|Weapon Specialization]] first available. Manual level note.</td>`,
} {
if !strings.Contains(got, expected) {
t.Fatalf("expected %q in rendered table:\n%s", expected, got)