Cleanup
This commit is contained in:
parent
e11da23987
commit
4627a45cdb
2 changed files with 184 additions and 193 deletions
|
|
@ -21,8 +21,5 @@ require("compatibility/248k")
|
||||||
|
|
||||||
local util = require("data-util");
|
local util = require("data-util");
|
||||||
|
|
||||||
if util.se6() then
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Must be last
|
-- Must be last
|
||||||
util.create_list()
|
util.create_list()
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,6 @@ if mods.Krastorio2 then
|
||||||
util.set_main_product("rare-metals-1", "kr-rare-metals")
|
util.set_main_product("rare-metals-1", "kr-rare-metals")
|
||||||
util.set_main_product("rare-metals-2", "kr-rare-metals")
|
util.set_main_product("rare-metals-2", "kr-rare-metals")
|
||||||
|
|
||||||
|
|
||||||
if util.me.platinum() and util.me.palladium() then
|
if util.me.platinum() and util.me.palladium() then
|
||||||
util.replace_some_product("rare-metals-1", "kr-rare-metals", 2, "platinum-powder", 2, { force = true })
|
util.replace_some_product("rare-metals-1", "kr-rare-metals", 2, "platinum-powder", 2, { force = true })
|
||||||
util.replace_some_product("rare-metals-1", "kr-rare-metals", 2, "palladium-powder", 2, { force = true })
|
util.replace_some_product("rare-metals-1", "kr-rare-metals", 2, "palladium-powder", 2, { force = true })
|
||||||
|
|
@ -74,18 +73,17 @@ elseif util.me.palladium() then
|
||||||
{ type = "item", name = "copper-plate", amount = 2, probability = 0.75 },
|
{ type = "item", name = "copper-plate", amount = 2, probability = 0.75 },
|
||||||
{ type = "item", name = "palladium-powder", amount = 1, probability = 0.5 },
|
{ type = "item", name = "palladium-powder", amount = 1, probability = 0.5 },
|
||||||
}
|
}
|
||||||
else -- should never happen
|
else
|
||||||
|
-- should never happen
|
||||||
results = {
|
results = {
|
||||||
{ type = "item", name = "copper-plate", amount = 2 },
|
{ type = "item", name = "copper-plate", amount = 2 },
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
if data.raw.resource["copper-ore"] then
|
if data.raw.resource["copper-ore"] then
|
||||||
if mods["space-exploration"] then
|
if mods["space-exploration"] then
|
||||||
-- decrease richness of copper a bit (ok if it stacks with aluminum)
|
-- decrease richness of copper a bit (ok if it stacks with aluminum)
|
||||||
data.raw.resource["copper-ore"].autoplace.richness_expression =
|
data.raw.resource["copper-ore"].autoplace.richness_expression = data.raw.resource["copper-ore"].autoplace.richness_expression .. "*(3/4)"
|
||||||
data.raw.resource["copper-ore"].autoplace.richness_expression .. "*(3/4)"
|
|
||||||
else
|
else
|
||||||
log("Replacing vanilla copper-ore autoplace")
|
log("Replacing vanilla copper-ore autoplace")
|
||||||
local resource_autoplace = require('resource-autoplace');
|
local resource_autoplace = require('resource-autoplace');
|
||||||
|
|
@ -124,8 +122,7 @@ data:extend({
|
||||||
map_color = { r = 0.9, g = 0.5, b = 0.4 },
|
map_color = { r = 0.9, g = 0.5, b = 0.4 },
|
||||||
tree_removal_probability = 0.7,
|
tree_removal_probability = 0.7,
|
||||||
tree_removal_max_distance = 32 * 32,
|
tree_removal_max_distance = 32 * 32,
|
||||||
minable =
|
minable = {
|
||||||
{
|
|
||||||
hardness = 1,
|
hardness = 1,
|
||||||
mining_particle = "copper-ore-particle",
|
mining_particle = "copper-ore-particle",
|
||||||
mining_time = 1,
|
mining_time = 1,
|
||||||
|
|
@ -148,10 +145,8 @@ data:extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
stage_counts = { 15000, 9500, 5500, 2900, 1300, 400, 150, 80 },
|
stage_counts = { 15000, 9500, 5500, 2900, 1300, 400, 150, 80 },
|
||||||
stages =
|
stages = {
|
||||||
{
|
sheet = {
|
||||||
sheet =
|
|
||||||
{
|
|
||||||
filename = "__bzgold2__/graphics/entity/ores/hr-rich-copper-ore.png",
|
filename = "__bzgold2__/graphics/entity/ores/hr-rich-copper-ore.png",
|
||||||
priority = "extra-high",
|
priority = "extra-high",
|
||||||
size = 128,
|
size = 128,
|
||||||
|
|
@ -178,7 +173,6 @@ data:extend({
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
data:extend({
|
data:extend({
|
||||||
{
|
{
|
||||||
type = "recipe",
|
type = "recipe",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue