dwarf grave

This commit is contained in:
Monty Marz 2021-07-31 03:38:16 +02:00 committed by Joshua Barretto
parent 00c44be2da
commit 1278020c88
6 changed files with 53 additions and 2 deletions

View File

@ -0,0 +1,14 @@
EntityConfig (
name: Name("Grave Robber"),
body: RandomWith("dwarf"),
alignment: Alignment(Enemy),
loot: LootTable("common.loot_tables.creature.biped_large.saurok"),
hands: TwoHanded(Item("common.items.weapons.hammer.steel_hammer-3")),
meta: [
SkillSetAsset("common.skillset.village.guard"),
LoadoutAsset("common.loadout.spots.dwarf_graverobber"),
],
)

View File

@ -1,5 +1,5 @@
EntityConfig (
name: Automatic,
name: Name("Villager"),
body: RandomWith("humanoid"),
alignment: Alignment(Npc),

View File

@ -0,0 +1,13 @@
({
Armor(Chest): Item("common.items.armor.hide.rawhide.chest"),
Armor(Shoulders): Item("common.items.armor.hide.rawhide.shoulder"),
Armor(Belt): Item("common.items.armor.hide.rawhide.belt"),
Armor(Hands): Item("common.items.armor.hide.rawhide.hand"),
Armor(Legs): Item("common.items.armor.hide.rawhide.pants"),
Armor(Feet): Item("common.items.armor.hide.rawhide.foot"),
Lantern: Choice([
(1.0, Some(Item("common.items.lantern.black_0"))),
(2.0, None),
]),
})

View File

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

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

Binary file not shown.

View File

@ -29,6 +29,7 @@ use vek::*;
pub enum Spot {
MerchantCamp,
SaurokCamp,
DwarvenGrave,
}
impl Spot {
@ -36,13 +37,20 @@ impl Spot {
Self::generate_spots(
Spot::MerchantCamp,
world,
10.0,
1.0,
|g, c| g < 0.25 && !c.near_cliffs() && !c.river.near_water() && !c.path.0.is_way(),
false,
);
Self::generate_spots(
Spot::SaurokCamp,
world,
1.0,
|g, c| g < 0.25 && !c.near_cliffs() && !c.river.near_water() && !c.path.0.is_way(),
false,
);
Self::generate_spots(
Spot::DwarvenGrave,
world,
10.0,
|g, c| g < 0.25 && !c.near_cliffs() && !c.river.near_water() && !c.path.0.is_way(),
false,
@ -111,6 +119,11 @@ pub fn apply_spots_to(canvas: &mut Canvas, _dynamic_rng: &mut impl Rng) {
entity_radius: 12.0,
entities: &[(4..6, "common.entity.spot.bandit_camp.saurok")],
},
Spot::DwarvenGrave => SpotConfig {
base_structures: Some("spots_grasslands.dwarven_grave"),
entity_radius: 60.0,
entities: &[(6..12, "common.entity.spot.bandit_camp.dwarf_grave_robber")],
},
};
// Blit base structure