Add alternate pull() command
Opened this issue · 0 comments
chazzam commented
Add a simpler logic-wise pull() command.
pull(self, the_pull, rank, pull_type, fortune_spent, tokens_drawn)
This would allow us to have a pull that can accept the current state of a pull from a database and give the current results accordingly.
- the_pull - the "replayable pull"
- rank - the numerical rank driving the pull. Unranked, Bronze, Silver, Gold
- pull_type - Skill, Resistance, Information Gathering, etc.
- fortune_spent - flag for whether fortune has been spent
- tokens_drawn - the count for the number of tokens that have been drawn for this pull so far.
When calling, we would basically just pass tokens_drawn + 1
, and it will just still check max_draw inside the function to keep from pulling more than that many.