add rough diamonds
This commit is contained in:
parent
c951cc3570
commit
a0e957fea3
19 changed files with 73 additions and 9 deletions
|
|
@ -39,7 +39,7 @@ I try to stick to the vanilla factorio spirit, with a slight edge towards more r
|
|||
|
||||
----
|
||||
|
||||
**CAVEAT** This is still an alpha version. Large balance changes, breaking changes, and many others may happen until it is in beta. This is my most ambitious "resource" mod to date, so it may take a little time to settle.
|
||||
**CAVEAT** This is still an alpha version. Large balance changes, breaking changes, and many others may happen until it is in beta. There may be deadlocks, I'll fix them as I find them. This is my most ambitious "resource" mod to date, so it may take a little time to settle. As always, feedback and suggestions are most welcome.
|
||||
|
||||
----
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,6 @@ data:extend({
|
|||
} or
|
||||
{
|
||||
enabled = false,
|
||||
--energy_required = 128/45,
|
||||
energy_required = 0.5,
|
||||
ingredients = {{"flake-graphite", 1}},
|
||||
result = "graphite"
|
||||
|
|
@ -54,7 +53,6 @@ data:extend({
|
|||
expensive =
|
||||
{
|
||||
enabled = false,
|
||||
--energy_required = 256/45,
|
||||
energy_required = 1,
|
||||
ingredients = {{"flake-graphite", 2}},
|
||||
result = "graphite"
|
||||
|
|
@ -64,7 +62,6 @@ data:extend({
|
|||
type = "technology",
|
||||
name = "graphite-processing",
|
||||
icon_size = 128,
|
||||
-- icon = "__bzcarbon__/graphics/technology/graphite-processing.png",
|
||||
icon = "__bzcarbon__/graphics/icons/graphite.png",
|
||||
effects =
|
||||
{
|
||||
|
|
@ -128,9 +125,49 @@ data:extend({
|
|||
result = "diamond"
|
||||
}
|
||||
},
|
||||
util.me.use_rough_diamond() and {
|
||||
type = "recipe",
|
||||
name = "diamond-processing",
|
||||
category = "advanced-crafting",
|
||||
subgroup = "raw-material",
|
||||
order = "d[diamond]",
|
||||
icons = (mods["Krastorio2"] and
|
||||
{
|
||||
{ icon = "__bzcarbon__/graphics/icons/diamond.png", icon_size = 128},
|
||||
{ icon = "__bzcarbon__/graphics/icons/rough-diamond.png", icon_size = 64, scale=0.25, shift= {-8, -8}},
|
||||
} or {{ icon = "__bzcarbon__/graphics/icons/diamond.png", icon_size = 128}}),
|
||||
normal = (mods["Krastorio2"] and
|
||||
{
|
||||
enabled = false,
|
||||
energy_required = 20,
|
||||
ingredients = {{"rough-diamond", 1}},
|
||||
results = {
|
||||
{type="item", name= "diamond", amount=1, probability=0.8},
|
||||
{type="item", name= "stone", amount=1, probability=0.2}
|
||||
},
|
||||
} or
|
||||
{
|
||||
enabled = false,
|
||||
energy_required = 20,
|
||||
ingredients = {{"rough-diamond", 1}},
|
||||
results = {
|
||||
{type="item", name= "diamond", amount=1, probability=0.8},
|
||||
{type="item", name= "stone", amount=1, probability=0.2}
|
||||
},
|
||||
}),
|
||||
expensive =
|
||||
{
|
||||
enabled = false,
|
||||
energy_required = 40,
|
||||
ingredients = {{"rough-diamond", 1}},
|
||||
result = "diamond"
|
||||
}
|
||||
} or nil,
|
||||
})
|
||||
data:extend({
|
||||
{
|
||||
type = "technology",
|
||||
name = "synthetic-diamond-processing",
|
||||
name = "diamond-processing",
|
||||
icon_size = 128,
|
||||
icon = "__bzcarbon__/graphics/icons/diamond.png",
|
||||
effects =
|
||||
|
|
@ -139,6 +176,10 @@ data:extend({
|
|||
type = "unlock-recipe",
|
||||
recipe = "synthetic-diamond"
|
||||
},
|
||||
util.me.use_rough_diamond() and {
|
||||
type = "unlock-recipe",
|
||||
recipe = "diamond-processing"
|
||||
} or nil,
|
||||
},
|
||||
unit =
|
||||
{
|
||||
|
|
@ -154,7 +195,8 @@ data:extend({
|
|||
prerequisites = {"chemical-science-pack"},
|
||||
order = "b-b"
|
||||
},
|
||||
|
||||
})
|
||||
data:extend({
|
||||
-- graphene
|
||||
{
|
||||
type = "item",
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ for i, entity in pairs(data.raw["assembling-machine"]) do
|
|||
end
|
||||
|
||||
-- furnace recipe rework, remove crucible ingredients
|
||||
for i, furnace in pairs(furnaces) do
|
||||
for i, furnace in pairs(util.me.furnaces) do
|
||||
for j, ingredient in pairs(util.me.crucible_ingredients) do
|
||||
util.remove_ingredient(furnace, ingredient)
|
||||
end
|
||||
|
|
|
|||
2
data.lua
2
data.lua
|
|
@ -1,5 +1,7 @@
|
|||
require("graphite")
|
||||
require("graphite-particle")
|
||||
require("diamond")
|
||||
require("diamond-particle")
|
||||
|
||||
require("carbon-recipe")
|
||||
require("carbon-recipe-k2") -- must be after carbon-recipe
|
||||
|
|
|
|||
BIN
graphics/entity/ores/diamond.png
Normal file
BIN
graphics/entity/ores/diamond.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 551 KiB |
BIN
graphics/entity/ores/hr-diamond.png
Normal file
BIN
graphics/entity/ores/hr-diamond.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2 MiB |
BIN
graphics/entity/ores/hr-diamond.xcf
Normal file
BIN
graphics/entity/ores/hr-diamond.xcf
Normal file
Binary file not shown.
BIN
graphics/icons/rough-diamond-1.png
Normal file
BIN
graphics/icons/rough-diamond-1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
BIN
graphics/icons/rough-diamond-1.xcf
Normal file
BIN
graphics/icons/rough-diamond-1.xcf
Normal file
Binary file not shown.
BIN
graphics/icons/rough-diamond-2.png
Normal file
BIN
graphics/icons/rough-diamond-2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
BIN
graphics/icons/rough-diamond-2.xcf
Normal file
BIN
graphics/icons/rough-diamond-2.xcf
Normal file
Binary file not shown.
BIN
graphics/icons/rough-diamond-3.png
Normal file
BIN
graphics/icons/rough-diamond-3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
BIN
graphics/icons/rough-diamond-3.xcf
Normal file
BIN
graphics/icons/rough-diamond-3.xcf
Normal file
Binary file not shown.
BIN
graphics/icons/rough-diamond.png
Normal file
BIN
graphics/icons/rough-diamond.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
BIN
graphics/icons/rough-diamond.xcf
Normal file
BIN
graphics/icons/rough-diamond.xcf
Normal file
Binary file not shown.
|
|
@ -1,11 +1,14 @@
|
|||
[entity-name]
|
||||
graphite=Graphite
|
||||
diamond=Diamond
|
||||
|
||||
[autoplace-control-names]
|
||||
graphite=[item=flake-graphite] Graphite
|
||||
diamond=[item=rough-diamond] Diamond
|
||||
|
||||
[item-name]
|
||||
flake-graphite=Flake graphite
|
||||
rough-diamond=Rough diamond
|
||||
graphite=Graphite
|
||||
graphite-dust=Graphite dust
|
||||
enriched-lead=Enriched lead
|
||||
|
|
@ -16,20 +19,23 @@ graphene=Graphene
|
|||
fullerenes=Fullerenes
|
||||
nanotubes=Nanotubes
|
||||
carbon-black=Carbon black
|
||||
crucible=Crucible
|
||||
|
||||
[item-description]
|
||||
flake-graphite=Can be processed into graphite
|
||||
rough-diamond=Can be processed into useful diamonds
|
||||
crucible=A modernized classic for holding coffee
|
||||
|
||||
[technology-name]
|
||||
graphite-processing=Graphite processing
|
||||
synthetic-diamond-processing=Synthetic diamond processing
|
||||
diamond-processing=Diamond processing
|
||||
graphene=Graphene
|
||||
fullerenes=Fullerenes
|
||||
nanotubes=Carbon nanotubes
|
||||
|
||||
[technology-description]
|
||||
graphite-processing=Process flake graphite into usable graphite
|
||||
synthetic-diamond-processing=Process graphite into synthetic diamonds. Used for grinding, drilling, high tech electronics, etc.
|
||||
diamond-processing=Process or create diamonds. Used for grinding, drilling, high tech electronics, etc.
|
||||
graphene=A useful nanomaterial made from simple graphite
|
||||
fullerenes=Isolate fullerenes by zapping carbon
|
||||
nanotubes=A useful advanced material
|
||||
|
|
@ -38,6 +44,7 @@ nanotubes=A useful advanced material
|
|||
graphite=__ITEM__graphite__
|
||||
graphite-dust=__ITEM__graphite-dust__
|
||||
synthetic-diamond=__ITEM__diamond__
|
||||
diamond-processing=__ITEM__diamond__
|
||||
graphene=__ITEM__graphene__
|
||||
heavy-water-graphene=[fluid=heavy-water] with __ITEM__graphene__
|
||||
fullerenes=__ITEM__fullerenes
|
||||
|
|
@ -55,8 +62,10 @@ graphite-carbon-black=Convert excess carbon black to graphite at a low ratio.
|
|||
bzcarbon-recipe-bypass=Bypass recipes
|
||||
bzcarbon-enable-fullerenes=Enable fullerenes & nanotubes
|
||||
bzcarbon-enable-carbon-black=Enable carbon black
|
||||
bzcarbon-enable-rough-diamond=Enable diamond mining
|
||||
|
||||
[mod-setting-description]
|
||||
bzcarbon-recipe-bypass=Skip modifying these recipes (comma-separated list).
|
||||
bzcarbon-enable-fullerenes=Enable the fullerenes & nanotubes intermediate products.\nFullerenes are used primarily in bio-related things. Nanotubes for structures.
|
||||
bzcarbon-enable-carbon-black=Enable carbon black byproduct. Primarily used to make plastics.
|
||||
bzcarbon-enable-rough-diamond=Enables diamond ore patches for new games.
|
||||
|
|
|
|||
4
me.lua
4
me.lua
|
|
@ -10,6 +10,10 @@ function me.use_carbon_black()
|
|||
return me.get_setting("bzcarbon-enable-carbon-black") == "yes"
|
||||
end
|
||||
|
||||
function me.use_rough_diamond()
|
||||
return mods["rso-mod"] or me.get_setting("bzcarbon-enable-rough-diamond") == "yes"
|
||||
end
|
||||
|
||||
function me.get_setting(name)
|
||||
if settings.startup[name] == nil then
|
||||
return nil
|
||||
|
|
|
|||
|
|
@ -20,4 +20,11 @@ data:extend({
|
|||
default_value = "no",
|
||||
allowed_values = {"no", "yes"},
|
||||
},
|
||||
{
|
||||
type = "string-setting",
|
||||
name = "bzcarbon-enable-rough-diamond",
|
||||
setting_type = "startup",
|
||||
default_value = mods["rso-mod"] and "yes" or "no",
|
||||
allowed_values = {"no", "yes"},
|
||||
},
|
||||
})
|
||||
|
|
|
|||
BIN
thumbnail.xcf
BIN
thumbnail.xcf
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue