cleans up spawning, rolling for items/mobs/traps separately
This commit is contained in:
parent
eff49f4528
commit
475f96d4e6
8 changed files with 169 additions and 74 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue