If an infinite technology prototype is named "blabla-N" and has max_level=K with K < (N-1) then calling research_all_technologies will freeze the game.
Reproduction
Code: Select all
data.raw.technology['physical-projectile-damage-7'].max_level=1
Code: Select all
/c game.player.force.research_all_technologies()
Expected Behavior
Max level should be treated as ((N-1) + K) not just K i guess? Not sure.