From b21316248572cb27ed1f504529ad6680a473022e Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Tue, 2 Jan 2024 20:42:01 +0100 Subject: gemini --- views/base.twig | 32 ---- views/components/timer.twig | 26 --- views/error.twig | 8 - views/gemini/error.twig | 3 + views/gemini/storage.twig | 16 ++ views/gemini/village.twig | 136 +++++++++++++++ views/gemini/villages.twig | 3 + views/http/base.twig | 32 ++++ views/http/components/timer.twig | 26 +++ views/http/error.twig | 8 + views/http/login.twig | 17 ++ views/http/map.twig | 42 +++++ views/http/root.twig | 12 ++ views/http/village.twig | 361 +++++++++++++++++++++++++++++++++++++++ views/http/villages.twig | 38 +++++ views/login.twig | 17 -- views/map.twig | 42 ----- views/root.twig | 12 -- views/village.twig | 361 --------------------------------------- views/villages.twig | 38 ----- 20 files changed, 694 insertions(+), 536 deletions(-) delete mode 100644 views/base.twig delete mode 100644 views/components/timer.twig delete mode 100644 views/error.twig create mode 100644 views/gemini/error.twig create mode 100644 views/gemini/storage.twig create mode 100644 views/gemini/village.twig create mode 100644 views/gemini/villages.twig create mode 100644 views/http/base.twig create mode 100644 views/http/components/timer.twig create mode 100644 views/http/error.twig create mode 100644 views/http/login.twig create mode 100644 views/http/map.twig create mode 100644 views/http/root.twig create mode 100644 views/http/village.twig create mode 100644 views/http/villages.twig delete mode 100644 views/login.twig delete mode 100644 views/map.twig delete mode 100644 views/root.twig delete mode 100644 views/village.twig delete mode 100644 views/villages.twig (limited to 'views') diff --git a/views/base.twig b/views/base.twig deleted file mode 100644 index 15ddafd..0000000 --- a/views/base.twig +++ /dev/null @@ -1,32 +0,0 @@ -{% extends 'root.twig' %} - -{% block body %} -
-
- - Logged in as {{ session.user.username }} -
- -
- {% block main %}{% endblock %} -
- -
- -
- -
-{% endblock %} diff --git a/views/components/timer.twig b/views/components/timer.twig deleted file mode 100644 index ccb31a7..0000000 --- a/views/components/timer.twig +++ /dev/null @@ -1,26 +0,0 @@ - - - - diff --git a/views/error.twig b/views/error.twig deleted file mode 100644 index f9d70cd..0000000 --- a/views/error.twig +++ /dev/null @@ -1,8 +0,0 @@ -{% extends 'root.twig' %} - -{% block body %} -
- {{ message }} - Back -
-{% endblock %} diff --git a/views/gemini/error.twig b/views/gemini/error.twig new file mode 100644 index 0000000..67aff6a --- /dev/null +++ b/views/gemini/error.twig @@ -0,0 +1,3 @@ +=> /villages Overview + +Error: {{ message }} diff --git a/views/gemini/storage.twig b/views/gemini/storage.twig new file mode 100644 index 0000000..c9ecd4f --- /dev/null +++ b/views/gemini/storage.twig @@ -0,0 +1,16 @@ +=> /village/{{ village.x }}/{{ village.y }} Back + +# Configure Storage + +=> /village/{{ village.x }}/{{ village.y }}/storage/config/wood {{ village.getStorageConfig(village.id).wood }}% Wood +=> /village/{{ village.x }}/{{ village.y }}/storage/config/clay {{ village.getStorageConfig(village.id).clay }}% Clay +=> /village/{{ village.x }}/{{ village.y }}/storage/config/iron {{ village.getStorageConfig(village.id).iron }}% Iron +=> /village/{{ village.x }}/{{ village.y }}/storage/config/food {{ village.getStorageConfig(village.id).food }}% Food + +# Resources + +Wood: {{ village.wood }} / {{ village.getStorage(village.id).getResourceCapacity('wood') }} - Increment: {{ village.getBuilding(village.id, 'WoodCutter').getResourceIncrementor() }} +Clay: {{ village.clay }} / {{ village.getStorage(village.id).getResourceCapacity('clay') }} - Increment: {{ village.getBuilding(village.id, 'ClayPit').getResourceIncrementor() }} +Iron: {{ village.iron }} / {{ village.getStorage(village.id).getResourceCapacity('iron') }} - Increment: {{ village.getBuilding(village.id, 'IronMine').getResourceIncrementor() }} +Food: {{ village.food }} / {{ village.getStorage(village.id).getResourceCapacity('food') }} - Increment: {{ village.getBuilding(village.id, 'Farm').getResourceIncrementor() }} +Storage Capacity: {{ village.getStorage(village.id).getCapacity() }} diff --git a/views/gemini/village.twig b/views/gemini/village.twig new file mode 100644 index 0000000..199f53a --- /dev/null +++ b/views/gemini/village.twig @@ -0,0 +1,136 @@ +=> /villages Overview + + +# {{ village.name }} - {{ village.x }} x {{ village.y }} +=> /map/{{ village.x }}/{{ village.y }} Map - {{ village.x }} x {{ village.y }} +Satisfaction: {{ village.satisfaction }} + + +# Resources + +Wood: {{ village.wood }} / {{ village.getStorage(village.id).getResourceCapacity('wood') }} - Increment: {{ village.getBuilding(village.id, 'WoodCutter').getResourceIncrementor() }} +Clay: {{ village.clay }} / {{ village.getStorage(village.id).getResourceCapacity('clay') }} - Increment: {{ village.getBuilding(village.id, 'ClayPit').getResourceIncrementor() }} +Iron: {{ village.iron }} / {{ village.getStorage(village.id).getResourceCapacity('iron') }} - Increment: {{ village.getBuilding(village.id, 'IronMine').getResourceIncrementor() }} +Food: {{ village.food }} / {{ village.getStorage(village.id).getResourceCapacity('food') }} - Increment: {{ village.getBuilding(village.id, 'Farm').getResourceIncrementor() }} +Storage Capacity: {{ village.getStorage(village.id).getCapacity() }} +=> /village/{{ village.x }}/{{ village.y }}/storage/config Configure Storage + + +# Events + +{% if events['UpgradeBuilding'] %} +## Upgrade Building +{% for typeEvents in events['UpgradeBuilding'] %} +{% for event in typeEvents %} +### {{ event.type }} +Finished: {{ event.event.time | date('c') }} +=> /village/{{ village.x }}/{{ village.y }}/building/UpgradeBuilding/build/cancel Cancel +{% endfor %} +{% endfor %} +{% endif %} + +{% if events['TrainUnits'] %} +## Train Units +{% for event in events['TrainUnits'] %} +### {{ event.type }} +Amount: {{ event.amount }} +Finished: {{ event.event.time | date('c') }} +=> /village/{{ village.x }}/{{ village.y }}/unit/train/cancel Cancel +{% endfor %} +{% endif %} + +{% if events['SendUnits'] %} +## Send Units +{% for event in events['SendUnits'] %} +### {{ event.unit }} - {{ event.type }} +Amount: {{ event.amount }} +Source: {{ village.get(event.source).name }} +Destination: {{ village.get(event.destination).name }} +Finished: {{ event.event.time | date('c') }} +{% if event.isCanceled %} +Canceled +{% else %} +{% if event.event.villageId == village.id %} +=> /event/{{ event.event.id }}/cancel Cancel +{% endif %} +{% endif %} +{% endfor %} +{% endif %} + + +# Buildings + +{% for building in buildings %} +## {{ building.type }} +Level: {{ building.level | default(0) }} +Build Time: {{ building.getBuildTimeForLevel(building.getEffectiveLevel() + 1) | buildTime }} +Resources: +* Wood: {{ building.getResourceRequirementsForLevel(building.getEffectiveLevel() + 1)['wood'] }} +* Clay: {{ building.getResourceRequirementsForLevel(building.getEffectiveLevel() + 1)['clay'] }} +* Iron: {{ building.getResourceRequirementsForLevel(building.getEffectiveLevel() + 1)['iron'] }} +=> /village/{{ village.x }}/{{ village.y }}/building/{{ building.type }}/manage Manage +{% if village.canBuild(village, building) %} +=> /village/{{ village.x }}/{{ village.y }}/building/{{ building.type }}/level-up Level up +{% endif %} +{% endfor %} + + +# Units At Home + +{% for unit in village.getUnits(village.id, 1, 3) %} +## {{ unit.type }} +Amount: {{ unit.amount }} +{% if not unit.isTraveling %} +Build Time: {{ unit.getBuildTime(1) | buildTime }} +Resources: +* Wood: {{ unit.getResourceRequirements(unit, 1)['wood'] }} +* Clay: {{ unit.getResourceRequirements(unit, 1)['clay'] }} +* Iron: {{ unit.getResourceRequirements(unit, 1)['iron'] }} +* Food: {{ unit.getResourceRequirements(unit, 1)['food'] ?? 0 }} +{% if village.canTrain(village, unit, 1) %} +=> /village/{{ village.x }}/{{ village.y }}/unit/{{ unit.type }}/create Train +{% endif %} +{% else %} +~traveling~ +{% endif %} +{% endfor %} + + +# Units Supporting + +{% for unit in village.getUnits(village.id, 2) | merge(village.getUnits(village.id, 3)) %} +## {{ unit.type }} +Amount: {{ unit.amount }} +Origin: {{ village.get(unit.homeVillageId).name }} +Location: {{ not unit.isTraveling ? village.get(unit.residenceVillageId).name : '~traveling~' }} +Travel Time: {{ unit.getTravelTime(unit, village.getDistance(unit.getHomeVillage().x, unit.getHomeVillage().x, unit.getResidenceVillage().x, unit.getResidenceVillage().y)) | buildTime }} +{% if not unit.isTraveling %} +{% if unit.homeVillageId == village.id %} +=> /village/{{ village.x }}/{{ village.y }}/unit/{{ unit.type }}/location/{{ unit.getResidenceVillage().x }}/{{ unit.getResidenceVillage().y }}/recall Recall Home +{% else %} +=> /village/{{ village.x }}/{{ village.y }}/unit/{{ unit.type }}/location/{{ unit.getHomeVillage().x }}/{{ unit.getHomeVillage().y }}/send-back Send Back +{% endif %} +{% endif %} +{% endfor %} + + +# Send Units + +TODO +* list possible units +* list possible villages +* send INPUT request for amount + + +# Send Resources + +TODO +* list possible resource types +* list possible villages +* send INPUT request for amount + + +Logged in as {{ session.user.username }} +=> /logout Logout + +Server Time: {{ 'now' | date('c') }} diff --git a/views/gemini/villages.twig b/views/gemini/villages.twig new file mode 100644 index 0000000..1c8eb82 --- /dev/null +++ b/views/gemini/villages.twig @@ -0,0 +1,3 @@ +{% for village in villages %} +=> /village/{{ village.x }}/{{ village.y }} {{ village.name }} +{% endfor %} diff --git a/views/http/base.twig b/views/http/base.twig new file mode 100644 index 0000000..15ddafd --- /dev/null +++ b/views/http/base.twig @@ -0,0 +1,32 @@ +{% extends 'root.twig' %} + +{% block body %} +
+
+ + Logged in as {{ session.user.username }} +
+ +
+ {% block main %}{% endblock %} +
+ +
+ +
+ +
+{% endblock %} diff --git a/views/http/components/timer.twig b/views/http/components/timer.twig new file mode 100644 index 0000000..ccb31a7 --- /dev/null +++ b/views/http/components/timer.twig @@ -0,0 +1,26 @@ + + + + diff --git a/views/http/error.twig b/views/http/error.twig new file mode 100644 index 0000000..f9d70cd --- /dev/null +++ b/views/http/error.twig @@ -0,0 +1,8 @@ +{% extends 'root.twig' %} + +{% block body %} +
+ {{ message }} + Back +
+{% endblock %} diff --git a/views/http/login.twig b/views/http/login.twig new file mode 100644 index 0000000..723d5d2 --- /dev/null +++ b/views/http/login.twig @@ -0,0 +1,17 @@ +{% extends 'root.twig' %} + +{% block body %} +
+
+ + + +
+
+{% endblock %} diff --git a/views/http/map.twig b/views/http/map.twig new file mode 100644 index 0000000..29f0294 --- /dev/null +++ b/views/http/map.twig @@ -0,0 +1,42 @@ +{% extends 'base.twig' %} + +{% block main %} +
+
+ + + +
+
+
+ + + +
+
+ {% for row in range(-range, range) %} + {% for column in range(-range, range) %} + {% set village = map[x + column][y + row] %} +
+ {% if village %} + + {{ map[x + column][y + row].name }} + + {% endif %} +
+ {% endfor %} + {% endfor %} +
+
+ + + +
+
+
+ + + +
+
+{% endblock %} diff --git a/views/http/root.twig b/views/http/root.twig new file mode 100644 index 0000000..35399c0 --- /dev/null +++ b/views/http/root.twig @@ -0,0 +1,12 @@ + + + + + + + + + + {% block body %}{% endblock %} + + diff --git a/views/http/village.twig b/views/http/village.twig new file mode 100644 index 0000000..c72018c --- /dev/null +++ b/views/http/village.twig @@ -0,0 +1,361 @@ +{% extends 'base.twig' %} + +{% block main %} +
+ +
+
+ + + {{ village.x }} x {{ village.y }} + + + — + {{ village.name }} +
+ +
+
+ + {{ village.wood }} / {{ village.getStorage(village.id).getResourceCapacity('wood') }} + + {{ village.getBuilding(village.id, 'WoodCutter').getResourceIncrementor() }} +
+
+ + {{ village.clay }} / {{ village.getStorage(village.id).getResourceCapacity('clay') }} + + {{ village.getBuilding(village.id, 'ClayPit').getResourceIncrementor() }} +
+
+ + {{ village.iron }} / {{ village.getStorage(village.id).getResourceCapacity('iron') }} + + {{ village.getBuilding(village.id, 'IronMine').getResourceIncrementor() }} +
+
+ + {{ village.food }} / {{ village.getStorage(village.id).getResourceCapacity('food') }} + + {{ village.getBuilding(village.id, 'Farm').getResourceIncrementor() }} +
+ +
+ + {{ village.getStorage(village.id).getCapacity() }} +
+ + +

