Decode reward keys and use mapping files
Add decoding for Monopoly reward keys and switch reward metadata to be looked up by decoded id. Implement decode_reward_key() and infer_reward_type(); replace the previous raw-key KNOWN_REWARDS approach with REWARDS_BY_ID built from mappings/*.json. Add mappings/items.json and expand mappings/arcs.json. Update decoder to produce reward_id, use REWARDS_BY_ID, and change guess_quantity() to accept reward_id. Refactor pool_mappings to reuse the new mapping loader, and update tests and docs to validate mapping files and document the reward key encoding/behavior.
This commit is contained in:
parent
401df44ecd
commit
354b0e9232
8 changed files with 197 additions and 113 deletions
8
mappings/items.json
Normal file
8
mappings/items.json
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"DiceNormal": {"type": "item", "name": "Fabricated Dice", "rank": null},
|
||||
"Dice_ticket_01": {"type": "item", "name": "Warp Piece", "rank": null},
|
||||
"Dice_ticket_02": {"type": "item", "name": "Lost Piece", "rank": null},
|
||||
"Dicelimite": {"type": "item", "name": "Solid Dice", "rank": null},
|
||||
"Fashion_vehicle_1010_V008": {"type": "cosmetic", "name": "Fashion Vehicle Skin 1010 V008", "rank": null},
|
||||
"Fashion_Glide_1010": {"type": "cosmetic", "name": "Fashion Glider 1010", "rank": null}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue