-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.lua
26 lines (20 loc) · 876 Bytes
/
data.lua
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
-- INITIALIZE
-----------------------------------------------------------------
if not ritnlib then require("__RitnLib__/defines") end
local RitnProtoTech = require(ritnlib.defines.class.prototype.tech)
-----------------------------------------------------------------
if not ritnmods then ritnmods = {} end
if not ritnmods.waterfill then ritnmods.waterfill = {} end
local setting_value = settings.startup["ritnmods-waterfill-00"].value
if setting_value then
data.raw.tile.water.check_collision_with_entities = true
data.raw.tile["deepwater"].check_collision_with_entities = true
end
require("prototypes.items")
require("prototypes.technologies")
if mods["vadatajs_landfill_removal"] then
local waterfill = RitnProtoTech("waterfill")
waterfill:removePrerequisite("landfill")
waterfill:addPrerequisite("logistic-science-pack")
waterfill:multipliedPack(2)
end