roll_cypher.py
def print_roll_results(level=1, mod=0, add=0):
    """A function to roll and tell you results. Returns a tuple of success and the die roll"""
    success, result = check_roll(level, mod, add)
    if result == 1:
        print("Major Failure! Free DM intrusion.")
    elif result == 20:
        print("Major Crit!")
    elif result == 19:
        print("Minor Crit!")
    if success:
        print("You succeed with a {}".format(result))
        return success, result
    else:
        print("You failed with a {}".format(result))
        return success, result
A function to roll and tell you results. Returns a tuple of success and the die roll
A function to roll and tell you results. Returns a tuple of success and the die roll
A function to roll and tell you results . Returns a tuple of success and the die roll
def print_roll_results(level=1, mod=0, add=0):
    success, result = check_roll(level, mod, add)
    if result == 1:
        print("Major Failure! Free DM intrusion.")
    elif result == 20:
        print("Major Crit!")
    elif result == 19:
        print("Minor Crit!")
    if success:
        print("You succeed with a {}".format(result))
        return success, result
    else:
        print("You failed with a {}".format(result))
        return success, result
def print_roll_results ( level = 1 , mod = 0 , add = 0 ) : success , result = check_roll ( level , mod , add ) if result == 1 : print ( "Major Failure! Free DM intrusion." ) elif result == 20 : print ( "Major Crit!" ) elif result == 19 : print ( "Minor Crit!" ) if success : print ( "You succeed with a {}" . format ( result ) ) return success , result else : print ( "You failed with a {}" . format ( result ) ) return success , result
A function to roll and tell you results.
A function to roll and tell you results .
"""A function to roll and tell you results. Returns a tuple of success and the die roll"""
level
mod
add