diff --git a/public/img/icons/food.png b/public/img/icons/food.png new file mode 100644 index 0000000..c5e74a2 Binary files /dev/null and b/public/img/icons/food.png differ diff --git a/public/img/icons/iron.png b/public/img/icons/iron.png new file mode 100644 index 0000000..c32f271 Binary files /dev/null and b/public/img/icons/iron.png differ diff --git a/public/img/icons/stone.png b/public/img/icons/stone.png new file mode 100644 index 0000000..af01089 Binary files /dev/null and b/public/img/icons/stone.png differ diff --git a/public/img/icons/wood.png b/public/img/icons/wood.png new file mode 100644 index 0000000..025b5a8 Binary files /dev/null and b/public/img/icons/wood.png differ diff --git a/src/hud/Resources.svelte b/src/hud/Resources.svelte index 3c2997e..d5140db 100644 --- a/src/hud/Resources.svelte +++ b/src/hud/Resources.svelte @@ -1,16 +1,33 @@
-
Wood: { Math.floor($village.resources.wood) } / { capacity.wood }
-
Stone: { Math.floor($village.resources.stone) } / { capacity.stone }
-
Iron: { Math.floor($village.resources.iron) } / { capacity.iron }
-
Food: { Math.floor($village.resources.food) } / { capacity.food }
+
+ Wood + { Math.floor($village.resources.wood) } / { capacity.wood } + ({ production.wood >= 0 ? '+' : '' }{ production.wood }) +
+
+ Stone + { Math.floor($village.resources.stone) } / { capacity.stone } + ({ production.stone >= 0 ? '+' : '' }{ production.stone }) +
+
+ Iron + { Math.floor($village.resources.iron) } / { capacity.iron } + ({ production.iron >= 0 ? '+' : '' }{ production.iron }) +
+
+ Food + { Math.floor($village.resources.food) } / { capacity.food } + ({ production.food >= 0 ? '+' : '' }{ production.food }) +