Win 10 (64-bit), 1920x1200


1.   On the turn a new empire plan takes effect (i.e. the 20k + 1st turn, for k > 0), industry is not fully applied, contradicting its previous turn's build queue projections.


================================================

1.a) Version V1.5.13 S3 (64-bit)

Empire plan discards x > 0 pop worth of industry 

================================================


Cultist, Endless/Normal, no mods.


- On turn 20k + 0, I have a multi-turn construction in a city's build queue (e.g. a Borough Streets).  I assign my Empire Plan to whatever (doesn't seem to matter).  I micromanage my city's pop in industry until I'm at the 1-turn breakpoint (i.e. with n pop in industry, the build queue says "1 turn to complete", but with n-1 pop in industry, it goes to "2 turns").


- Click End Turn to advance to turn 20k + 1.  My new empire plan goes into effect (even if it's identical to the previous plan).  My city does not complete the "1 turn to complete" item.  Looking at its build queue, that item is about 99.5% done, and could be bought out for like 25 dust.  But it's not done.


So an empire plan causes the build queue to flat-out lie to the player.


[x] Work-around: Reload, move +1 more pop in industry (= n+1 total, where n is the "1-turn" breakpoint).  End Turn, it still fails to complete.

[x] n+2 pop in industry: still fails.

[x] ... (etc)

[x] n+x pop in industry: finally it builds the "1 turn to complete" object in 1 turn.  x * ind is the work that got thrown away.


[_] Conjecture: When an empire plan takes effect, it overwrites some data incorrectly or out-of-sequence, causing some previously-computed work to be lost.  This is equivalent to losing x ~ 4 pop worth of industry.


Reproducibility: Unclear.  I've noticed it only once, but maybe it happens every time you're at the 1-turn-to-complete breakpoint on the same turn as an empire plan.


================================================

1.b) Version V1.5.14 S3 (64-bit)

Empire plan discards activated industry stockpile's effect

================================================


Cultist, Endless/Normal, no mods.


- On turn 80, I finish Unskilled Labor, activate industry stockpile for 600i, and science stockpile for 600i.

- My lone city is now at 850i.  This is enough to finish the current 1 archer, fully build a 2nd archer (costs 445i), and start a 3rd archer.


- I assign an Empire Plan.  (details don't really matter, but it was tiers 1 (economic)/3/3/3, identical to my turn 60 plan.)


- On turn 81, my city builds only 1 archer, and is only ~1/3 done with the 2nd archer.  It's exactly as if it spent about 250i, instead of (250 + 600)i.

- Science did get the full +(250 + 600), so the science stockpile worked correctly.


[_] So the activated industry stockpile had no effect that turn.


Reproducibility: Unknown.


Conjecture: It's a race condition, causing an overwrite?

[_] empire plan computation takes a snapshot of industry ...

[_] population in industry is computed

[_] industry stockpile is added

[_] ... empire plan writes its snapshot, trashing all previous.