How pedroh288/betsu-rpg works
Betsu-RPG is a Python command-line toolkit for automating RPG session mechanics. A participant chooses a mestre or jogador menu, then enters a selected system: status calculations, bestiary lookup, shop information, or dice rolling; the mestre menu also offers probabilistic monster spawning by kingdom, region, and time. The systems use shared terminal helpers, while the bestiary, shop, and spawn modules load their respective JSON data files. The README documents these capabilities; the graph’s implementation links are limited to shown source and documented behavior.
Main entry points: main.py Role menus · utils.py Terminal helpers · betsuario.py Bestiary lookup · lojas.py Shop lookup
Components 11
CLI entry
- Role menus
main.py
Game systems
- Bestiary lookup
sistemas/betsuario.py - Shop lookup
sistemas/lojas.py - Monster spawn
sistemas/spawn.py - Status calculator
sistemas/status.py - Dice roller
sistemas/dado.py
Shared support
- Terminal helpers
sistemas/utils.py
World data
- Bestiary records
dados/betsuario.json - Shop records
dados/lojas.json - Spawn tables
dados/spawn.json
Other components
- Player or mestre
Connections 15
- Player or mestre → Role menus: selects role
main.py - Role menus → Terminal helpers: displays menu
main.py - Role menus → Status calculator: dispatches
main.py - Role menus → Bestiary lookup: dispatches
main.py - Role menus → Monster spawn: dispatches
main.py - Role menus → Shop lookup: dispatches
main.py - Role menus → Dice roller: dispatches
main.py - Bestiary lookup → Terminal helpers: uses helpers
sistemas/betsuario.py - Shop lookup → Terminal helpers: uses helpers
sistemas/lojas.py - Monster spawn → Terminal helpers: uses helpers
sistemas/spawn.py - Status calculator → Terminal helpers: uses helpers
sistemas/status.py - Dice roller → Terminal helpers: uses helpers
sistemas/dado.py - Bestiary lookup → Bestiary records: loads records
sistemas/betsuario.py - Shop lookup → Shop records: loads records
sistemas/lojas.py - Monster spawn → Spawn tables: loads tables
sistemas/spawn.py