The-Triumvirate / Imperium-Universalis

https://discord.com/invite/k5Ax7Adzqz
19 stars 11 forks source link

Different capacities and growths between Main and Debug events #391

Closed DaniloBF closed 1 year ago

DaniloBF commented 1 year ago

Currently, the Debug calculation event for capacities and growth is overcalculating urban capacity, due to the values of some buildings in the PG_urban_buildings_details scripted effect (common/scripted_effects/popgrowth_effects.txt):

The Main event also has an issue when it calculates how much of rural capacity should go to urban capacity (events/population_capacity.txt). In lines 396, 397 and 398, the effect inside each building trigger is set_variable, instead of change_variable, and it is currently overriding the transfer value from institutions.

mrkcosta commented 1 year ago

Thanks for noticing, I have updated the values and now the "detailed" scripted effect matches the "normal" one.