Gnarling Totem

This commit is contained in:
Gemu Peachems 2021-08-01 00:57:21 +02:00 committed by Joshua Barretto
parent 62f95c4a0f
commit b0a067fc8d
3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,8 @@
#![enable(unwrap_newtypes)]
[
(
specifier: "world.structure.natural.gnarling_totem",
center: (9, 5, 5)
),
]

BIN
assets/world/structure/natural/gnarling_totem.vox (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -30,6 +30,7 @@ pub enum Spot {
MerchantCamp,
SaurokCamp,
DwarvenGrave,
GnarlingTotem,
}
impl Spot {
@ -63,6 +64,19 @@ impl Spot {
Self::generate_spots(
Spot::DwarvenGrave,
world,
1.0,
|g, c| {
g < 0.25
&& !c.near_cliffs()
&& !c.river.near_water()
&& !c.path.0.is_way()
&& c.sites.is_empty()
},
false,
);
Self::generate_spots(
Spot::GnarlingTotem,
world,
10.0,
|g, c| {
g < 0.25
@ -142,6 +156,15 @@ pub fn apply_spots_to(canvas: &mut Canvas, _dynamic_rng: &mut impl Rng) {
entity_radius: 60.0,
entities: &[(6..12, "common.entity.spot.bandit_camp.dwarf_grave_robber")],
},
Spot::GnarlingTotem => SpotConfig {
base_structures: Some("spots_grasslands.gnarling_totem"),
entity_radius: 30.0,
entities: &[
(1..4, "common.entity.dungeon.tier-0.spear"),
(2..5, "common.entity.dungeon.tier-0.bow"),
(1..3, "common.entity.dungeon.tier-0.staff"),
],
},
};
// Blit base structure