infinite research (0.15 like)


add (almost) infinite research like planned in 0.15. see friday fact #161. this mod add infinite research for upgrading robots, turrets, weapons and researching speed.

Content
6 years ago
0.14
15
Combat

i I made a version that includes Robot Cargo Size and Stack Inserter Bonus

7 years ago

Because I like being able to improve those too, I added some code for Robot Cargo Size and Stack Inserter Bonus.

I figured cargo size is really OP, so I made it cost 3 times as much each level (rather than twice), and consequently limited the levels to 10 since higher levels cause strange problems with the research cost.

I made the stack inserter go up by 2 every time (like the last several vanilla researches), and the normal inserter bonus go up by 1 every 5 tech levels (starting at 10).

I'll make a second post here with the code, if you wish to copy it. The hardest part was the if statement for whether or not to increase the normal inserter bonuses.

7 years ago

-- robot carrying capacity
techLevel = 3
techModifier = 1
techModifierDelta = 0
researchCount = 450

for i = 4 , 10 do
techLevel = techLevel + 1;
techModifier = techModifier + techModifierDelta
researchCount = researchCount + researchCount + researchCount

<pre>data:extend({ { type = "technology", name = "worker-robots-storage-"..techLevel, icon = "__base__/graphics/technology/worker-robots-storage.png", effects = { { type = "worker-robot-storage", modifier = techModifier } }, prerequisites = {"worker-robots-storage-"..(techLevel - 1)}, unit = { count = researchCount, ingredients = { {"alien-science-pack", 1}, {"science-pack-1", 1}, {"science-pack-2", 1}, {"science-pack-3", 1}, }, time = 60 }, upgrade = true, order = "c-m-d" }, }) </pre>

end

-- Inserter Capacity Bonus
techLevel = 7
techModifier = 2
techModifierDelta = 1
researchCount = 600

for i = 8 , 20 do
techLevel = techLevel + 1;
researchCount = researchCount + researchCount

<pre>if i % 5 == 0 then data:extend({ { type = "technology", name = "inserter-capacity-bonus-"..techLevel, icon = "__base__/graphics/technology/inserter-capacity.png", effects = { { type = "stack-inserter-capacity-bonus", modifier = techModifier }, { type = "inserter-stack-size-bonus", modifier = techModifierDelta } }, prerequisites = {"inserter-capacity-bonus-"..(techLevel - 1)}, unit = { count = researchCount, ingredients = { {"science-pack-1", 4}, {"science-pack-2", 4}, {"science-pack-3", 3}, {"alien-science-pack", 2}, }, time = 30 }, upgrade = true, order = "c-m-d" }, }) else data:extend({ { type = "technology", name = "inserter-capacity-bonus-"..techLevel, icon = "__base__/graphics/technology/inserter-capacity.png", effects = { { type = "stack-inserter-capacity-bonus", modifier = techModifier } }, prerequisites = {"inserter-capacity-bonus-"..(techLevel - 1)}, unit = { count = researchCount, ingredients = { {"science-pack-1", 4}, {"science-pack-2", 4}, {"science-pack-3", 3}, {"alien-science-pack", 2}, }, time = 30 }, upgrade = true, order = "c-m-d" }, }) end </pre>

New response