Fix tiles

This commit is contained in:
Simon Brodtmann 2025-07-05 17:40:46 +02:00
parent 60bc004468
commit dcb84c12eb
3 changed files with 8 additions and 27 deletions

View file

@ -1,3 +1,4 @@
local tile_graphics = require("__base__/prototypes/tile/tile-graphics")
local BioInd = require('common')('Bio_Industries_2') local BioInd = require('common')('Bio_Industries_2')
require ("util") require ("util")
@ -243,13 +244,13 @@ data:extend({
needs_correction = false, needs_correction = false,
minable = {hardness = 0.1, mining_time = 0.25, result = "bi-solar-mat"}, minable = {hardness = 0.1, mining_time = 0.25, result = "bi-solar-mat"},
mined_sound = { filename = "__base__/sound/deconstruct-bricks.ogg" }, mined_sound = { filename = "__base__/sound/deconstruct-bricks.ogg" },
--collision_mask = {"ground-tile", "not-colliding-with-itself"}, collision_mask = { layers = { ground_tile = true }},
collision_mask = {"ground-tile"},
collision_box = {{-0.5, -0.5}, {0.5, 0.5}}, collision_box = {{-0.5, -0.5}, {0.5, 0.5}},
walking_speed_modifier = 1.45, walking_speed_modifier = 1.45,
layer = 62, layer = 62,
decorative_removal_probability = 1, decorative_removal_probability = 1,
variants = { variants = {
transition = tile_graphics.generic_masked_tile_transitions1,
main = { main = {
{ {
picture = ENTITYPATH .. "solar1.png", picture = ENTITYPATH .. "solar1.png",
@ -281,7 +282,6 @@ data:extend({
}, },
walking_sound = sounds.walking_sound, walking_sound = sounds.walking_sound,
map_color = {r = 93, g = 138, b = 168}, map_color = {r = 93, g = 138, b = 168},
pollution_absorption_per_second = 0,
vehicle_friction_modifier = dirt_vehicle_speed_modifer vehicle_friction_modifier = dirt_vehicle_speed_modifer
}, },
}) })

View file

@ -14,7 +14,7 @@
selectable_in_game = false, selectable_in_game = false,
max_health = 1, max_health = 1,
resistances = {{type = "fire", percent = 100}}, resistances = {{type = "fire", percent = 100}},
collision_mask = {"ground-tile"}, collision_mask = { layers = { ground_tile = true }},
collision_box = {{-0.0, -0.0}, {0.0, 0.0}}, collision_box = {{-0.0, -0.0}, {0.0, 0.0}},
selection_box = {{0, 0}, {0, 0}}, selection_box = {{0, 0}, {0, 0}},
energy_source = { energy_source = {

View file

@ -1,3 +1,5 @@
local tile_graphics = require("__base__/prototypes/tile/tile-graphics")
local BioInd = require('common')('Bio_Industries_2') local BioInd = require('common')('Bio_Industries_2')
local ICONPATH = BioInd.modRoot .. "/graphics/icons/" local ICONPATH = BioInd.modRoot .. "/graphics/icons/"
@ -7,10 +9,7 @@ local ENTITYPATH = "__base__/graphics/entity/"
local PIPEPATH = ENTITYPATH .. "pipe/" local PIPEPATH = ENTITYPATH .. "pipe/"
local SNDPATH = "__base__/sound/" local SNDPATH = "__base__/sound/"
--~ local BIGICONS = BioInd.check_base_version("0.18.0")
-- demo-sounds has been removed in Factorio 1.1, so we need to check the game version!
local sounds = {} local sounds = {}
sounds.walking_sound = {} sounds.walking_sound = {}
for i = 1, 11 do for i = 1, 11 do
@ -191,11 +190,12 @@ data:extend({
--~ minable = {hardness = 0.2, mining_time = 0.5, result = "wood"}, --~ minable = {hardness = 0.2, mining_time = 0.5, result = "wood"},
minable = {hardness = 0.2, mining_time = 0.25, result = "wood"}, minable = {hardness = 0.2, mining_time = 0.25, result = "wood"},
mined_sound = { filename = "__base__/sound/deconstruct-bricks.ogg" }, mined_sound = { filename = "__base__/sound/deconstruct-bricks.ogg" },
collision_mask = {"ground-tile"}, collision_mask = { layers = { ground_tile = true }},
walking_speed_modifier = 1.2, walking_speed_modifier = 1.2,
layer = 62, layer = 62,
decorative_removal_probability = 0.4, decorative_removal_probability = 0.4,
variants = { variants = {
transition = tile_graphics.generic_masked_tile_transitions1,
main = { main = {
{ {
picture = WOODPATH .. "wood_floor/wood1.png", picture = WOODPATH .. "wood_floor/wood1.png",
@ -230,27 +230,8 @@ data:extend({
count = 1 count = 1
} }
}, },
--~ walking_sound = {
--~ {
--~ filename = "__base__/sound/walking/concrete-01.ogg",
--~ volume = 1.2
--~ },
--~ {
--~ filename = "__base__/sound/walking/concrete-02.ogg",
--~ volume = 1.2
--~ },
--~ {
--~ filename = "__base__/sound/walking/concrete-03.ogg",
--~ volume = 1.2
--~ },
--~ {
--~ filename = "__base__/sound/walking/concrete-04.ogg",
--~ volume = 1.2
--~ }
--~ },
walking_sound = sounds.walking_sound, walking_sound = sounds.walking_sound,
map_color = {r = 139, g = 115, b = 85}, map_color = {r = 139, g = 115, b = 85},
pollution_absorption_per_second = 0,
vehicle_friction_modifier = dirt_vehicle_speed_modifer vehicle_friction_modifier = dirt_vehicle_speed_modifer
}, },
}) })