Skip to content

Commit 4a56def

Browse files
committed
added compatibility for Angels infinite ores
1 parent 453e99c commit 4a56def

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

source/data-updates.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ require "libs.functions"
33
-- Required:
44
require "prototypes.bigger-mining-drills"
55

6+
-- Features:
7+
require "prototypes.more-expensive-walls"
8+
69
-- Integration with recipes of other mods
710
require "prototypes.fluid-barrels"
811
require "prototypes.landfill"
9-
require "prototypes.more-expensive-walls"
12+
require "prototypes.angel_ores_hardcrafting"

source/info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"title": "Hard crafting",
55
"author": "judos",
66
"description": "Modifies vanilla crafting and smelting to be much trickier, you will need better planning and more clever setup",
7-
"dependencies": ["base >= 0.12.11", "? Landfill >= 2.1.7", "? fluid-barrel >= 1.0.0", "? marathon >= 0.5.4"],
7+
"dependencies": ["base >= 0.12.11", "? Landfill >= 2.1.7", "? fluid-barrel >= 1.0.0", "? marathon >= 0.5.4", "? angelsinfiniteores >= 0.1.2"],
88
"homepage": "https://github.com/judos/hardCrafting"
99
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
-- add compatibility for Angel Ores mod
3+
4+
if data.raw["resource"]["infinite-copper-ore"] then
5+
data.raw["resource"]["infinite-copper-ore"].minable.result = nil
6+
data.raw["resource"]["infinite-copper-ore"].minable.results = data.raw["resource"]["copper-ore"].minable.results
7+
end
8+
9+
if data.raw["resource"]["infinite-iron-ore"] then
10+
data.raw["resource"]["infinite-iron-ore"].minable.result = nil
11+
data.raw["resource"]["infinite-iron-ore"].minable.results = data.raw["resource"]["iron-ore"].minable.results
12+
end

0 commit comments

Comments
 (0)