Storage Config

+
+ + + + + +
+
+
+
+ +
+

Events

+ + {% if events['UpgradeBuilding'] %} +

Upgrade Buildings

+ + + + + + + + + + {% for typeEvents in events['UpgradeBuilding'] %} + {% for event in typeEvents %} + + + + + + {% endfor %} + {% endfor %} + +
BuildingTime
{{ event.type }} + {% include 'components/timer.twig' with { 'time': event.event.time|date('c') } %} + + + Cancel + +
+ {% endif %} + + {% if events['TrainUnits'] %} +

Train Units

+ + + + + + + + + + {% for event in events['TrainUnits'] %} + + + + + + {% endfor %} + +
UnitTime
{{ event.type }} + {% include 'components/timer.twig' with { 'time': event.event.time|date('c') } %} + + + Cancel + +
+ {% endif %} + + {% if events['SendUnits'] %} +

Send Resources / Units

+ + + + + + + + + + + + + + {% for event in events['SendUnits'] %} + + + + + + + + + + {% endfor %} + +
TypeUnitAmountOriginDestinationTime
{{ event.type }}{{ event.unit }}{{ event.amount }}{{ village.get(event.source).name }}{{ village.get(event.destination).name }} + {% include 'components/timer.twig' with { 'time': event.event.time|date('c') } %} + + {% if event.isCanceled %} + Canceled + {% else %} + {% if event.event.villageId == village.id %} +
+ +
+ {% endif %} + {% endif %} +
+ {% endif %} +
+ +
+
+

