-
-
-
-
-
-
-
-
{{ 'encounter.actions' | translate }}
-
-
-
- | {{ 'action.name' | translate }} |
- {{ 'action.desc' | translate }} |
- {{ 'action.attackBonus' | translate }} |
- {{ 'action.damageDice' | translate }} |
- {{ 'action.damageBonus' | translate }} |
-
-
-
- @for (action of detail.actions; track action.name) {
-
- | {{ action.name }} |
- {{ action.desc }} |
-
- @if (action.attack_bonus! && action.attack_bonus > 0) {
- {{ action.attack_bonus | number }}
- }
- |
- {{ action.damage_dice }} |
- {{ action.damage_bonus | number }} |
-
- }
-
-
-
- @if (detail.reactions.length > 0) {
-
-
{{ 'encounter.reactions' | translate }}
-
-
-
- | {{ 'action.name' | translate }} |
- {{ 'action.desc' | translate }} |
- {{ 'action.attackBonus' | translate }} |
-
-
-
- @for (reaction of detail.reactions; track reaction.name) {
-
- | {{ reaction.name }} |
- {{ reaction.desc }} |
-
- @if (reaction.attack_bonus! && reaction.attack_bonus > 0) {
- {{ reaction.attack_bonus | number }}
- }
- |
-
- }
-
-
-
- }
- @if (detail.specialAbilities.length > 0) {
-
-
{{ 'encounter.specialAbilities' | translate }}
-
-
-
- | {{ 'action.name' | translate }} |
- {{ 'action.desc' | translate }} |
- {{ 'action.attackBonus' | translate }} |
- {{ 'action.damageDice' | translate }} |
-
-
-
- @for (ability of detail.specialAbilities; track ability.name) {
-
- | {{ ability.name }} |
- {{ ability.desc }} |
-
- @if (ability.attack_bonus! && ability.attack_bonus > 0) {
- {{ ability.attack_bonus | number }}
- }
- |
- {{ ability.damage_dice }} |
-
- }
-
-
-
- }
- @if (detail.legendaryActions.length > 0) {
-
-
{{ 'encounter.legendaryActions' | translate }}
-
-
-
- | {{ 'action.name' | translate }} |
- {{ 'action.desc' | translate }} |
- {{ 'action.attackBonus' | translate }} |
- {{ 'action.damageDice' | translate }} |
-
-
-
- @for (action of detail.legendaryActions; track action.name) {
-
- | {{ action.name }} |
- {{ action.desc }} |
-
- @if (action.attack_bonus! && action.attack_bonus > 0) {
- {{ action.attack_bonus | number }}
- }
- |
- {{ action.damage_dice }} |
-
- }
-
-
-
- }
-
-
+
+
+
+
+
+
+
+
+
+
{{ 'encounter.actions' | translate }}
+
+
+
+ | {{ 'action.name' | translate }} |
+ {{ 'action.desc' | translate }} |
+ {{ 'action.attackBonus' | translate }} |
+ {{ 'action.damageDice' | translate }} |
+ {{ 'action.damageBonus' | translate }} |
+
+
+
+ @for (action of detail.actions; track action.name) {
+
+ | {{ action.name }} |
+ {{ action.desc }} |
+
+ @if (action.attack_bonus! && action.attack_bonus > 0) {
+ {{ action.attack_bonus | number }}
+ }
+ |
+ {{ action.damage_dice }} |
+ {{ action.damage_bonus | number }} |
+
+ }
+
+
+
+ @if (detail.reactions.length > 0) {
+
+
{{ 'encounter.reactions' | translate }}
+
+
+
+ | {{ 'action.name' | translate }} |
+ {{ 'action.desc' | translate }} |
+ {{ 'action.attackBonus' | translate }} |
+
+
+
+ @for (reaction of detail.reactions; track reaction.name) {
+
+ | {{ reaction.name }} |
+ {{ reaction.desc }} |
+
+ @if (reaction.attack_bonus! && reaction.attack_bonus > 0) {
+ {{ reaction.attack_bonus | number }}
+ }
+ |
+
+ }
+
+
+
+ }
+ @if (detail.specialAbilities.length > 0) {
+
+
{{ 'encounter.specialAbilities' | translate }}
+
+
+
+ | {{ 'action.name' | translate }} |
+ {{ 'action.desc' | translate }} |
+ {{ 'action.attackBonus' | translate }} |
+ {{ 'action.damageDice' | translate }} |
+
+
+
+ @for (ability of detail.specialAbilities; track ability.name) {
+
+ | {{ ability.name }} |
+ {{ ability.desc }} |
+
+ @if (ability.attack_bonus! && ability.attack_bonus > 0) {
+ {{ ability.attack_bonus | number }}
+ }
+ |
+ {{ ability.damage_dice }} |
+
+ }
+
+
+
+ }
+ @if (detail.legendaryActions.length > 0) {
+
+
{{ 'encounter.legendaryActions' | translate }}
+
+
+
+ | {{ 'action.name' | translate }} |
+ {{ 'action.desc' | translate }} |
+ {{ 'action.attackBonus' | translate }} |
+ {{ 'action.damageDice' | translate }} |
+
+
+
+ @for (action of detail.legendaryActions; track action.name) {
+
+ | {{ action.name }} |
+ {{ action.desc }} |
+
+ @if (action.attack_bonus! && action.attack_bonus > 0) {
+ {{ action.attack_bonus | number }}
+ }
+ |
+ {{ action.damage_dice }} |
+
+ }
+
+
+
+ }
+
+
diff --git a/src/REG.Angular/ClientApp/src/app/modules/encounter/encounter.detail.component.ts b/src/REG.Angular/src/app/modules/encounter/encounter.detail.component.ts
similarity index 96%
rename from src/REG.Angular/ClientApp/src/app/modules/encounter/encounter.detail.component.ts
rename to src/REG.Angular/src/app/modules/encounter/encounter.detail.component.ts
index d67e3f0..edf8ef2 100644
--- a/src/REG.Angular/ClientApp/src/app/modules/encounter/encounter.detail.component.ts
+++ b/src/REG.Angular/src/app/modules/encounter/encounter.detail.component.ts
@@ -1,35 +1,35 @@
-import { Component, Input } from '@angular/core';
-import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
-import { EncounterDetailModel } from '../../shared/models/encounter.model';
-import { EncounterService } from '../../core/http/encounter.service';
-import { TranslatePipe } from '@ngx-translate/core';
-import { DecimalPipe } from '@angular/common';
-import { SavingThrowPipe } from '../../shared/pipes/saving.throw.pipe';
-
-@Component({
- selector: 'app-encounter-detail',
- templateUrl: './encounter.detail.component.html',
- imports: [TranslatePipe, DecimalPipe, SavingThrowPipe],
- providers: [EncounterService]
-})
-export class EncounterDetailComponent {
- @Input() detail!: EncounterDetailModel;
-
- constructor(public activeModal: NgbActiveModal) {}
-
- calcMod(ability: number): string {
- const result = -5 + Math.floor(ability / 2);
- if (result > 0) {
- return '+' + result;
- }
- return result.toString();
- }
-
- onConfirm(): void {
- this.activeModal.close(true);
- }
-
- onDismiss(): void {
- this.activeModal.close(true);
- }
-}
+import { Component, Input } from '@angular/core';
+import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
+import { EncounterDetailModel } from '../../shared/models/encounter.model';
+import { EncounterService } from '../../core/http/encounter.service';
+import { TranslatePipe } from '@ngx-translate/core';
+import { DecimalPipe } from '@angular/common';
+import { SavingThrowPipe } from '../../shared/pipes/saving.throw.pipe';
+
+@Component({
+ selector: 'app-encounter-detail',
+ templateUrl: './encounter.detail.component.html',
+ imports: [TranslatePipe, DecimalPipe, SavingThrowPipe],
+ providers: [EncounterService]
+})
+export class EncounterDetailComponent {
+ @Input() detail!: EncounterDetailModel;
+
+ constructor(public activeModal: NgbActiveModal) {}
+
+ calcMod(ability: number): string {
+ const result = -5 + Math.floor(ability / 2);
+ if (result > 0) {
+ return '+' + result;
+ }
+ return result.toString();
+ }
+
+ onConfirm(): void {
+ this.activeModal.close(true);
+ }
+
+ onDismiss(): void {
+ this.activeModal.close(true);
+ }
+}
diff --git a/src/REG.Angular/ClientApp/src/app/modules/encounter/encounter.list.component.html b/src/REG.Angular/src/app/modules/encounter/encounter.list.component.html
similarity index 97%
rename from src/REG.Angular/ClientApp/src/app/modules/encounter/encounter.list.component.html
rename to src/REG.Angular/src/app/modules/encounter/encounter.list.component.html
index 01e1f0c..afea196 100644
--- a/src/REG.Angular/ClientApp/src/app/modules/encounter/encounter.list.component.html
+++ b/src/REG.Angular/src/app/modules/encounter/encounter.list.component.html
@@ -1,83 +1,83 @@
-