-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path06-city.tf
91 lines (79 loc) · 3.18 KB
/
06-city.tf
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# ---- IC ----
# ### CITY OF LIGHTS ###
resource discord_category_channel city {
name = "City of Lights"
server_id = discord_server.nlp.id
position = discord_category_channel.ooc.position + 1
}
module "city_of_lights_permissions" {
# only Players are allowed to write in IC chats
source = "./limited_channel_permissions"
server_id = discord_server.nlp.id
channel_id = discord_category_channel.city.id
permissions = local.permissions.send_messages
allow_roles = [discord_role.player.id]
}
resource discord_text_channel city_ooc {
name = "city-ooc"
server_id = discord_server.nlp.id
category = discord_category_channel.city.id
sync_perms_with_category = true
lifecycle { ignore_changes = [position] }
}
resource discord_text_channel tavern {
name = "the-borealis"
server_id = discord_server.nlp.id
category = discord_category_channel.city.id
position = discord_text_channel.city_ooc.position + 1
sync_perms_with_category = true
}
resource discord_text_channel docks {
name = "the-moorings"
server_id = discord_server.nlp.id
category = discord_category_channel.city.id
position = discord_text_channel.tavern.position + 1
sync_perms_with_category = true
}
resource discord_text_channel market {
name = "market-plaza"
server_id = discord_server.nlp.id
category = discord_category_channel.city.id
position = discord_text_channel.docks.position + 1
sync_perms_with_category = true
}
resource discord_text_channel shrine {
name = "shrine"
server_id = discord_server.nlp.id
category = discord_category_channel.city.id
position = discord_text_channel.market.position + 1
sync_perms_with_category = true
}
resource discord_text_channel park {
name = "park"
server_id = discord_server.nlp.id
category = discord_category_channel.city.id
position = discord_text_channel.shrine.position + 1
sync_perms_with_category = true
}
resource discord_text_channel beach {
name = "beach"
server_id = discord_server.nlp.id
category = discord_category_channel.city.id
position = discord_text_channel.park.position + 1
sync_perms_with_category = true
}
# city-houses lives here but can't be modeled
resource discord_text_channel wereguild_hall {
name = "wereguild-hall"
server_id = discord_server.nlp.id
category = discord_category_channel.city.id
position = discord_text_channel.beach.position + 2
sync_perms_with_category = true
}
resource discord_text_channel gates {
name = "the-caravansary"
server_id = discord_server.nlp.id
category = discord_category_channel.city.id
position = discord_text_channel.wereguild_hall.position + 1
sync_perms_with_category = true
}