I created a combat simulator for Trophy Gold that can be accessed via a jupyter notebook here: https://colab.research.google.com/drive/1rHSmOWa_p7YgAGfisr7ix550jWqmRrHF
This could be used to work out statistics based on monster endurance and number of players.
Itâs not user friendly to use, but I could modify it if it is of interest to anyone.
You can set up a party and a monster
state = {
'monster': { 'endurance': 12 },
'pcs': [
{'name': 'Alina','ruin': 1},
{'name': 'Baso','ruin': 1},
{'name': 'Kasien','ruin': 1},
{'name': 'Desarim','ruin': 1},
]
}
and run a simulation, getting a report
{'average_survivor_damage': 3.0,
'average_survivor_ruin': 4.0,
'monster_dead': True,
'num_pcs_dead': 3,
'rounds': 5}
and being able to inspect rounds of combat
===== round 3 =====
{'attack_roll': 10,
'dead': [{'name': 'Desarim', 'ruin': 6, 'weakness': 2}],
'extra_dice': 2,
'monster': {'defeated': False, 'endurance': 12},
'pcs': [{'name': 'Alina', 'ruin': 3, 'weakness': 3},
{'name': 'Baso', 'ruin': 5, 'weakness': 4},
{'name': 'Kasien', 'ruin': 3, 'weakness': 1},
{'name': 'Desarim', 'ruin': 6, 'weakness': 2}],
'rolls': [6, 2, 2, 4, 4, 3],
'survived': [{'name': 'Alina', 'ruin': 3, 'weakness': 3},
{'name': 'Baso', 'ruin': 5, 'weakness': 4},
{'name': 'Kasien', 'ruin': 3, 'weakness': 1}],
'time': 4,
'wounded': [{'name': 'Desarim', 'ruin': 6, 'weakness': 2},
{'name': 'Desarim', 'ruin': 6, 'weakness': 2},
{'name': 'Baso', 'ruin': 5, 'weakness': 4},
{'name': 'Baso', 'ruin': 5, 'weakness': 4},
{'name': 'Alina', 'ruin': 3, 'weakness': 3}]}