overhaul: data-driven architecture
This commit is contained in:
parent
062d36f640
commit
f53b767376
19 changed files with 680 additions and 727 deletions
57
raws/spawn_tables.json
Normal file
57
raws/spawn_tables.json
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
[
|
||||
{
|
||||
"id": "equipment",
|
||||
"table": [
|
||||
{ "id": "equip_dagger", "weight": 4, "min": 0, "max": 100 },
|
||||
{ "id": "equip_shortsword", "weight": 2, "min": 0, "max": 100 },
|
||||
{ "id": "equip_smallshield", "weight": 4, "min": 0, "max": 100 },
|
||||
{ "id": "equip_mediumshield", "weight": 2, "min": 0, "max": 100 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "potions",
|
||||
"table": [
|
||||
{ "id": "potion_health_weak", "weight": 6, "min": 0, "max": 100 },
|
||||
{ "id": "potion_health", "weight": 3, "min": 0, "max": 100 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "scrolls",
|
||||
"table": [
|
||||
{ "id": "scroll_fireball", "weight": 2, "min": 0, "max": 100 },
|
||||
{ "id": "scroll_confusion", "weight": 2, "min": 0, "max": 100 },
|
||||
{ "id": "scroll_magicmap", "weight": 2, "min": 0, "max": 100 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "wands",
|
||||
"table": [
|
||||
{ "id": "wand_magicmissile", "weight": 1, "min": 0, "max": 100 },
|
||||
{ "id": "wand_fireball", "weight": 1, "min": 0, "max": 100 },
|
||||
{ "id": "wand_confusion", "weight": 1, "min": 0, "max": 100 },
|
||||
{ "id": "wand_digging", "weight": 1, "min": 0, "max": 100 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "food",
|
||||
"table": [
|
||||
{ "id": "food_rations", "weight": 1, "min": 0, "max": 100 },
|
||||
{ "id": "food_apple", "weight": 1, "min": 0, "max": 100 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mobs",
|
||||
"table": [
|
||||
{ "id": "goblin", "weight": 6, "min": 0, "max": 100 },
|
||||
{ "id": "orc", "weight": 2, "min": 0, "max": 100 },
|
||||
{ "id": "goblin_chieftain", "weight": 1, "min": 0, "max": 100 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "traps",
|
||||
"table": [
|
||||
{ "id": "trap_bear", "weight": 2, "min": 0, "max": 100 },
|
||||
{ "id": "trap_confusion", "weight": 1, "min": 0, "max": 100 }
|
||||
]
|
||||
}
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue