Skip to content

Commit

Permalink
feat(refining): clarify UI about items that are preserved vs consumed…
Browse files Browse the repository at this point in the history
… when crafting
  • Loading branch information
seiyria committed Mar 27, 2023
1 parent a8cb999 commit 98d74c2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/components/item-icon/item-icon.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[ngClass]="[
itemClass,
emphasizeText ? 'emphasis' : '',
angryColorWhenQuantityExceedsMax && quantity > maxQuantity ? 'angry' : '',
angryColorWhenQuantityExceedsMax && maxQuantity > 0 && quantity > maxQuantity ? 'angry' : '',
name === 'nothing' ? 'nothing' : ''
]">
<app-game-icon class="icon" [icon]="icon" [inlineIconSize]="inlineIconSize"></app-game-icon>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ <h2>
<app-resource-icon *ngFor="let resource of ingredients[recipe.result]"
[name]="resource.name"
[quantity]="recipe.preserve?.includes(resource.name) ? resource.amount : resource.amount * (amounts[recipe.result] || 1)"
[maxQuantity]="summedResources[resource.name] || 0"
[maxQuantity]="recipe.preserve?.includes(resource.name) ? 0 : (summedResources[resource.name] || 0)"
[showX]="true"
[inlineIconSize]="true"
[emphasizeText]="false"
Expand All @@ -119,7 +119,7 @@ <h2>
<app-item-icon *ngFor="let item of itemIngredients[recipe.result]"
[name]="item.name"
[quantity]="recipe.preserve?.includes(item.name) ? item.amount : item.amount * (amounts[recipe.result] || 1)"
[maxQuantity]="summedResources[item.name] || 0"
[maxQuantity]="recipe.preserve?.includes(item.name) ? 0 : (summedResources[item.name] || 0)"
[showX]="true"
[inlineIconSize]="true"
[emphasizeText]="false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[ngClass]="[
rarity || 'Common',
emphasizeText ? 'emphasis' : '',
angryColorWhenQuantityExceedsMax && quantity > maxQuantity ? 'angry' : '',
angryColorWhenQuantityExceedsMax && maxQuantity > 0 && quantity > maxQuantity ? 'angry' : '',
name === 'nothing' ? 'nothing' : ''
]">
<app-game-icon class="icon" [icon]="icon" [inlineIconSize]="inlineIconSize"></app-game-icon>
Expand Down

0 comments on commit 98d74c2

Please sign in to comment.