mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Adjust loot tables
- Add regular drop to T5 miniboss - Fixup cultist loot table - Give own loot table to Deadwood in T0
This commit is contained in:
parent
a1037501e2
commit
4156f373c1
@ -1,23 +0,0 @@
|
||||
[
|
||||
(4.0, LootTable("common.loot_tables.materials.common")),
|
||||
(3.0, LootTable("common.loot_tables.food.wild_ingredients")),
|
||||
(2.0, LootTable("common.loot_tables.food.prepared")),
|
||||
(0.25, Item("common.items.armor.misc.neck.plain_1")),
|
||||
(0.1, Item("common.items.glider.glider_blue")),
|
||||
(0.5, Item("common.items.utility.firework_purple")),
|
||||
(0.5, Item("common.items.utility.bomb")),
|
||||
(0.5, Item("common.items.armor.misc.ring.gold")),
|
||||
(0.25, Item("common.items.armor.misc.ring.skull")),
|
||||
(2.0, LootTable("common.loot_tables.armor.swift")),
|
||||
(2.0, LootTable("common.loot_tables.armor.agile")),
|
||||
(3.0, LootTable("common.loot_tables.armor.plate")),
|
||||
(2.0, LootTable("common.loot_tables.armor.steel")),
|
||||
(0.001, Item("common.items.armor.misc.back.backpack")),
|
||||
(0.1, Item("common.items.armor.misc.bag.heavy_seabag")),
|
||||
(1.0, LootTable("common.loot_tables.weapons.tier-0")),
|
||||
(2.0, LootTable("common.loot_tables.weapons.tier-1")),
|
||||
(3.0, LootTable("common.loot_tables.weapons.tier-2")),
|
||||
(4.0, LootTable("common.loot_tables.weapons.tier-3")),
|
||||
(4.0, LootTable("common.loot_tables.weapons.tier-4")),
|
||||
(3.0, LootTable("common.loot_tables.weapons.tier-5")),
|
||||
]
|
5
assets/common/loot_tables/dungeon/tier-0/miniboss.ron
Normal file
5
assets/common/loot_tables/dungeon/tier-0/miniboss.ron
Normal file
@ -0,0 +1,5 @@
|
||||
[
|
||||
(1.0, LootTable("common.loot_tables.armor.cloth")),
|
||||
(2.0, LootTable("common.loot_tables.weapons.tier-0")),
|
||||
(2.0, LootTable("common.loot_tables.consumables")),
|
||||
]
|
@ -1,4 +1,11 @@
|
||||
[
|
||||
(1.0, LootTable("common.loot_tables.creature.biped_large.mindflayer")),
|
||||
(3.0, LootTable("common.loot_tables.dungeon.tier-5.miniboss")),
|
||||
(2.0, LootTable("common.loot_tables.creature.biped_large.mindflayer")),
|
||||
// miniboss part
|
||||
// armour
|
||||
(3.0, LootTable("common.loot_tables.armor.cultist")),
|
||||
(0.25, Item("common.items.armor.misc.back.dungeon_purple")),
|
||||
(0.5, Item("common.items.armor.misc.ring.skull")),
|
||||
// weapons
|
||||
(1.5, LootTable("common.loot_tables.weapons.cultist")),
|
||||
(1.5, LootTable("common.loot_tables.weapons.cave")),
|
||||
]
|
||||
|
@ -1,6 +1,24 @@
|
||||
[
|
||||
(1.0, LootTable("common.loot_tables.humanoids")),
|
||||
(1.0, LootTable("common.loot_tables.weapons.tier-5")),
|
||||
(3.0, LootTable("common.loot_tables.cultists")),
|
||||
// Materials
|
||||
(1.0, LootTable("common.loot_tables.materials.common")),
|
||||
(1.0, LootTable("common.loot_tables.food.wild_ingredients")),
|
||||
(1.0, LootTable("common.loot_tables.food.prepared")),
|
||||
(5.0, Item("common.items.food.cheese")),
|
||||
]
|
||||
// Gear
|
||||
(3.0, LootTable("common.loot_tables.weapons.tier-5")),
|
||||
(2.0, LootTable("common.loot_tables.armor.steel")),
|
||||
(0.25, Item("common.items.armor.misc.neck.plain_1")),
|
||||
(0.5, Item("common.items.armor.misc.ring.gold")),
|
||||
(0.25, Item("common.items.armor.misc.ring.skull")),
|
||||
// Misc
|
||||
(0.1, Item("common.items.glider.glider_blue")),
|
||||
(0.001, Item("common.items.armor.misc.back.backpack")),
|
||||
(0.1, Item("common.items.armor.misc.bag.heavy_seabag")),
|
||||
(0.1, Item("common.items.utility.firework_blue")),
|
||||
(0.1, Item("common.items.utility.firework_green")),
|
||||
(0.1, Item("common.items.utility.firework_purple")),
|
||||
(0.1, Item("common.items.utility.firework_red")),
|
||||
(0.1, Item("common.items.utility.firework_white")),
|
||||
(0.1, Item("common.items.utility.firework_yellow")),
|
||||
(0.5, Item("common.items.utility.bomb")),
|
||||
]
|
||||
|
@ -1,9 +1,11 @@
|
||||
[
|
||||
// armor
|
||||
(6.0, LootTable("common.loot_tables.armor.cultist")),
|
||||
(1.0, Item("common.items.armor.misc.back.dungeon_purple")),
|
||||
(1.0, Item("common.items.armor.misc.ring.skull")),
|
||||
(3.0, LootTable("common.loot_tables.armor.cultist")),
|
||||
(0.25, Item("common.items.armor.misc.back.dungeon_purple")),
|
||||
(0.5, Item("common.items.armor.misc.ring.skull")),
|
||||
// weapons
|
||||
(1.5, LootTable("common.loot_tables.weapons.cultist")),
|
||||
(1.5, LootTable("common.loot_tables.weapons.cave")),
|
||||
// to not get boring from getting OP loot
|
||||
(6.0, LootTable("common.loot_tables.dungeon.tier-5.enemy")),
|
||||
]
|
||||
|
@ -1220,7 +1220,7 @@ fn boss_fallback(dynamic_rng: &mut impl Rng, tile_wcenter: Vec3<i32>) -> Vec<Ent
|
||||
}
|
||||
|
||||
fn mini_boss_0(dynamic_rng: &mut impl Rng, tile_wcenter: Vec3<i32>) -> Vec<EntityInfo> {
|
||||
let chosen = Lottery::<LootSpec>::load_expect("common.loot_tables.weapons.tier-0");
|
||||
let chosen = Lottery::<LootSpec>::load_expect("common.loot_tables.dungeon.tier-0.miniboss");
|
||||
vec![
|
||||
EntityInfo::at(tile_wcenter.map(|e| e as f32))
|
||||
.with_body(comp::Body::QuadrupedLow(
|
||||
@ -1240,7 +1240,7 @@ fn mini_boss_1(dynamic_rng: &mut impl Rng, tile_wcenter: Vec3<i32>) -> Vec<Entit
|
||||
entities.resize_with(4, || {
|
||||
EntityInfo::at(tile_wcenter.map(|e| e as f32))
|
||||
.with_body(comp::Body::QuadrupedSmall(
|
||||
comp::quadruped_low::Body::random_with(
|
||||
comp::quadruped_small::Body::random_with(
|
||||
dynamic_rng,
|
||||
&comp::quadruped_small::Species::Rat,
|
||||
),
|
||||
@ -1281,7 +1281,7 @@ fn mini_boss_3(dynamic_rng: &mut impl Rng, tile_wcenter: Vec3<i32>) -> Vec<Entit
|
||||
),
|
||||
))
|
||||
.with_name("Bonerattler".to_string())
|
||||
.with_loot_drop(chosen.read().choose().to_item()),
|
||||
.with_loot_drop(chosen.read().choose().to_item())
|
||||
});
|
||||
entities
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user