Adds new dungeon entrances

This commit is contained in:
Snowram 2021-09-01 01:41:12 +02:00
parent 8d377d6cf2
commit ee37c8d62d
10 changed files with 44 additions and 2 deletions

View File

@ -0,0 +1,16 @@
#![enable(unwrap_newtypes)]
[
(
specifier: "world.structure.dungeon.desert_entrance.1",
center: (35, 50, 21)
),
(
specifier: "world.structure.dungeon.desert_entrance.2",
center: (21, 21, 41)
),
(
specifier: "world.structure.dungeon.desert_entrance.3",
center: (32, 31, 28)
),
]

View File

@ -2,7 +2,15 @@
[
(
specifier: "world.structure.dungeon.jungle_temple.entrance.1",
specifier: "world.structure.dungeon.jungle_entrance.1",
center: (50, 40, 10)
),
(
specifier: "world.structure.dungeon.jungle_entrance.2",
center: (60, 36, 36)
),
(
specifier: "world.structure.dungeon.jungle_entrance.3",
center: (24, 22, 44)
),
]

BIN
assets/world/structure/dungeon/desert_entrance/1.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/world/structure/dungeon/desert_entrance/2.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/world/structure/dungeon/desert_entrance/3.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/world/structure/dungeon/jungle_entrance/2.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/world/structure/dungeon/jungle_entrance/3.vox (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -131,7 +131,7 @@ impl Civs {
let (radius, flatten_radius) = match &site.kind {
SiteKind::Settlement => (32i32, 10.0),
SiteKind::Dungeon => (8i32, 2.0),
SiteKind::Dungeon => (8i32, 3.0),
SiteKind::Castle => (16i32, 5.0),
SiteKind::Refactor => (0i32, 0.0),
SiteKind::Tree => (12i32, 8.0),

View File

@ -1384,6 +1384,8 @@ impl SiteStructure for Dungeon {
Structure::load_group("dungeon_entrances.jungle");
pub static ref GRASSLAND: AssetHandle<StructuresGroup> =
Structure::load_group("dungeon_entrances.grassland");
pub static ref DESERT: AssetHandle<StructuresGroup> =
Structure::load_group("dungeon_entrances.desert");
}
let biome = land
@ -1391,6 +1393,7 @@ impl SiteStructure for Dungeon {
.map_or(BiomeKind::Void, |c| c.get_biome());
let entrances = match biome {
BiomeKind::Jungle => *JUNGLE,
BiomeKind::Desert => *DESERT,
_ => *GRASSLAND,
};
let entrances = entrances.read();