-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata-final-fixes.lua
More file actions
39 lines (34 loc) · 1.39 KB
/
Copy pathdata-final-fixes.lua
File metadata and controls
39 lines (34 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
for _, character in pairs(data.raw["character"]) do
if character.mining_categories then
table.insert(character.mining_categories, "powder")
else
character.mining_categories = {"basic-solid", "powder"}
end
end
local function add_crafting_category(entity_type, entity_name, category)
local entity = data.raw[entity_type][entity_name]
if entity then
entity.crafting_categories = entity.crafting_categories or {}
-- Check if category already exists to avoid duplicates
local exists = false
for _, cat in pairs(entity.crafting_categories) do
if cat == category then
exists = true
break
end
end
if not exists then
table.insert(entity.crafting_categories, category)
end
end
end
add_crafting_category("character", "character", "basic-powder-handling")
table.insert(data.raw["mining-drill"]["electric-mining-drill"].resource_categories, "telemi-ice")
table.insert(data.raw["mining-drill"]["big-mining-drill"].resource_categories, "telemi-ice")
local foundation = data.raw["item"]["foundation"]
local rempe_acid_ocean_collision_mask = {layers = {water_tile=true, resource=true, player=true, doodad=true}}
table.insert(foundation.place_as_tile.tile_condition, "rempe-acid-ocean")
for _, lab in pairs(data.raw["lab"]) do
table.insert(lab.inputs, "high-pressure-science-pack")
table.insert(lab.inputs, "reagent-science-pack")
end