From 49bd460540a04c19d89a6e75f20e6367a0ba6e1e Mon Sep 17 00:00:00 2001 From: Dale McCoy <21223975+DaleStan@users.noreply.github.com> Date: Sun, 8 Jan 2023 18:42:19 -0500 Subject: [PATCH] IR scripts diamond-bearing and ruby-bearing rocks onto the map, so treat them as accessible. --- .../IndustrialRevolution3.code.terrain.terrain-ores.lua | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 YAFC/Data/Mod-fixes/IndustrialRevolution3.code.terrain.terrain-ores.lua diff --git a/YAFC/Data/Mod-fixes/IndustrialRevolution3.code.terrain.terrain-ores.lua b/YAFC/Data/Mod-fixes/IndustrialRevolution3.code.terrain.terrain-ores.lua new file mode 100644 index 00000000..ce840ebf --- /dev/null +++ b/YAFC/Data/Mod-fixes/IndustrialRevolution3.code.terrain.terrain-ores.lua @@ -0,0 +1,9 @@ +local util = ...; + +for _,gem in pairs({"diamond","ruby"}) do -- gem-rock-electrum exists in the mod, but isn't placed on the map + if data.raw["simple-entity"]["gem-rock-"..gem] and not data.raw["simple-entity"]["gem-rock-"..gem].autoplace then + data.raw["simple-entity"]["gem-rock-"..gem].autoplace = {} + end +end + +return util; \ No newline at end of file