From e5a243a52b910e35b10b26c06aa8978356b86769 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 2 Dec 2023 14:14:34 +0100 Subject: login and events --- views/village.twig | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'views/village.twig') diff --git a/views/village.twig b/views/village.twig index d2b8a4e..97d65f7 100644 --- a/views/village.twig +++ b/views/village.twig @@ -84,7 +84,8 @@ - {% for event in events['UpgradeBuilding'] %} + {% for typeEvents in events['UpgradeBuilding'] %} + {% for event in typeEvents %} {{ event.type }} @@ -97,6 +98,7 @@ {% endfor %} + {% endfor %} {% endif %} @@ -190,21 +192,21 @@ {{ building.type | default(type) }} {{ building.level | default(0) }} - {{ building.getBuildTime() | buildTime }} + {{ building.getBuildTimeForLevel(building.getEffectiveLevel() + 1) | buildTime }} - {{ building.getResourceRequirements()['wood'] }} + {{ building.getResourceRequirementsForLevel(building.getEffectiveLevel() + 1)['wood'] }}   - {{ building.getResourceRequirements()['clay'] }} + {{ building.getResourceRequirementsForLevel(building.getEffectiveLevel() + 1)['clay'] }}   - {{ building.getResourceRequirements()['iron'] }} + {{ building.getResourceRequirementsForLevel(building.getEffectiveLevel() + 1)['iron'] }} @@ -235,6 +237,7 @@ {{ unit.type }} {{ unit.amount }} + {% if not unit.isTraveling %} {{ unit.getBuildTime(1) | buildTime }} @@ -265,6 +268,9 @@ + {% else %} + ~traveling~ + {% endif %} {% endfor %} -- cgit v1.2.3