Skip to content

Commit

Permalink
fix(edibles): items that only restore energy should be able to be eaten
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Mar 21, 2023
1 parent b5f48cd commit 40e8e14
Showing 1 changed file with 1 addition 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 @@
{{ item.name }}
</ion-item>

<ion-item class="cursor-pointer" (click)="eat(item)" *ngIf="item.category === 'Foods' && (item.stats?.healing || 0) > 0">
<ion-item class="cursor-pointer" (click)="eat(item)" *ngIf="item.category === 'Foods' && ((item.stats?.healing || 0) > 0 || (item.stats?.energy || 0) > 0)">
Eat To Heal
</ion-item>

Expand Down

0 comments on commit 40e8e14

Please sign in to comment.