Split mod

This commit is contained in:
Simon Brodtmann 2025-11-11 23:58:49 +01:00
parent 4ea352f466
commit f47a9121e9
101 changed files with 803 additions and 786 deletions

47
lignumis-base/info.json Normal file
View file

@ -0,0 +1,47 @@
{
"name": "lignumis-base",
"version": "1.1.0",
"title": "Lignumis - Base",
"description": "Base mod for Lignumis with less dependencies.",
"author": "cackling fiend",
"homepage": "https://discord.gg/ufvFUJtVwk",
"factorio_version": "2.0",
"space_travel_required": true,
"dependencies": [
"base",
"space-age >= 2.0.53",
"bioprocessing-tab",
"cf-lib >= 0.0.13",
"flib",
"lignumis-assets >= 1.0.3",
"mf-buildings >= 1.0.7",
"mf-core >= 1.0.3",
"mf-logistics >= 1.0.1",
"PlanetsLib >= 1.1.26",
"pollution-as-surface-property",
"Wood-Walls >= 1.2.0",
"?aai-industry",
"?aai-loaders",
"?aai-loaders-sane",
"?any-planet-start",
"?atan-nuclear-science",
"?crushing-industry",
"?Diversitree",
"?fulgora-coralmium-agriculture",
"?gleba-reborn",
"?hot-metals >= 1.1.0",
"?Krastorio2-spaced-out",
"?lane-splitters",
"?metal-and-stars",
"(?)secretas",
"(?)Wood_Gasification_updated",
"?wood-industry",
"?wood-military >= 2.3.3",
"!apm_power_ldinc",
"!early-agriculture",
"!planet-picker",
"!wood-logistics",
"!wood-universe-modpack",
"!rso-mod"
]
}

File diff suppressed because it is too large Load diff

View file

@ -1,26 +1,26 @@
local RocketSilo = require("scripts/wooden-rocket-silo")
if not storage.rocket_silos then
storage.rocket_silos = {}
end
if not game.planets["lignumis"] or not game.planets["lignumis"].surface then return end
local lignumis = game.planets["lignumis"].surface
for _, silo in pairs(lignumis.find_entities_filtered { name = "provisional-rocket-silo" }) do
local found = false
for _, entry in pairs(storage.rocket_silos) do
if type(entry) == "table" and entry.real_silo == silo then
found = true
break
end
end
if not found then
RocketSilo.events[defines.events.on_script_trigger_effect]({
effect_id = "provisional-rocket-ready",
surface_index = lignumis.index,
cause_entity = silo
})
end
end
local RocketSilo = require("scripts/wooden-rocket-silo")
if not storage.rocket_silos then
storage.rocket_silos = {}
end
if not game.planets["lignumis"] or not game.planets["lignumis"].surface then return end
local lignumis = game.planets["lignumis"].surface
for _, silo in pairs(lignumis.find_entities_filtered { name = "provisional-rocket-silo" }) do
local found = false
for _, entry in pairs(storage.rocket_silos) do
if type(entry) == "table" and entry.real_silo == silo then
found = true
break
end
end
if not found then
RocketSilo.events[defines.events.on_script_trigger_effect]({
effect_id = "provisional-rocket-ready",
surface_index = lignumis.index,
cause_entity = silo
})
end
end

View file

