Using multiple integers for Techtree Requirements is now broken/bugged.
Previously, you could set multiple techtree requirements levels.
Like:
Techtree - Requirements: Iron Forged Swords, Black Gunpowder
Techtree - Requirement - Levels: 2,1
Now if you put multiple integers in Requirement - Levels like it will ONLY consider the first requirement. Though it falsely lists the other requirements in the tooltip, the tech gets unlocked once the first Requirement is met.
- If you put it no integers at all, Requirements will be considered properly (with a Required Level of 1 applying to all Requirements).
- If you put in a single integer, it will apply to all Tech Requirements listed.
This is a problem as many strategy maps use tech trees that utilize this.
Visual:
https://i.imgur.com/QT8NzLl.png
Reproduction:
- Select footman in the editor
- Go down to techtree - Requirements
- Add Iron swords and Black Gunpowder
- Go down to techtree - Levels
- Add 2 and then add 1 in a new entry
Current behavior: Now go in game and research a single one of the upgrades the unit requires, you will be able to build it before you have researched both.
Expected behavior: It should not allow you to build the unit until both researches at the specified level have been researched.