cleans up raws/mod.rs with trait impls for json parsing

This commit is contained in:
Llywelwyn 2023-07-30 09:27:47 +01:00
parent 875e6bfee7
commit dc1cb0562f
5 changed files with 60 additions and 21 deletions

9
raws/loot_tables.json Normal file
View file

@ -0,0 +1,9 @@
[
{
"id": "animal",
"table": [
{ "id": "animal_hide", "weight": 1},
{ "id": "animal_meat", "weight": 1}
]
}
]

View file

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