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:
juliancoffee 2021-05-22 22:14:07 +03:00
parent a1037501e2
commit 4156f373c1
6 changed files with 44 additions and 35 deletions

View File

@ -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")),
]

View 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")),
]

View File

@ -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")),
]

View File

@ -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")),
]

View File

@ -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")),
]

View File

@ -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
}