|
@@ -11,19 +11,23 @@
|
|
|
<div class="value">{{ spell.level }}</div>
|
|
|
</div>
|
|
|
<div class="entry">
|
|
|
- <div class="name">{{ "spellmodal.cost" | translate }}</div>
|
|
|
+ <div class="name">{{ "fullSpellcards.castingTime" | translate }}</div>
|
|
|
<div class="value">
|
|
|
- {{ spell.timeToCast }} {{ "time." + spell.cost | translate }}
|
|
|
+ {{ spell.timeToCast }}
|
|
|
+ {{ "time." + spell.cost | translate }}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="entry">
|
|
|
- <div class="name">{{ "spellmodal.duration" | translate }}</div>
|
|
|
+ <div class="name">{{ "fullSpellcards.duration" | translate }}</div>
|
|
|
<div class="value">
|
|
|
- {{ spell.duration }} {{ "time." + spell.durationType | translate }}
|
|
|
+ @if (spell.duration != 0) {
|
|
|
+ {{ spell.duration }}
|
|
|
+ }
|
|
|
+ {{ "time." + spell.durationType | translate }}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="entry">
|
|
|
- <div class="name">{{ "spellmodal.components" | translate }}</div>
|
|
|
+ <div class="name">{{ "fullSpellcards.components" | translate }}</div>
|
|
|
<div class="value">
|
|
|
@if (spell.needsVerbal) {
|
|
|
{{ "spells.components.verbal" | translate }},
|
|
@@ -43,23 +47,35 @@
|
|
|
<div class="value">{{ "schools." + spell.school | translate }}</div>
|
|
|
</div>
|
|
|
<div class="entry">
|
|
|
- <div class="name">{{ "spellmodal.mod-save" | translate }}</div>
|
|
|
+ @if (spell.needsSavingThrow) {
|
|
|
+ <div class="name">{{ "fullSpellcards.saveDC" | translate }}</div>
|
|
|
+ } @else if (spell.needsAttackRoll) {
|
|
|
+ <div class="name">{{ "fullSpellcards.attack" | translate }}</div>
|
|
|
+ } @else {
|
|
|
+ <div class="name">{{ "fullSpellcards.modifier" | translate }}</div>
|
|
|
+ }
|
|
|
<div class="value">
|
|
|
@if (spell.needsSavingThrow) {
|
|
|
{{
|
|
|
"attributesAbbreviations." + spell.savingThrowAttribute
|
|
|
| translate
|
|
|
}}
|
|
|
- {{ saveDC }}
|
|
|
+ {{ utils.spellSaveDC }}
|
|
|
} @else if (spell.needsAttackRoll) {
|
|
|
- {{ attackBonus }}
|
|
|
+ {{ utils.spellAttackModifier }}
|
|
|
} @else {
|
|
|
-
|
|
|
}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="entry">
|
|
|
- <div class="name">{{ "spellmodal.effect" | translate }}</div>
|
|
|
+ @if (spell.doesDamage) {
|
|
|
+ <div class="name">{{ "fullSpellcards.damage" | translate }}</div>
|
|
|
+ } @else if (spell.doesHeal) {
|
|
|
+ <div class="name">{{ "fullSpellcards.heal" | translate }}</div>
|
|
|
+ } @else {
|
|
|
+ <div class="name">{{ "fullSpellcards.effect" | translate }}</div>
|
|
|
+ }
|
|
|
<div class="value">
|
|
|
<div>
|
|
|
@if (spell.doesDamage) {
|
|
@@ -82,8 +98,7 @@
|
|
|
</span>
|
|
|
</div>
|
|
|
}
|
|
|
- }
|
|
|
- @if (spell.doesHeal) {
|
|
|
+ } @else if (spell.doesHeal) {
|
|
|
<div class="heal">
|
|
|
<span
|
|
|
>{{ spell.heal?.diceNumber }} {{ "general.dice" | translate
|
|
@@ -100,6 +115,8 @@
|
|
|
></icon>
|
|
|
</span>
|
|
|
</div>
|
|
|
+ } @else {
|
|
|
+ -
|
|
|
}
|
|
|
</div>
|
|
|
</div>
|
|
@@ -109,9 +126,9 @@
|
|
|
@if (spell.isRanged) {
|
|
|
<div class="value">{{ spell.range }} ft.</div>
|
|
|
} @else if (spell.range === 0) {
|
|
|
- <div class="value">{{ "spellmodal.self" | translate }}</div>
|
|
|
+ <div class="value">{{ "fullSpellcards.self" | translate }}</div>
|
|
|
} @else if (spell.range === 5) {
|
|
|
- <div class="value">{{ "spellmodal.touch" | translate }}</div>
|
|
|
+ <div class="value">{{ "fullSpellcards.touch" | translate }}</div>
|
|
|
}
|
|
|
@if (spell.hasAreaOfEffect) {
|
|
|
<div>
|
|
@@ -134,151 +151,3 @@
|
|
|
<hr />
|
|
|
<div class="description" [innerHTML]="spell.description_de"></div>
|
|
|
</div>
|
|
|
-
|
|
|
-<!-- <div class="full-spellcard-container">
|
|
|
- <div class="full-spellcard">
|
|
|
- <h2 style="text-align: center; margin-top: 1rem">{{ spell.german }}</h2>
|
|
|
-
|
|
|
- <table class="table table-striped" style="height: 20rem; overflow: auto">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th scope="col">Property</th>
|
|
|
- <th scope="col">Value</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- <tr>
|
|
|
- <td>Komponenten:</td>
|
|
|
- <td>
|
|
|
- @if (spell.needsVerbal) {
|
|
|
- Verbal
|
|
|
- }
|
|
|
- @if (spell.needsSomatic) {
|
|
|
- , Somatic
|
|
|
- }
|
|
|
- @if (spell.needsMaterial) {
|
|
|
- , Material
|
|
|
- }
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>Stufe</td>
|
|
|
- <td>{{ spell.level }}</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>Kosten</td>
|
|
|
- <td>{{ spell.cost }}</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>Ist ein Ritual</td>
|
|
|
- <td>{{ spell.isRitual }}</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>Wirkungsdauer</td>
|
|
|
- <td>
|
|
|
- {{ spell.duration }}
|
|
|
- {{ "time." + spell.durationType | translate }}
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
-
|
|
|
- <tr></tr>
|
|
|
- <tr>
|
|
|
- <td>Benötigt Konzentration</td>
|
|
|
- <td>{{ spell.needsConcentration }}</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>Schule</td>
|
|
|
- <td>{{ spell.school }}</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>Reichweite</td>
|
|
|
- @if (spell.isRanged) {
|
|
|
- <td>{{ spell.range }}</td>
|
|
|
- } @else {
|
|
|
- <td>Berührung</td>
|
|
|
- }
|
|
|
- </tr>
|
|
|
- @if (spell.hasAreaOfEffect) {
|
|
|
- <tr>
|
|
|
- <td>Flächeneffekt</td>
|
|
|
- <td>{{ spell.areaOfEffectType }}</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>Durchmesser</td>
|
|
|
- <td>{{ spell.length }}</td>
|
|
|
- </tr>
|
|
|
- }
|
|
|
- @if (spell.needsAttackRoll) {
|
|
|
- <tr>
|
|
|
- <td>Benötigt Angriffswurf</td>
|
|
|
- <td>{{ spell.needsAttackRoll }}</td>
|
|
|
- </tr>
|
|
|
- }
|
|
|
- @if (spell.needsSavingThrow) {
|
|
|
- <tr>
|
|
|
- <td>Benötigt Rettungswurf</td>
|
|
|
- <td>{{ spell.needsSavingThrow }}</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>Rettungswurfattribut</td>
|
|
|
- <td>{{ spell.savingThrowAttribute }}</td>
|
|
|
- </tr>
|
|
|
- }
|
|
|
- @if (spell.doesDamage) {
|
|
|
- <tr>
|
|
|
- <td>Schaden</td>
|
|
|
- <td>
|
|
|
- @for (damage of spell.damage; track damage) {
|
|
|
- {{ damage.diceNumber }} {{ "general.dice" | translate
|
|
|
- }}{{ damage.diceType }}
|
|
|
- {{ damage.damageType }}
|
|
|
- @if (damage.additionalDamage) {
|
|
|
- + {{ damage.additionalDamage }}
|
|
|
- }
|
|
|
-
|
|
|
- <br />
|
|
|
- }
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- }
|
|
|
- @if (spell.doesHeal) {
|
|
|
- <tr>
|
|
|
- <td>Heilung</td>
|
|
|
- <td>
|
|
|
- {{ spell.heal!.diceNumber }} {{ spell.heal!.diceType }}
|
|
|
- @if (spell.heal!.additionalHeal) {
|
|
|
- + {{ spell.heal!.additionalHeal }}
|
|
|
- }
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- }
|
|
|
- <h3>Beschreibung</h3>
|
|
|
- <div [innerHTML]="spell.description_de"></div>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="delete-row">
|
|
|
- @if (isFromDashboard) {
|
|
|
- <button class="delete-button" (click)="remove()">Entfernen</button>
|
|
|
- <button
|
|
|
- [class]="alreadyInFavorites ? 'disabled add-button' : 'add-button'"
|
|
|
- (click)="alreadyInFavorites ? '' : addToFavorites()"
|
|
|
- >
|
|
|
- @if (alreadyInFavorites) {
|
|
|
- Bereits in Favoriten
|
|
|
- } @else {
|
|
|
- Zu Favoriten hinzufügen
|
|
|
- }
|
|
|
- </button>
|
|
|
- @if (spell.isCustom) {
|
|
|
- <button class="edit-button" (click)="update()">Anpassen</button>
|
|
|
- }
|
|
|
-
|
|
|
- <button class="delete-button" (click)="remove()">Entfernen</button>
|
|
|
- @if (spell.isCustom) {
|
|
|
- <button class="delete-button" (click)="delete()">Löschen</button>
|
|
|
- }
|
|
|
- }
|
|
|
- </div>
|
|
|
-</div> -->
|