cleans up raws/mod.rs with trait impls for json parsing
This commit is contained in:
parent
875e6bfee7
commit
dc1cb0562f
5 changed files with 60 additions and 21 deletions
9
raws/loot_tables.json
Normal file
9
raws/loot_tables.json
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[
|
||||
{
|
||||
"id": "animal",
|
||||
"table": [
|
||||
{ "id": "animal_hide", "weight": 1},
|
||||
{ "id": "animal_meat", "weight": 1}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
@ -85,7 +85,8 @@
|
|||
"flags": ["MONSTER", "BLOCKS_TILE"],
|
||||
"bac": 6,
|
||||
"vision_range": 8,
|
||||
"attacks": [{ "name": "bites", "hit_bonus": 0, "damage": "1d2" }]
|
||||
"attacks": [{ "name": "bites", "hit_bonus": 0, "damage": "1d2" }],
|
||||
"equipped": ["equip_shortsword", "equip_body_leather", "equip_head_leather"]
|
||||
},
|
||||
{
|
||||
"id": "chicken",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue