jarcane / handhRL

A simple roguelike based on the Hulks and Horrors tabletop RPG written with Python 2.7 and libtcod
GNU General Public License v3.0
11 stars 1 forks source link

Create die roller function #6

Closed jarcane closed 10 years ago

jarcane commented 10 years ago

In order to begin adapting the rules from the game into handhRL, we're going to need a function to handle die rolls.

libtcod has a built in randomizer, and it apparently greatly prefers you use that randomizer over python random for any calls to the function.

Function needs to take two arguments, and an optional third, for the H&H form: _x_D_y_Hz.