JustusAvramenko / delenda_est

An overhaul mod for 0 A.D. Empires Ascendant
https://wildfiregames.com/forum/index.php?/forum/448-delenda-est/
44 stars 16 forks source link

Fix typedef in farming_water_management template #50

Closed nwtour closed 3 years ago

nwtour commented 3 years ago

In middlegame generated error: ERROR: Error in timer on entity 7468, IID80, function ProgressTimeout: TypeError: mod.affects.split is not a function DeriveModificationsFromTech@globalscripts/ModificationTemplates.js:70:34 TechnologyManager.prototype.ResearchTechnology@simulation/components/TechnologyManager.js:228:52 ProductionQueue.prototype.ProgressTimeout@simulation/components/ProductionQueue.js:874:26 Timer.prototype.OnUpdate@simulation/components/Timer.js:139:44

scale

Problem in type definition "affect", should be plain string. Example in maingame https://github.com/0ad/0ad/blob/master/binaries/data/mods/public/simulation/data/technologies/civbonuses/gaul_cavalry.json

Patch fix this warnings

JustusAvramenko commented 3 years ago

Thank you. Merged. Will go into DE 25B when I release that.