This commit is contained in:
2025-01-15 12:44:37 +09:00
parent 7784dbf3ad
commit 736df61152
3 changed files with 2 additions and 6 deletions

View File

@@ -54,7 +54,7 @@ return {
["landfill"] = { ["landfill"] = {
starting_value = 0, starting_value = 0,
required_area = 0, required_area = 0,
surface_area = 8, -- Tiles surface_area = 20, -- Tiles
}, },
["wood"] = { ["wood"] = {
starting_value = 0, starting_value = 0,

View File

@@ -40,10 +40,6 @@ Storage.register(vlayer_data, function(tbl)
vlayer_data = tbl vlayer_data = tbl
end) end)
if script.active_mods["space-age"] then
config.allowed_items.landfill.surface_area = math.floor(config.allowed_items.landfill.surface_area * 2.5)
end
for name, properties in pairs(config.allowed_items) do for name, properties in pairs(config.allowed_items) do
properties.modded = false properties.modded = false

View File

@@ -77,7 +77,7 @@ local function apply_periodic_bonus(player)
if vlayer.get_statistics()["energy_sustained"] > 0 then if vlayer.get_statistics()["energy_sustained"] > 0 then
local armor = player.get_inventory(defines.inventory.character_armor) local armor = player.get_inventory(defines.inventory.character_armor)
if armor and armor[1] then if armor and armor[1] and armor[1].valid_for_read then
local armor_grid = armor[1].grid local armor_grid = armor[1].grid
if armor_grid then if armor_grid then