@ -1,23 +1,23 @@
local sounds = require("__base__.prototypes.entity.sounds")
data:extend({
{
name = "gold-rock-cluster",
type = "optimized-decorative",
order = "a[lignumis]-a[decorative]-a[gold-rock-clusters]",
collision_box = { { -1, -1 }, { 1, 1 } },
collision_mask = { layers = { water_tile = true, doodad = true }, colliding_with_tiles_only = true },
render_layer = "decorative",
walking_sound = sounds.sand,
autoplace = {
order = "d[ground-surface]-b[sulfur-rock]-b[cluster]",
placement_density = 1,
probability_expression =
"basis_noise{x = x, y = y, seed0 = map_seed, seed1 = 3000000, input_scale = 1/8, output_scale = 1/4}",
tile_restriction = { "natural-gold-soil" }
},
pictures = get_decal_pictures(
"__space-age__/graphics/decorative/tiny-volcanic-rock-cluster/tiny-volcanic-rock-cluster-", "", 128, 8,
{ 0.788, 0.627, 0.167 }, true)
}
})
local sounds = require("__base__.prototypes.entity.sounds")
data:extend({
{
name = "gold-rock-cluster",
type = "optimized-decorative",
order = "a[lignumis]-a[decorative]-a[gold-rock-clusters]",
collision_box = { { -1, -1 }, { 1, 1 } },
collision_mask = { layers = { water_tile = true, doodad = true }, colliding_with_tiles_only = true },
render_layer = "decorative",
walking_sound = sounds.sand,
autoplace = {
order = "d[ground-surface]-b[sulfur-rock]-b[cluster]",
placement_density = 1,
probability_expression =
"basis_noise{x = x, y = y, seed0 = map_seed, seed1 = 3000000, input_scale = 1/8, output_scale = 1/4}",
tile_restriction = { "natural-gold-soil" }
},
pictures = get_decal_pictures(
"__space-age__/graphics/decorative/tiny-volcanic-rock-cluster/tiny-volcanic-rock-cluster-", "", 128, 8,
{ 0.788, 0.627, 0.167 }, true)
}
})

View file

@ -1,7 +1,7 @@
-- Override science packs in final fixes in the case other mods add their science packs to all labs in a generic way
data.raw.lab["wood-lab"].inputs = {
"wood-science-pack",
"steam-science-pack",
"automation-science-pack",
"logistic-science-pack"
-- Override science packs in final fixes in the case other mods add their science packs to all labs in a generic way
data.raw.lab["wood-lab"].inputs = {
"wood-science-pack",
"steam-science-pack",
"automation-science-pack",
"logistic-science-pack"
}

View file

@ -1,6 +1,6 @@
data:extend({
{
type = "fuel-category",
name = "wood"
}
data:extend({
{
type = "fuel-category",
name = "wood"
}
})

View file

@ -1,5 +1,5 @@
require("gold/stromatolite")
require("gold/tiles")
require("gold/resource")
require("gold/intermediates")
require("gold/stromatolite")
require("gold/tiles")
require("gold/resource")
require("gold/intermediates")
require("gold/pipes")

View file

@ -1,3 +1,5 @@
if not mods["astroponics"] then return end
local Technology = require("__cf-lib__/data/Technology")
-- This just undoes what astroponics changes to tree seeding

View file

@ -1,3 +1,5 @@
if not mods["astroponics"] then return end
local infinite = settings.startup["lignumis-infinite-astroponics-productivity-research"].value
local base_levels = {

View file

@ -1,11 +1,11 @@
if not mods["wood-military"] then
return
end
data.raw["bool-setting"]["wood-military-rockets"].default_value = false
data.raw["bool-setting"]["wood-military-artillery"].default_value = false
data.raw["bool-setting"]["wood-military-damage-buff"].default_value = false
data.raw["bool-setting"]["wood-military-armor"].hidden = true
data.raw["bool-setting"]["wood-military-armor"].forced_value = true
data.raw["bool-setting"]["wood-military-nerf-start"].hidden = true
if not mods["wood-military"] then
return
end
data.raw["bool-setting"]["wood-military-rockets"].default_value = false
data.raw["bool-setting"]["wood-military-artillery"].default_value = false
data.raw["bool-setting"]["wood-military-damage-buff"].default_value = false
data.raw["bool-setting"]["wood-military-armor"].hidden = true
data.raw["bool-setting"]["wood-military-armor"].forced_value = true
data.raw["bool-setting"]["wood-military-nerf-start"].hidden = true
data.raw["bool-setting"]["wood-military-nerf-start"].forced_value = true

View file

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Before After
Before After

Some files were not shown because too many files have changed in this diff Show more