Innital concept
Innital draft for diffrent shaped science packs.
This commit is contained in:
commit
f58ffe3d56
14 changed files with 152 additions and 0 deletions
43
src/data.lua
Normal file
43
src/data.lua
Normal file
|
@ -0,0 +1,43 @@
|
|||
local items = {
|
||||
["automation-science-pack"] = {
|
||||
icon_size = 256,
|
||||
icon = "__cb-science__/graphics/red.png",
|
||||
},
|
||||
["logistic-science-pack"] = {
|
||||
icon_size = 256,
|
||||
icon = "__cb-science__/graphics/green.png",
|
||||
},
|
||||
["military-science-pack"] = {
|
||||
icon_size = 256,
|
||||
icon = "__cb-science__/graphics/black.png",
|
||||
},
|
||||
["chemical-science-pack"] = {
|
||||
icon_size = 256,
|
||||
icon = "__cb-science__/graphics/cyan.png",
|
||||
},
|
||||
["production-science-pack"] = {
|
||||
icon_size = 256,
|
||||
icon = "__cb-science__/graphics/purple.png",
|
||||
},
|
||||
["utility-science-pack"] = {
|
||||
icon_size = 256,
|
||||
icon = "__cb-science__/graphics/yellow.png",
|
||||
},
|
||||
["space-science-pack"] = {
|
||||
icon_size = 256,
|
||||
icon = "__cb-science__/graphics/white.png",
|
||||
},
|
||||
}
|
||||
|
||||
for name, definition in pairs(items) do
|
||||
print(name)
|
||||
for property, value in pairs(definition) do
|
||||
if data.raw.technology[name] then
|
||||
print("setting tech "..name.." property "..property)
|
||||
data.raw.technology[name][property] = value
|
||||
end
|
||||
if data.raw.tool[name] then
|
||||
data.raw.tool[name][property] = value
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue