cleans up spawning, rolling for items/mobs/traps separately

This commit is contained in:
Llywelwyn 2023-07-30 14:16:57 +01:00
parent eff49f4528
commit 475f96d4e6
8 changed files with 169 additions and 74 deletions

View file

@ -16,6 +16,7 @@ pub struct Mob {
pub vision_range: i32,
pub quips: Option<Vec<String>>,
pub equipped: Option<Vec<String>>,
pub loot: Option<LootTableInfo>,
}
#[derive(Deserialize, Debug)]
@ -34,3 +35,9 @@ pub struct NaturalAttack {
pub hit_bonus: i32,
pub damage: String,
}
#[derive(Deserialize, Debug)]
pub struct LootTableInfo {
pub table: String,
pub chance: f32,
}