Skip to content

Commit

Permalink
add level to npc/item input
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Oct 14, 2024
1 parent c6754a5 commit 20ab4eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[sprite]="item.data.sprite"></app-sprite>
}
<div class="ml-7 text-white">
{{ item.data.name }}
{{ item.data.name }} (Level {{ item.data.requirements?.level ?? 0 }})
</div>
</div>
</ng-template>
Expand All @@ -22,11 +22,11 @@
[sprite]="item.data.sprite"></app-sprite>
}
<div class="ml-5 text-white">
{{ item.data.name }}
{{ item.data.name }} (Level {{ item.data.requirements?.level ?? 0 }})
</div>
</div>
</ng-template>
</ng-select>

<app-input-floating-label>{{ label() }}</app-input-floating-label>
</div>
</div>
6 changes: 3 additions & 3 deletions src/app/shared/components/input-npc/input-npc.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[sprite]="item.data.sprite"></app-sprite>
}
<div class="ml-7 text-white">
{{ item.data.npcId }}
{{ item.data.npcId }} (Level {{ item.data.level ?? 0 }})
</div>
</div>
</ng-template>
Expand All @@ -19,11 +19,11 @@
<app-sprite class="absolute -top-5 -left-7" [scale]="0.5" [type]="'creatures'"
[sprite]="item.data.sprite"></app-sprite>
<div class="ml-5 text-white">
{{ item.data.npcId }}
{{ item.data.npcId }} (Level {{ item.data.level ?? 0 }})
</div>
</div>
</ng-template>
</ng-select>

<app-input-floating-label>{{ label() }}</app-input-floating-label>
</div>
</div>

0 comments on commit 20ab4eb

Please sign in to comment.