-
Notifications
You must be signed in to change notification settings - Fork 42
Move biome definitions to YAML configuration with hot reload support #404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
MorquinDevlar
merged 10 commits into
GoMudEngine:master
from
MorquinDevlar:biome-to-config
Jun 29, 2025
Merged
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
59ae692
Biomes can now be defined in the world configuration and loaded dynam…
MorquinDevlar b2fe370
Added hot reload to biomes
MorquinDevlar 941f7ac
Fixed review comments and minor other improvements
MorquinDevlar 1c25534
Added two missing hard coded biomes
MorquinDevlar 8e1ce78
Fixed a slight duplication issue with the Dungeon biome
MorquinDevlar b32ec3e
Simplified biome system and removed ValidateBiomes function
MorquinDevlar f7ffa6d
Cleaned up old single biomes.yaml in /default and added all the indiv…
MorquinDevlar b50a768
Fixed biome-related nil pointer panics and improved error handling
MorquinDevlar 68cbdcc
Added startup biome validation and improved missing biome handling
MorquinDevlar 2b1a93a
Removed empty line in main.go
MorquinDevlar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| biomeid: cave | ||
| name: Cave | ||
| symbol: ⌬ | ||
| description: Dark areas underground. | ||
| darkarea: true | ||
| litarea: false | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| biomeid: city | ||
| name: City | ||
| symbol: • | ||
| description: Cities are generally well protected. Law enforcement will attempt to | ||
| subdue those who murder or steal. It's generally considered a safe area although | ||
| it's not unknown for predators to hunt within their walls. | ||
| darkarea: false | ||
| litarea: true | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| biomeid: cliffs | ||
| name: Cliffs | ||
| symbol: ▼ | ||
| description: Steep, rocky areas that can be dangerous to navigate. | ||
| darkarea: false | ||
| litarea: false | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| biomeid: desert | ||
| name: Desert | ||
| symbol: '*' | ||
| description: Harsh and dry. | ||
| darkarea: false | ||
| litarea: false | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| biomeid: dungeon | ||
| name: Dungeon | ||
| symbol: • | ||
| description: These are cave-like underground areas built with a purpose. | ||
| darkarea: true | ||
| litarea: false | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| biomeid: farmland | ||
| name: Farmland | ||
| symbol: ',' | ||
| description: Cultivated land used for growing crops. | ||
| darkarea: false | ||
| litarea: false | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| biomeid: forest | ||
| name: Forest | ||
| symbol: ♣ | ||
| description: Forests are generally green and verdant. All types of creatures lurk | ||
| within them. Plenty of trees. | ||
| darkarea: false | ||
| litarea: false | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| biomeid: fort | ||
| name: Fort | ||
| symbol: • | ||
| description: Forts are cities or dwellings that are fortified. | ||
| darkarea: false | ||
| litarea: true | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| biomeid: house | ||
| name: House | ||
| symbol: ⌂ | ||
| description: Standard domiciles and other dwellings. | ||
| darkarea: false | ||
| litarea: true | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| biomeid: land | ||
| name: Land | ||
| symbol: • | ||
| description: The world is made of land. | ||
| darkarea: false | ||
| litarea: true | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| biomeid: mountains | ||
| name: Mountains | ||
| symbol: ⩕ | ||
| description: Mountains can be difficult to traverse. | ||
| darkarea: false | ||
| litarea: false | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| biomeid: road | ||
| name: Road | ||
| symbol: • | ||
| description: Roads are well worn paths, generally well traveled. | ||
| darkarea: false | ||
| litarea: false | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| biomeid: shore | ||
| name: Shore | ||
| symbol: "~" | ||
| description: Where the land meets the water. | ||
| darkarea: false | ||
| litarea: false | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| biomeid: snow | ||
| name: Snow | ||
| symbol: ❄ | ||
| description: Cold and wet. | ||
| darkarea: false | ||
| litarea: false | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| biomeid: spiderweb | ||
| name: Spiderweb | ||
| symbol: "\U0001F578" | ||
| description: Sticky strands of web that are strong enough to support a person. The | ||
| domain of spiders. It's naturally quite dark due to the thick coating of web everywhere. | ||
| darkarea: true | ||
| litarea: false | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| biomeid: swamp | ||
| name: Swamp | ||
| symbol: ♨ | ||
| description: Dark, wet, muddy. All sorts of creatures that creep and crawl inhabit | ||
| swamps. | ||
| darkarea: true | ||
| litarea: false | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| biomeid: water | ||
| name: Deep Water | ||
| symbol: ≈ | ||
| description: Deep water is dangerous to traverse without the appropriate equipment. | ||
| Very easy to lose your footing, or go under. | ||
| darkarea: false | ||
| litarea: false | ||
| requireditemid: 20030 | ||
| usesitem: false | ||
| burns: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| biomeid: cave | ||
| name: Cave | ||
| symbol: ⌬ | ||
| description: Dark areas underground. | ||
| darkarea: true | ||
| litarea: false | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| biomeid: city | ||
| name: City | ||
| symbol: • | ||
| description: Cities are generally well protected. Law enforcement will attempt to | ||
| subdue those who murder or steal. It's generally considered a safe area although | ||
| it's not unknown for predators to hunt within their walls. | ||
| darkarea: false | ||
| litarea: true | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| biomeid: cliffs | ||
| name: Cliffs | ||
| symbol: ▼ | ||
| description: Steep, rocky areas that can be dangerous to navigate. | ||
| darkarea: false | ||
| litarea: false | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| biomeid: desert | ||
| name: Desert | ||
| symbol: '*' | ||
| description: Harsh and dry. | ||
| darkarea: false | ||
| litarea: false | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| biomeid: dungeon | ||
| name: Dungeon | ||
| symbol: • | ||
| description: These are cave-like underground areas built with a purpose. | ||
| darkarea: true | ||
| litarea: false | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| biomeid: farmland | ||
| name: Farmland | ||
| symbol: ',' | ||
| description: Cultivated land used for growing crops. | ||
| darkarea: false | ||
| litarea: false | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| biomeid: forest | ||
| name: Forest | ||
| symbol: ♣ | ||
| description: Forests are generally green and verdant. All types of creatures lurk | ||
| within them. Plenty of trees. | ||
| darkarea: false | ||
| litarea: false | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| biomeid: fort | ||
| name: Fort | ||
| symbol: • | ||
| description: Forts are cities or dwellings that are fortified. | ||
| darkarea: false | ||
| litarea: true | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| biomeid: house | ||
| name: House | ||
| symbol: ⌂ | ||
| description: Standard domiciles and other dwellings. | ||
| darkarea: false | ||
| litarea: true | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| biomeid: land | ||
| name: Land | ||
| symbol: • | ||
| description: The world is made of land. | ||
| darkarea: false | ||
| litarea: true | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| biomeid: mountains | ||
| name: Mountains | ||
| symbol: ⩕ | ||
| description: Mountains can be difficult to traverse. | ||
| darkarea: false | ||
| litarea: false | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| biomeid: road | ||
| name: Road | ||
| symbol: • | ||
| description: Roads are well worn paths, generally well traveled. | ||
| darkarea: false | ||
| litarea: false | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| biomeid: shore | ||
| name: Shore | ||
| symbol: "~" | ||
| description: Where the land meets the water. | ||
| darkarea: false | ||
| litarea: false | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| biomeid: snow | ||
| name: Snow | ||
| symbol: ❄ | ||
| description: Cold and wet. | ||
| darkarea: false | ||
| litarea: false | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| biomeid: spiderweb | ||
| name: Spiderweb | ||
| symbol: "\U0001F578" | ||
| description: Sticky strands of web that are strong enough to support a person. The | ||
| domain of spiders. It's naturally quite dark due to the thick coating of web everywhere. | ||
| darkarea: true | ||
| litarea: false | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| biomeid: swamp | ||
| name: Swamp | ||
| symbol: ♨ | ||
| description: Dark, wet, muddy. All sorts of creatures that creep and crawl inhabit | ||
| swamps. | ||
| darkarea: true | ||
| litarea: false | ||
| requireditemid: 0 | ||
| usesitem: false | ||
| burns: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| biomeid: water | ||
| name: Deep Water | ||
| symbol: ≈ | ||
| description: Deep water is dangerous to traverse without the appropriate equipment. | ||
| Very easy to lose your footing, or go under. | ||
| darkarea: false | ||
| litarea: false | ||
| requireditemid: 20030 | ||
| usesitem: false | ||
| burns: false |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.