Planetary Governor · published · build 25808727
changes to opentest branch only.
changed how resource deposits appear at the top of the productions tab on a sector's window, from a list of names to inline images with full names in a tooltip.
behind the scenes changes to deposits.
made some dicts e.g. productionStockpile and others use production transformation so save files store name not int in case int IDs change from say updates or mods.
updated deposits to use int IDs and get names from existing productions names, and reworked code using those IDs to work with them. this includes production base tags and planet type modifiers also being changed behind the scenes.
spent a lot of time fixing a weird bug that didn't seem to have any effect until these changes. it was a divide by zero that was producing a NaN value but this should have occured before. it only started occuring, as far as i can tell after a lot of going over the code, because of a now made bad comparison giving a wrong modifier to building starting amounts. that meant enough production types were not being produced that whole groups had no production so a division that used production amounts by groups when calculating consumption demands could now divide by zero where it couldn't before. thank you for coming to my ted talk.