@if (isLoading) {
@for (i of [1, 2, 3, 4]; track i) {
}
} @else {
@for (characterClass of classes; track characterClass.index) {
{{ characterClass.name }}
Select for details
} }
@if (selectedClass && !loadingDetail) {
{{ selectedClass.name }}
Hit Die
d{{ selectedClassDetail?.hit_die }}
Saving Throws
{{ getSavingThrowsText() }}
Proficiencies
{{ getProficienciesText() }}
@if (hasSpellcasting()) {
Spellcasting
Ability: {{ getSpellcastingAbility() }}
}
@if (hasStartingEquipment) {
Starting Equipment
You start with:
@for (item of startingEquipment; track item.equipment.index) {
-
{{ item.quantity > 1 ? item.quantity + " × " : ""
}}{{ item.equipment.name }}
}
}
@if (proficiencyChoices.length > 0) {
Proficiency Choices
@for (choice of proficiencyChoices; track choice.id) { @if
(!choice.isSubchoice) {
1"
[chooseCount]="choice.choose"
[options]="choice.options"
[selectedValues]="choice.selectedValues"
(selectionChange)="onProficiencySelectionChange(choice.id, $event)"
displayMode="chips"
>
} }
}
@if (hasStartingEquipment) {
Starting Equipment
@for (item of startingEquipment; track item) {
-
{{ item.quantity > 1 ? item.quantity + " × " : ""
}}{{ item.equipment.name }}
}
}
@if (hasChoicesForType(ChoiceType.Equipment)) {
Equipment Choices
@for (choice of getChoicesForType(ChoiceType.Equipment); track choice.id)
{ @if (!choice.isSubchoice) {
1"
[chooseCount]="choice.choose"
[options]="choice.options"
[selectedValues]="choice.selectedValues"
(selectionChange)="onEquipmentSelectionChange(choice.id, $event)"
displayMode="chips"
>
} }
}
{{ activeSubchoice?.desc }}
@if (activeSubchoice?.isLoading) {
} @else {
1"
[chooseCount]="activeSubchoice!.choose"
[options]="activeSubchoice!.options"
[selectedValues]="activeSubchoice!.selectedValues"
(selectionChange)="
onSubchoiceSelectionChange(activeSubchoice!.id, $event)
"
displayMode="checkboxes"
>
Selected: {{ activeSubchoice!.selectedValues.length }}/{{
activeSubchoice?.choose
}}
}
} @else if (loadingDetail) {