[0.17.2] Mining-productivity-12 level capped in lua but not in UI/game

Bugs that are actually features.
quyxkh
Smart Inserter
Smart Inserter
Posts: 1032
Joined: Sun May 08, 2016 9:01 am
Contact:

[0.17.2] Mining-productivity-12 level capped in lua but not in UI/game

Post by quyxkh »

Start a sandbox, start researching mining productivity with say this



the mining prod 12 llevel shown in `/c for k,v in pairs(game.player.force.technologies) do _=k:find'mining' and game.print(serpent.line{k,v.level}) end` stops incrementing at 15 and trying to set it in lua gets denied once you reach that, but you can keep researching it through the UI, the labs eat increasing amounts of red+green science per and mining productivity goes up 1%/research. The only effect of the cap seems to be on the value allowed in the lua copy, not the real level.
quyxkh
Smart Inserter
Smart Inserter
Posts: 1032
Joined: Sun May 08, 2016 9:01 am
Contact:

Re: [0.17.2] Mining-productivity-12 level capped in lua but not in UI/game

Post by quyxkh »

Okay, this can go to minor issues (if even that), it only happens when mining-prod-16 gets researched by some means other than finishing mining-prod-12 first, it's a glitch in the scripted-progression machinery, it doesn't happen in normal gameplay.
Post Reply

Return to “Not a bug”