Files
ProgressQuest-cli/pqcli/data/weapons.json
T
Dash c0c6c8aeba mechanic: move word lists to data files
The word lists (monsters, spells, equipment, races, classes, titles and
so on) now live in pqcli/data/*.json instead of pqcli/config.py. A
GameData object loaded at startup is passed to the simulation and UIs.

Users can replace any list by putting NAME.json in
$XDG_CONFIG_HOME/pqcli/data/ or a directory given with --data-dir.
--dump-data DIR copies the built-in files out for editing. Malformed
files are reported and pqcli exits before starting the UI.

Combat task descriptions come from the new combat_verbs list, with
{target} standing for the enemy. The built-in list holds only "Executing
{target}", and a single verb consumes no random roll, so stock gameplay
is unchanged. Recorded traces in tests/fixtures pin this down.

Monster, Race and Class stay in pqcli.config so existing saves still
load.

Resolves #3
2026-10-17 15:55:41 +02:00

42 lines
1.5 KiB
JSON

[
{"name": "Stick", "quality": 0},
{"name": "Broken Bottle", "quality": 1},
{"name": "Shiv", "quality": 1},
{"name": "Sprig", "quality": 1},
{"name": "Oxgoad", "quality": 1},
{"name": "Eelspear", "quality": 2},
{"name": "Bowie Knife", "quality": 2},
{"name": "Claw Hammer", "quality": 2},
{"name": "Handpeen", "quality": 2},
{"name": "Andiron", "quality": 3},
{"name": "Hatchet", "quality": 3},
{"name": "Tomahawk", "quality": 3},
{"name": "Hackbarm", "quality": 3},
{"name": "Crowbar", "quality": 4},
{"name": "Mace", "quality": 4},
{"name": "Battleadze", "quality": 4},
{"name": "Leafmace", "quality": 5},
{"name": "Shortsword", "quality": 5},
{"name": "Longiron", "quality": 5},
{"name": "Poachard", "quality": 5},
{"name": "Baselard", "quality": 5},
{"name": "Whinyard", "quality": 6},
{"name": "Blunderbuss", "quality": 6},
{"name": "Longsword", "quality": 6},
{"name": "Crankbow", "quality": 6},
{"name": "Blibo", "quality": 7},
{"name": "Broadsword", "quality": 7},
{"name": "Kreen", "quality": 7},
{"name": "Warhammer", "quality": 7},
{"name": "Morning Star", "quality": 8},
{"name": "Pole-adze", "quality": 8},
{"name": "Spontoon", "quality": 8},
{"name": "Bastard Sword", "quality": 9},
{"name": "Peen-arm", "quality": 9},
{"name": "Culverin", "quality": 10},
{"name": "Lance", "quality": 10},
{"name": "Halberd", "quality": 11},
{"name": "Poleax", "quality": 12},
{"name": "Bandyclef", "quality": 15}
]