Add Dice Throne script
Closed this issue · 2 comments
NonlinearFruit commented
Attack opponents and activate abilities by rolling your hero's unique set of five dice
Yaml configs could be used:
https://python.land/data-processing/python-yaml
pip install pyyaml
import yaml
with open('config.yml', 'r') as file
prime_service = yaml.safe_load(file)
NonlinearFruit commented
Config file like so:
Dice:
Bullet: [1, 2, 3]
Dash: [4, 5]
Bullseye: [6]
Powers:
- Revolver 1: ["Bullet", "Bullet", "Bullet"]
- Revolver 2: ["Bullet", "Bullet", "Bullet", "Bullet"]
- Revolver 3: ["Bullet", "Bullet", "Bullet", "Bullet", "Bullet"]
- Bounty Hunter: ["Bullet", "Bullet", "Bullseye", "Bullseye"]
- Take Cover: ["Bullet", "Bullet", "Dash", "Dash", "Dash"]
- Fill'em With Lead!: ["Bullseye", "Bullseye", "Bullseye", "Bullseye", "Bullseye"]
- Deadeye: ["Bullseye", "Bullseye", "Bullseye", "Bullseye"]
- Showdown:
- [1, 2, 3, 4]
- [2, 3, 4, 5]
- [3, 4, 5, 6]
- Fan The Hammer:
- [1, 2, 3, 4, 5]
- [2, 3, 4, 5, 6]
NonlinearFruit commented
Call script like so:
$ python dice_throne.python Gunslinger --dice 6 6 --rolls-left 2
Showdown: 12%
Revolver 1: 11%
Deadeye: 10%
Fill'em With Lead!: 9%
.
.
.