Buildings

+ + + + + + + + + + + + {% for building in buildings %} + + + + + + + + {% endfor %} + +
TypeLevelBuild TimeResources
{{ building.type | default(type) }}{{ building.level | default(0) }}{{ building.getBuildTimeForLevel(building.getEffectiveLevel() + 1) | buildTime }} + + + {{ building.getResourceRequirementsForLevel(building.getEffectiveLevel() + 1)['wood'] }} + +   + + + {{ building.getResourceRequirementsForLevel(building.getEffectiveLevel() + 1)['clay'] }} + +   + + + {{ building.getResourceRequirementsForLevel(building.getEffectiveLevel() + 1)['iron'] }} + + +
+ +
+
+
+ +
+

Units

+ + + + + + + + + + + + + {% for unit in village.getUnits(village.id, 1, 3) %} + + + + + {% if not unit.isTraveling %} + + + + {% else %} + + {% endif %} + + {% endfor %} + +
TypeAmountBuild TimeResources
{{ unit.type }}{{ unit.amount }} + {{ unit.getBuildTime(1) | buildTime }} + + + + {{ unit.getResourceRequirements(unit, 1)['wood'] }} + +   + + + {{ unit.getResourceRequirements(unit, 1)['clay'] }} + +   + + + {{ unit.getResourceRequirements(unit, 1)['iron'] }} + +   + + + {{ unit.getResourceRequirements(unit, 1)['food'] ?? 0 }} + + +
+ + +
+
~traveling~
+ +

