1
0
mirror of https://github.com/Wyrrrd/Rocket_Turrets.git synced 2026-03-25 15:19:49 +01:00

Reorganizing

- Moved integrations to separate directory
- Simplified check for bobplates
- Merged MK1 turret with vanilla turret
This commit is contained in:
Wyrrrd
2020-03-11 21:26:03 +01:00
parent 170056d8f7
commit 0c0de13bd0
18 changed files with 744 additions and 839 deletions

View File

@@ -5,26 +5,12 @@ require("prototypes.item")
require("prototypes.recipe")
require("prototypes.technology")
local bob_flag = data.raw.item["steel-gear-wheel"] and data.raw.item["steel-bearing"] and data.raw.item["invar-alloy"] and data.raw.item["titanium-plate"] and data.raw.item["titanium-gear-wheel"] and data.raw.item["nitinol-alloy"] and data.raw.item["nitinol-gear-wheel"] and data.raw.technology["invar-processing"] and data.raw.technology["titanium-processing"] and data.raw.technology["nitinol-processing"]
local adv_flag = data.raw.item["advanced-processing-unit"]
data:extend({
rocket_entity,
rocket_item,
rocket_recipe,
rocket_tech
})
if bob_flag then
-- if bobplates enabled, load tiered turrets
data:extend({
entity1,item1,recipe1,tech1,
entity2,item2,recipe2,tech2,
entity3,item3,recipe3,tech3,
entity4,item4,recipe4,tech4,
entity5,item5,tech5
})
if adv_flag then
data:extend({recipe5_2})
else
data:extend({recipe5_1})
end
else
-- if not, load single boring gray turret
data:extend({
entity0,item0,recipe0,tech0
})
end
-- integrations
require("integrations.bobplates.data")