mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
dwarf grave
This commit is contained in:
parent
00c44be2da
commit
1278020c88
14
assets/common/entity/spot/bandit_camp/dwarf_grave_robber.ron
Normal file
14
assets/common/entity/spot/bandit_camp/dwarf_grave_robber.ron
Normal 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"),
|
||||
],
|
||||
)
|
@ -1,5 +1,5 @@
|
||||
EntityConfig (
|
||||
name: Automatic,
|
||||
name: Name("Villager"),
|
||||
body: RandomWith("humanoid"),
|
||||
alignment: Alignment(Npc),
|
||||
|
||||
|
13
assets/common/loadout/spots/dwarf_graverobber.ron
Normal file
13
assets/common/loadout/spots/dwarf_graverobber.ron
Normal 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),
|
||||
]),
|
||||
})
|
@ -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
BIN
assets/world/structure/natural/dwarven_grave.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user