Supporting Units

+ + + + + + + + + + + + + + {% for unit in village.getUnits(village.id, 2) | merge(village.getUnits(village.id, 3)) %} + + + + + + + + + + {% endfor %} + +
TypeAmountOriginLocationTravel Time
{{ unit.type }}{{ unit.amount }}{{ village.get(unit.homeVillageId).name }}{{ not unit.isTraveling ? village.get(unit.residenceVillageId).name : '~traveling~' }}{{ unit.getTravelTime(unit, village.getDistance(unit.getHomeVillage().x, unit.getHomeVillage().x, unit.getResidenceVillage().x, unit.getResidenceVillage().y)) | buildTime }} + {% if not unit.isTraveling %} + {% if unit.homeVillageId == village.id %} +
+ + +
+ {% else %} +
+ + +
+ {% endif %} + {% endif %} +
+ +

Send Units

+
+ + + + + +
+
+ + {% if village.getBuilding(village.id, 'Marketplace') %} +

Send Resources

+
+ + + + + + +
+ {% endif %} +
+
+{% endblock %} diff --git a/views/http/villages.twig b/views/http/villages.twig new file mode 100644 index 0000000..bdb87be --- /dev/null +++ b/views/http/villages.twig @@ -0,0 +1,38 @@ +{% extends 'base.twig' %} + +{% block main %} + + + + + + + + + + + + + + + {% for village in villages %} + + + + + + + + + + + {% endfor %} + +
NameCoordinatesWoodClayIronFoodStorageSatisfaction
+ + {{ village.name }} + + + { x: {{ village.x }}, y: {{ village.y }} } + {{ village.wood }}{{ village.clay }}{{ village.iron }}{{ village.food }}{{ village.getStorage(village.id).getCapacity() * (25 / 100) }}{{ village.satisfaction }}
+{% endblock %} diff --git a/views/login.twig b/views/login.twig deleted file mode 100644 index 095f53e..0000000 --- a/views/login.twig +++ /dev/null @@ -1,17 +0,0 @@ -{% extends 'root.twig' %} - -{% block body %} -
-
- - - -
-
-{% endblock %} diff --git a/views/map.twig b/views/map.twig deleted file mode 100644 index 29f0294..0000000 --- a/views/map.twig +++ /dev/null @@ -1,42 +0,0 @@ -{% extends 'base.twig' %} - -{% block main %} -
-
- - - -
-
-
- - - -
-
- {% for row in range(-range, range) %} - {% for column in range(-range, range) %} - {% set village = map[x + column][y + row] %} -
- {% if village %} - - {{ map[x + column][y + row].name }} - - {% endif %} -
- {% endfor %} - {% endfor %} -
-
- - - -
-
-
- - - -
-
-{% endblock %} diff --git a/views/root.twig b/views/root.twig deleted file mode 100644 index 35399c0..0000000 --- a/views/root.twig +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - {% block body %}{% endblock %} - - diff --git a/views/village.twig b/views/village.twig deleted file mode 100644 index c72018c..0000000 --- a/views/village.twig +++ /dev/null @@ -1,361 +0,0 @@ -{% extends 'base.twig' %} - -{% block main %} -
- -
-
- - - {{ village.x }} x {{ village.y }} - - - — - {{ village.name }} -
- -
-
- - {{ village.wood }} / {{ village.getStorage(village.id).getResourceCapacity('wood') }} - - {{ village.getBuilding(village.id, 'WoodCutter').getResourceIncrementor() }} -
-
- - {{ village.clay }} / {{ village.getStorage(village.id).getResourceCapacity('clay') }} - - {{ village.getBuilding(village.id, 'ClayPit').getResourceIncrementor() }} -
-
- - {{ village.iron }} / {{ village.getStorage(village.id).getResourceCapacity('iron') }} - - {{ village.getBuilding(village.id, 'IronMine').getResourceIncrementor() }} -
-
- - {{ village.food }} / {{ village.getStorage(village.id).getResourceCapacity('food') }} - - {{ village.getBuilding(village.id, 'Farm').getResourceIncrementor() }} -
- -
- - {{ village.getStorage(village.id).getCapacity() }} -
- - -

