Your dice routines might not be doing what you think. They don't conform to regular RPG expectations anyway.
This is closer to what I'd expect and write. Since you don't need or use the object, there is no reason to have it at all. rand(10) can never be 10 and will sometimes be (effectively) 0. I personally always omit explicit return statements unless they control flow in subroutine logic.
sub rollD10 { 1 + int( rand(10) ) }
In reply to Re: A small Deity AI class system
by Your Mother
in thread A small Deity AI class system
by holyghost
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |