I propose to not rewrite something (new bugs will arrive), it’s just to add “fort” to “ofAll” to all dwellings 1-7. It’s easiest and most reasoned fix.
I have at least one town where fort is not present at all, so buildings builded without it.
CASTLE WAS:
“dwellingLvl1”: { “id” : 30, “requires” : “fort” ] },
“dwellingLvl2”: { “id” : 31, “requires” : “dwellingLvl1” ] },
“dwellingLvl3”: { “id” : 32, “requires” : “dwellingLvl4” ] },
“dwellingLvl4”: { “id” : 33, “requires” : “allOf”, “blacksmith” ], “dwellingLvl1” ] ] },
“dwellingLvl5”: { “id” : 34, “requires” : “allOf”, “mageGuild1” ], “dwellingLvl4” ] ] },
“dwellingLvl6”: { “id” : 35, “requires” : “special2” ] },
“dwellingLvl7”: { “id” : 36, “requires” : “dwellingLvl5” ] },
NEEDED TO CORRECT
"dwellingLvl1": { “id” : 30, “requires” : “fort” ] },
“dwellingLvl2”: { “id” : 31, “requires” : “dwellingLvl1” ,“fort”] },
“dwellingLvl3”: { “id” : 32, “requires” : “dwellingLvl4”,“fort”] ] },
“dwellingLvl4”: { “id” : 33, “requires” : “allOf”,“fort”], “blacksmith” ], “dwellingLvl1” ] ] },
“dwellingLvl5”: { “id” : 34, “requires” : “allOf”,“fort”], “mageGuild1” ], “dwellingLvl4” ] ] },
“dwellingLvl6”: { “id” : 35, “requires” : “special2”,“fort” ] },
“dwellingLvl7”: { “id” : 36, “requires” : “dwellingLvl5”,“fort” ] },
This is needed for “dwellingLv1”-“dwellingLv7” only.
Pleeeeesee, do not rewrite currect buildings logic, it’s ideal!