Storage Config

-
- - - - - -
-
-
-
- -
-

Events

- - {% if events['UpgradeBuilding'] %} -

Upgrade Buildings

- - - - - - - - - - {% for typeEvents in events['UpgradeBuilding'] %} - {% for event in typeEvents %} - - - - - - {% endfor %} - {% endfor %} - -
BuildingTime
{{ event.type }} - {% include 'components/timer.twig' with { 'time': event.event.time|date('c') } %} - - - Cancel - -
- {% endif %} - - {% if events['TrainUnits'] %} -

Train Units

- - - - - - - - - - {% for event in events['TrainUnits'] %} - - - - - - {% endfor %} - -
UnitTime
{{ event.type }} - {% include 'components/timer.twig' with { 'time': event.event.time|date('c') } %} - - - Cancel - -
- {% endif %} - - {% if events['SendUnits'] %} -

Send Resources / Units

- - - - - - - - - - - - - - {% for event in events['SendUnits'] %} - - - - - - - - - - {% endfor %} - -
TypeUnitAmountOriginDestinationTime
{{ event.type }}{{ event.unit }}{{ event.amount }}{{ village.get(event.source).name }}{{ village.get(event.destination).name }} - {% include 'components/timer.twig' with { 'time': event.event.time|date('c') } %} - - {% if event.isCanceled %} - Canceled - {% else %} - {% if event.event.villageId == village.id %} -
- -
- {% endif %} - {% endif %} -
- {% endif %} -
- -
-
-

