Skip to content

Commit

Permalink
Re-added smoothened value for ressource demand/ income to RessourceMenu
Browse files Browse the repository at this point in the history
Changed remove button label
  • Loading branch information
BuildTools committed May 9, 2024
1 parent b435a6e commit 2d71b75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/BuildMenu/BuildMenuEntry/BuildMenuEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const BuildingMenuEntry = ({ building, handleAdd, handleDelete, hasEnoughRessour
) : (
<button className="building-menu__entry" onClick={handleDelete}>
<figure className="building-menu__entry-icon"></figure>
delete
remove building
</button>
);
};
Expand Down
8 changes: 4 additions & 4 deletions src/components/RessourceMenu/RessourceMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ export const RessourceMenu = () => {

<tr>
<td><b>Total</b></td>
<td>{Math.floor(ressources.gold)} </td>
<td>{Math.floor(ressources.wood)}</td>
<td>{Math.floor(ressources.stone)}</td>
<td>{Math.floor(ressources.food)}</td>
<td><b>{Math.floor(ressources.gold)}</b> ({valueSmoothener(buildingOutputs.gold)})</td>
<td><b>{Math.floor(ressources.wood)}</b> ({valueSmoothener(buildingOutputs.wood)})</td>
<td><b>{Math.floor(ressources.stone)}</b> ({valueSmoothener(buildingOutputs.stone)})</td>
<td><b>{Math.floor(ressources.food)}</b> ({valueSmoothener(buildingOutputs.food)})</td>
<td></td>
<td>{Math.floor(ressources.villager)}</td>
</tr>
Expand Down

0 comments on commit 2d71b75

Please # to comment.