Manually-authored class notes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user