Buildings

- - - - - - - - - - - - {% for building in buildings %} - - - - - - - - {% endfor %} - -
TypeLevelBuild TimeResources
{{ building.type | default(type) }}{{ building.level | default(0) }}{{ building.getBuildTimeForLevel(building.getEffectiveLevel() + 1) | buildTime }} - - - {{ building.getResourceRequirementsForLevel(building.getEffectiveLevel() + 1)['wood'] }} - -   - - - {{ building.getResourceRequirementsForLevel(building.getEffectiveLevel() + 1)['clay'] }} - -   - - - {{ building.getResourceRequirementsForLevel(building.getEffectiveLevel() + 1)['iron'] }} - - -
- -
-
-
- -
-

Units

- - - - - - - - - - - - - {% for unit in village.getUnits(village.id, 1, 3) %} - - - - - {% if not unit.isTraveling %} - - - - {% else %} - - {% endif %} - - {% endfor %} - -
TypeAmountBuild TimeResources
{{ unit.type }}{{ unit.amount }} - {{ unit.getBuildTime(1) | buildTime }} - - - - {{ unit.getResourceRequirements(unit, 1)['wood'] }} - -   - - - {{ unit.getResourceRequirements(unit, 1)['clay'] }} - -   - - - {{ unit.getResourceRequirements(unit, 1)['iron'] }} - -   - - - {{ unit.getResourceRequirements(unit, 1)['food'] ?? 0 }} - - -
- - -
-
~traveling~
- -

Supporting Units

- - - - - - - - - - - - - - {% for unit in village.getUnits(village.id, 2) | merge(village.getUnits(village.id, 3)) %} - - - - - - - - - - {% endfor %} - -
TypeAmountOriginLocationTravel Time
{{ unit.type }}{{ unit.amount }}{{ village.get(unit.homeVillageId).name }}{{ not unit.isTraveling ? village.get(unit.residenceVillageId).name : '~traveling~' }}{{ unit.getTravelTime(unit, village.getDistance(unit.getHomeVillage().x, unit.getHomeVillage().x, unit.getResidenceVillage().x, unit.getResidenceVillage().y)) | buildTime }} - {% if not unit.isTraveling %} - {% if unit.homeVillageId == village.id %} -
- - -
- {% else %} -
- - -
- {% endif %} - {% endif %} -
- -

Send Units

-
- - - - - -
-
- - {% if village.getBuilding(village.id, 'Marketplace') %} -

Send Resources

-
- - - - - - -
- {% endif %} -
-
-{% endblock %} diff --git a/views/villages.twig b/views/villages.twig deleted file mode 100644 index bdb87be..0000000 --- a/views/villages.twig +++ /dev/null @@ -1,38 +0,0 @@ -{% extends 'base.twig' %} - -{% block main %} - - - - - - - - - - - - - - - {% for village in villages %} - - - - - - - - - - - {% endfor %} - -
NameCoordinatesWoodClayIronFoodStorageSatisfaction
- - {{ village.name }} - - - { x: {{ village.x }}, y: {{ village.y }} } - {{ village.wood }}{{ village.clay }}{{ village.iron }}{{ village.food }}{{ village.getStorage(village.id).getCapacity() * (25 / 100) }}{{ village.satisfaction }}
-{% endblock %} -- cgit v1.2.3