Skip to content

Commit

Permalink
fix(dungeon): dungeons no longer let you eat food
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Mar 27, 2023
1 parent ccdbff7 commit cb0d9a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/pages/character/inventory/inventory.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<app-game-icon class="popup-icon" [icon]="item.icon" [inlineIconSize]="true"></app-game-icon> {{ item.name }}
</ion-item>

<ion-item class="cursor-pointer" (click)="eat(item)" *ngIf="item.category === 'Foods' && ((item.oocHealth || 0) > 0 || (item.oocEnergy || 0) > 0)" [class.hidden]="encounter$ | async">
<ion-item class="cursor-pointer" (click)="eat(item)" *ngIf="item.category === 'Foods' && ((item.oocHealth || 0) > 0 || (item.oocEnergy || 0) > 0)" [class.hidden]="(encounter$ | async) || (dungeon$ | async)">
<ion-label class="ion-text-wrap">
Eat To Heal
<span *ngIf="item.oocHealth || item.oocEnergy">&nbsp;(+{{ item.oocHealth || 0 }}/{{ item.oocEnergy || 0}} HP/Energy)</span>
Expand Down
1 change: 1 addition & 0 deletions src/app/pages/character/inventory/inventory.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export class InventoryPage implements OnInit, OnDestroy {

@Select(CharSelectState.activeCharacterInventory) inventory$!: Observable<IGameItem[]>;
@Select(CombatState.currentEncounter) encounter$!: Observable<any>;
@Select(CombatState.currentDungeon) dungeon$!: Observable<any>;

public activeCategory = '';
public categorySub!: Subscription;
Expand Down

0 comments on commit cb0d9a7

Please sign in to comment.