savagezen / dnd-tools

ARCHIVE - MOVED TO GITLAB | Interactive CLI tools for Dungeons and Dragons 5e
https://gitlab.com/savagezen/dnd-tools
GNU Affero General Public License v3.0
164 stars 34 forks source link

Fix for Dice Roll Bug #14

Closed seldonPlan closed 5 years ago

seldonPlan commented 5 years ago

Current Behavior entering multiple dice, still only results in one roll:

$ dnd-tools 

        What would you like to do?          
        1) (C)reate Character / NPC         
        2) (R)oll Dice                      
        3) Roll Initiative (raw)            
        4) Encounter Experience Calculator  
        5) Get Treasure!                    
        6) Tarokka Fortune Cards            
        7) Wild Magic (Roll Effect)         
        0) (Q)uit                           

What would you like to do? 2
How many dice? 6
How many sides on each die? 20
12

        What would you like to do?          
        1) (C)reate Character / NPC         
        2) (R)oll Dice                      
        3) Roll Initiative (raw)            
        4) Encounter Experience Calculator  
        5) Get Treasure!                    
        6) Tarokka Fortune Cards            
        7) Wild Magic (Roll Effect)         
        0) (Q)uit                           

What would you like to do? 

Fix in the dice roll block, the start_fn() call is indented and a part of the for block, so entering multiple dice has no effect