big update to 2.0/SA

This commit is contained in:
Brevven 2024-12-31 00:48:29 -08:00
parent f82dca2023
commit 01d64fea85
16 changed files with 341 additions and 78 deletions

View file

@ -1,20 +1,27 @@
local resource_autoplace = require('resource-autoplace');
local noise = require('noise');
local util = require("data-util");
resource_autoplace.initialize_patch_set("tin-ore", true)
data.raw.planet.nauvis.map_gen_settings.autoplace_controls["tin-ore"] = {}
data.raw.planet.nauvis.map_gen_settings.autoplace_settings.entity.settings["tin-ore"] = {}
if mods.tenebris then
data.raw.planet.tenebris.map_gen_settings.autoplace_controls["tin-ore"] = {}
data.raw.planet.tenebris.map_gen_settings.autoplace_settings.entity.settings["tin-ore"] = {}
end
data:extend({
{
type = "autoplace-control",
category = "resource",
name = "tin-ore",
richness = true,
order = "b-e"
},
{
type = "noise-layer",
name = "tin-ore"
order = "a-t"
},
-- {
-- type = "noise-layer",
-- name = "tin-ore"
-- },
{
type = "resource",
icon_size = 64, icon_mipmaps = 3,
@ -27,7 +34,7 @@ data:extend({
{
hardness = 1,
mining_particle = "copper-ore-particle",
mining_time = 1,
mining_time = .75,
result = "tin-ore"
},
collision_box = {{ -0.1, -0.1}, {0.1, 0.1}},
@ -35,7 +42,7 @@ data:extend({
autoplace = resource_autoplace.resource_autoplace_settings{
name = "tin-ore",
order = "b-z",
order = "a-t",
base_density = 3,
base_spots_per_km2 = 1,
has_starting_area_placement = true,
@ -44,25 +51,15 @@ data:extend({
},
stage_counts = {15000, 9500, 5500, 2900, 1300, 400, 150, 80},
stages =
{
sheet =
{
filename = "__bztin__/graphics/entity/ores/tin-ore.png",
priority = "extra-high",
size = 64,
frame_count = 8,
variation_count = 8,
hr_version =
{
filename = "__bztin__/graphics/entity/ores/hr-tin-ore.png",
stages = {
sheet = {
filename = "__bztin__/graphics/entity/ores/hr-tin-ore.png",
priority = "extra-high",
size = 128,
frame_count = 8,
variation_count = 8,
scale = 0.5
}
}
},
},
{
@ -71,10 +68,10 @@ data:extend({
icon_size = 64, icon_mipmaps = 3,
icon = "__bztin__/graphics/icons/tin-ore.png",
pictures = {
{filename="__bztin__/graphics/icons/tin-ore.png", size=64, scale=0.25},
{filename="__bztin__/graphics/icons/tin-ore-1.png", size=64, scale=0.25},
{filename="__bztin__/graphics/icons/tin-ore-2.png", size=64, scale=0.25},
{filename="__bztin__/graphics/icons/tin-ore-3.png", size=64, scale=0.25},
{filename="__bztin__/graphics/icons/tin-ore.png", size=64, scale=0.5},
{filename="__bztin__/graphics/icons/tin-ore-1.png", size=64, scale=0.5},
{filename="__bztin__/graphics/icons/tin-ore-2.png", size=64, scale=0.5},
{filename="__bztin__/graphics/icons/tin-ore-3.png", size=64, scale=0.5},
},
subgroup = "raw-resource",
order = "t-c-a",