The main point for this civilization is the implementation of Flemish Revolution.
At first glance, the implementation seems straightforward: use the upgrade effect to turn villagers into flemish militia. However, this also affects future villagers, rendering the civilization unable to create villagers after the technology is researched. We can either upgrade the villagers again to another villager without converting flemish militia into villagers back. Definitive Edition solved this issue by introducing a flag to upgrade current existing units or all present and future ones.
In order to separate present villagers from future ones, we use the death unit. When flemish revolution is researched, it upgrades villagers into a dummy unit that dies instantly and turns into the actual flemish militia. This way, we can further upgrade villagers into a new villager unit without affecting the ones that turned into flemish militia.
The last issue is how to trigger a technology that upgrades villagers into new villagers, disabling the effect of flemish revolution. This is done in a very clever way by tricking the player to do it.
When flemish revolution is researched, the villager icon is covered with a new technology that has the villager's icon, description and hotkey but no cost or research time. This technology upgrades villagers again to a new villager unit but does not affect flemish militia, that are the result of dead units. When players want to rebuild the economy, they queue a bunch of villagers and unknowingly trigger the technology with the first click.
At first glance, the implementation seems straightforward: use the upgrade effect to turn villagers into flemish militia. However, this also affects future villagers, rendering the civilization unable to create villagers after the technology is researched. We can either upgrade the villagers again to another villager without converting flemish militia into villagers back. Definitive Edition solved this issue by introducing a flag to upgrade current existing units or all present and future ones.
In order to separate present villagers from future ones, we use the death unit. When flemish revolution is researched, it upgrades villagers into a dummy unit that dies instantly and turns into the actual flemish militia. This way, we can further upgrade villagers into a new villager unit without affecting the ones that turned into flemish militia.
The last issue is how to trigger a technology that upgrades villagers into new villagers, disabling the effect of flemish revolution. This is done in a very clever way by tricking the player to do it.
When flemish revolution is researched, the villager icon is covered with a new technology that has the villager's icon, description and hotkey but no cost or research time. This technology upgrades villagers again to a new villager unit but does not affect flemish militia, that are the result of dead units. When players want to rebuild the economy, they queue a bunch of villagers and unknowingly trigger the technology with the first click.