mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Adds new dungeon entrances
This commit is contained in:
parent
8d377d6cf2
commit
ee37c8d62d
16
assets/world/manifests/dungeon_entrances/desert.ron
Normal file
16
assets/world/manifests/dungeon_entrances/desert.ron
Normal 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)
|
||||||
|
),
|
||||||
|
]
|
@ -2,7 +2,15 @@
|
|||||||
|
|
||||||
[
|
[
|
||||||
(
|
(
|
||||||
specifier: "world.structure.dungeon.jungle_temple.entrance.1",
|
specifier: "world.structure.dungeon.jungle_entrance.1",
|
||||||
center: (50, 40, 10)
|
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
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
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
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
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
BIN
assets/world/structure/dungeon/jungle_entrance/3.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -131,7 +131,7 @@ impl Civs {
|
|||||||
|
|
||||||
let (radius, flatten_radius) = match &site.kind {
|
let (radius, flatten_radius) = match &site.kind {
|
||||||
SiteKind::Settlement => (32i32, 10.0),
|
SiteKind::Settlement => (32i32, 10.0),
|
||||||
SiteKind::Dungeon => (8i32, 2.0),
|
SiteKind::Dungeon => (8i32, 3.0),
|
||||||
SiteKind::Castle => (16i32, 5.0),
|
SiteKind::Castle => (16i32, 5.0),
|
||||||
SiteKind::Refactor => (0i32, 0.0),
|
SiteKind::Refactor => (0i32, 0.0),
|
||||||
SiteKind::Tree => (12i32, 8.0),
|
SiteKind::Tree => (12i32, 8.0),
|
||||||
|
@ -1384,6 +1384,8 @@ impl SiteStructure for Dungeon {
|
|||||||
Structure::load_group("dungeon_entrances.jungle");
|
Structure::load_group("dungeon_entrances.jungle");
|
||||||
pub static ref GRASSLAND: AssetHandle<StructuresGroup> =
|
pub static ref GRASSLAND: AssetHandle<StructuresGroup> =
|
||||||
Structure::load_group("dungeon_entrances.grassland");
|
Structure::load_group("dungeon_entrances.grassland");
|
||||||
|
pub static ref DESERT: AssetHandle<StructuresGroup> =
|
||||||
|
Structure::load_group("dungeon_entrances.desert");
|
||||||
}
|
}
|
||||||
|
|
||||||
let biome = land
|
let biome = land
|
||||||
@ -1391,6 +1393,7 @@ impl SiteStructure for Dungeon {
|
|||||||
.map_or(BiomeKind::Void, |c| c.get_biome());
|
.map_or(BiomeKind::Void, |c| c.get_biome());
|
||||||
let entrances = match biome {
|
let entrances = match biome {
|
||||||
BiomeKind::Jungle => *JUNGLE,
|
BiomeKind::Jungle => *JUNGLE,
|
||||||
|
BiomeKind::Desert => *DESERT,
|
||||||
_ => *GRASSLAND,
|
_ => *GRASSLAND,
|
||||||
};
|
};
|
||||||
let entrances = entrances.read();
|
let entrances = entrances.read();
|
||||||
|
Loading…
Reference in New Issue
Block a user