-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathfalloffdefs.lua
53 lines (47 loc) · 1.6 KB
/
falloffdefs.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
local TileManager = require("tilemanager")
mod_protect_TileManager = false
TileManager.AddFalloffTexture(
FALLOFF_IDS.FALLOFF,
{
name = "falloff",
noise_texture = "images/square.tex",
should_have_falloff = TileGroups.LandTilesWithDefaultFalloff,
should_have_falloff_result = true,
neighbor_needs_falloff = TileGroups.LandTilesWithDefaultFalloff,
neighbor_needs_falloff_result = false
}
)
TileManager.AddFalloffTexture(
FALLOFF_IDS.DOCK_FALLOFF,
{
name = "dock_falloff",
noise_texture = "images/square.tex",
should_have_falloff = TileGroups.DockTiles,
should_have_falloff_result = true,
neighbor_needs_falloff = TileGroups.TransparentOceanTiles,
neighbor_needs_falloff_result = true
}
)
TileManager.AddFalloffTexture(
FALLOFF_IDS.OCEANICE_FALLOFF,
{
name = "oceanice_falloff",
noise_texture = "images/square.tex",
should_have_falloff = TileGroups.OceanIceTiles,
should_have_falloff_result = true,
neighbor_needs_falloff = TileGroups.TransparentOceanTiles,
neighbor_needs_falloff_result = true,
}
)
TileManager.AddFalloffTexture(
FALLOFF_IDS.INVISIBLE,
{
name = "invisible_falloff",
noise_texture = "images/square.tex",
should_have_falloff = TileGroups.LandTilesInvisible,
should_have_falloff_result = true,
neighbor_needs_falloff = TileGroups.LandTilesWithDefaultFalloff,
neighbor_needs_falloff_result = true,
}
)
mod_protect_TileManager = true