Skip to content

Commit 44284cf

Browse files
authored
Zone definition split (#398)
# Description This splits zone configuration outside of the root room definition file. ## Changes - zone config is from a file called `zone-config.yaml` in the room/zone folder. - Changed fileloader Load/Save functions, allows for file patterns to match when loading. - Eliminated JSON as a fileformat. Wasn't really supported anyways. - Room ZoneConfig now a pointer, expected to be null - If not null, uses data to generate a new `zone-config.yaml`
1 parent e50abee commit 44284cf

File tree

50 files changed

+294
-301
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+294
-301
lines changed

_datafiles/world/default/rooms/catacombs/32.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
roomid: 32
22
zone: Catacombs
3-
zoneconfig:
4-
roomid: 32
5-
autoscale:
6-
minimum: 8
7-
maximum: 13
8-
musicfile: static/audio/music/catacombs.mp3
93
title: Entrance to the Catacombs
104
description: Beneath the Sanctuary of the Benevolent Heart lies the labyrinthine expanse
115
known as the Catacombs. A network of narrow, winding tunnels and chambers, the Catacombs
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: Catacombs
2+
roomid: 32
3+
autoscale:
4+
minimum: 8
5+
maximum: 13
6+
musicfile: static/audio/music/catacombs.mp3
7+
defaultbiome: dungeon

_datafiles/world/default/rooms/dark_forest/300.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
roomid: 300
22
zone: Dark Forest
3-
zoneconfig:
4-
roomid: 300
5-
mutators:
6-
- mutatorid: forest-mist
7-
musicfile: static/audio/music/dark-forest.mp3
83
title: Forest Road
94
description: As you venture further along the old road, it leads you into the heart
105
of the foreboding Dark Forest. The transition from the tranquil Frost Lake to this
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: Dark Forest
2+
roomid: 300
3+
mutators:
4+
- mutatorid: forest-mist
5+
musicfile: static/audio/music/dark-forest.mp3
6+
defaultbiome: forest

_datafiles/world/default/rooms/endless_trashheap/139.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
roomid: 139
22
zone: Endless Trashheap
3-
zoneconfig:
4-
roomid: 139
53
title: The wasteland
64
description: The Endless Trashheap stretches to the horizon, a bizarre landscape of
75
discarded wealth where mountains of forgotten relics rise like the ruins of a once-glorious
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
name: Endless Trashheap
2+
roomid: 139

_datafiles/world/default/rooms/frost_lake/304.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
roomid: 304
22
zone: Frost Lake
3-
zoneconfig:
4-
roomid: 304
5-
autoscale:
6-
minimum: 10
7-
maximum: 13
8-
musicfile: static/audio/music/frost-lake.mp3
93
title: Frost Lake Shore
104
description: The stillness here is profound, the world holding its breath in reverence
115
for this enchanting realm. The silence is broken only by the soft, melodic chime
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: Frost Lake
2+
roomid: 304
3+
autoscale:
4+
minimum: 10
5+
maximum: 13
6+
musicfile: static/audio/music/frost-lake.mp3
7+
defaultbiome: shore

_datafiles/world/default/rooms/frostfang/1.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
roomid: 1
22
zone: Frostfang
3-
zoneconfig:
4-
roomid: 1
5-
autoscale:
6-
minimum: 1
7-
maximum: 5
8-
idlemessages:
9-
- A cold wind blows through the city.
10-
musicfile: static/audio/music/frostfang.mp3
113
title: Town Square
124
description: In the shimmering heart of Frostfang, a city wrapped in a perpetual blanket
135
of snow and illuminated by the ethereal glow of the auroras, lies the Town Square.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Frostfang
2+
roomid: 1
3+
autoscale:
4+
minimum: 1
5+
maximum: 5
6+
idlemessages:
7+
- A cold wind blows through the city.
8+
musicfile: static/audio/music/frostfang.mp3
9+
defaultbiome: city

0 commit comments

Comments
 (0)