Skip to content

Commit

Permalink
rocket parts
Browse files Browse the repository at this point in the history
  • Loading branch information
bigyihsuan committed May 29, 2016
1 parent 5ec0740 commit 8022833
Show file tree
Hide file tree
Showing 13 changed files with 153 additions and 9 deletions.
2 changes: 2 additions & 0 deletions data.lua
Expand Up @@ -6,6 +6,7 @@ require('prototypes.items.intermediates.inserters')
require('prototypes.items.intermediates.misc-intermediates')
require('prototypes.items.military')
require('prototypes.items.intermediates.modules')
require('prototypes.intermediates.rocket-parts')

require('prototypes.recipes.assemblers')
require('prototypes.recipes.belts')
Expand All @@ -15,6 +16,7 @@ require('prototypes.recipes.inserters')
require('prototypes.recipes.military')
require('prototypes.recipes.misc-intermediates')
require('prototypes.recipes.modules')
require('prototypes.recipes.rocket-parts')

require('prototypes.item-groups')

Expand Down
Binary file added graphics/intermediates/dye/dye-black.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/intermediates/dye/dye-white.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/rocket-parts/lds.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/rocket-parts/rcu-case.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/rocket-parts/rcu-cpu.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/rocket-parts/sat.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion prototypes/item-groups.lua
Expand Up @@ -41,6 +41,13 @@ data:extend({
order = 'ze',
inventory_order = 'ze'
},
{
type = 'item-group',
name = 'CR-rocket-parts'.
icon = '__base__/graphics/icons/rocket-part.png',
order = 'zf',
inventory_order = 'zf',
},
{
type = 'item-subgroup',
name = 'assemblers',
Expand All @@ -51,7 +58,7 @@ data:extend({
type = 'item-subgroup',
name = 'intermediates',
group = 'CR-intermediates',
order = 'z',
order = 'b',
},
{
type = 'item-subgroup',
Expand Down
13 changes: 6 additions & 7 deletions prototypes/items/intermediates/assemblers.lua
Expand Up @@ -4,7 +4,6 @@ data:extend({
flags= { "goes-to-main-inventory" },
name = 'assembling-machine-1-frame',
icon = '__complicated-recipes__/graphics/assemblers/assembling-machine-1-frame.png',
flags= { "goes-to-main-inventory" },
subgroup = 'CR-intermediates',
inventory_order = 'a[assemblers]-a[assembling-machine-1]',
stack_size = 50
Expand All @@ -28,13 +27,13 @@ data:extend({
stack_size = 50
} --[[,
{
type = 'item',
type = 'item',
flags= { "goes-to-main-inventory" },
name = 'assembling-arm',
icon = '__complicated-recipes__/graphics/assemblers/assembling-arm.png',
subgroup = 'assemblers',
inventory_order = 'a[assemblers]-c[assembling-arm]',
stack_size = 50
name = 'assembling-arm',
icon = '__complicated-recipes__/graphics/assemblers/assembling-arm.png',
subgroup = 'assemblers',
inventory_order = 'a[assemblers]-c[assembling-arm]',
stack_size = 50
}
]]
})
18 changes: 18 additions & 0 deletions prototypes/items/intermediates/dyes.lua
Expand Up @@ -26,6 +26,24 @@ data:extend({
inventory_order = 'a[primary]-c',
stack_size = 100
},
{
type = 'item',
flags= { "goes-to-main-inventory" },
name = 'black-dye',
icon = '__complicated-recipes__/graphics/intermediates/dye/dye-black.png',
subgroup = 'CR-dyes',
inventory_order = 'a[primary]-d',
stack_size = 100
},
{
type = 'item',
flags= { "goes-to-main-inventory" },
name = 'white-dye',
icon = '__complicated-recipes__/graphics/intermediates/dye/dye-white.png',
subgroup = 'CR-dyes',
inventory_order = 'a[primary]-e',
stack_size = 100
},
{
type = 'item',
flags= { "goes-to-main-inventory" },
Expand Down
38 changes: 38 additions & 0 deletions prototypes/items/rocket-parts.lua
@@ -0,0 +1,38 @@
data:extend({
{
type = 'item',
name = 'low-density-structure-frame',
flags = {'goes-to-main-inventory'},
icon = '__complicated-recipes__/graphics/rocket-parts/lds.png', --icon directory
subgroup = 'rocket-parts',
order = 'a'
stack_size = 10
},
{
type = 'item',
name = 'rocket-control-unit-case',
flags = {'goes-to-main-inventory'},
icon = '__complicated-recipes__/graphics/rocket-parts/rcu-case.png', --icon directory
subgroup = 'rocket-parts',
order = 'b',
stack_size = 10
},
{
type = 'item',
name = 'rocket-control-unit-CPU',
flags = {'goes-to-main-inventory'},
icon = '__complicated-recipes__/graphics/rocket-parts/rcu-cpu.png', --icon directory
subgroup = 'rocket-parts',
order = 'c',
stack_size = 10
}
{
type = 'item',
name = 'satellite-frame',
flags = {'goes-to-main-inventory'},
icon = '__complicated-recipes__/graphics/rocket-parts/sat.png', --icon directory
subgroup = 'rocket-parts',
order = 'd',
stack_size = 10
}
})
76 changes: 76 additions & 0 deletions prototypes/recipes/rocket-parts.lua
@@ -0,0 +1,76 @@
data:extend({
{
type = 'recipe',
name = 'low-density-structure-frame',
ingredients = {
{'steel-plate', 10},
{'copper-plate', 5},
{'iron-stick', 5},
{'white-dye', 1}
},
result = 'low-density-structure-frame',
energy_required = 10
result_count = 1,
enabled = false --rocket silo
},
{
type = 'recipe',
name = 'rocket-control-unit-case',
ingredients = {
{'plastic-bar', 5},
{'glass', 5},
{'electronic-circuit', 5},
{'black-dye', 1}
},
result = 'rocket-control-unit-case',
energy_required = 10
result_count = 1,
enabled = false --rocket silo
},
{
type = 'recipe',
name = 'rocket-control-unit-CPU',
ingredients = {
{'processing-unit', 5},
{'speed-module-3', 5},
{'copper-cable', 5},
{'red-wire', 5},
{'green-wire', 5}
},
result = 'rocket-control-unit-CPU',
energy_required = 10
result_count = 1,
enabled = false --rocket silo
},
{
type = 'recipe',
name = 'satellite-frame',
ingredients = {
{'low-density-structure', 150},
{'steel-plate', 100},
{'iron-stick', 100}
},
result = 'satellite-frame',
energy_required = 10
result_count = 1,
enabled = false --rocket silo
}
})

data.raw.recipe['low-density-structure'].ingredients = {
{'low-density-structure-frame', 1},
{'white-dye', 1},
{'plastic-bar', 5}
}
data.raw.recipe['rocket-control-unit'].ingredients = {
{'rocket-control-unit-case', 1},
{'rocket-control-unit-CPU', 5},
}
data.raw.recipe['satellite'].ingredients = {
{'satellite-frame', 100},
{'solar-panel', 100},
{'basic-accumulator', 100},
{'radar', 10},
{'rocket-control-unit', 50},
{'rocket-fuel', 50}
}
6 changes: 5 additions & 1 deletion prototypes/technology.lua
Expand Up @@ -31,7 +31,11 @@ recipes = {
['optics'] = 'glass',
['optics'] = 'crushed-stone'
['steel-processing'] = 'high-carbon-iron-plate',
['steel-processing'] = 'raw-steel'
['steel-processing'] = 'raw-steel',
['rocket-silo'] = 'rocket-control-unit-CPU',
['rocket-silo'] = 'rocket-control-unit-case',
['rocket-silo'] = 'satellite-frame',
['rocket-silo'] = 'low-density-structure-frame'
}
--['tech-name'] = 'recipe-name'
addTechnologyRecipes(recipes)

0 comments on commit 8022833

Please sign in to comment.