/vqdr/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/vqdr/trunk

« back to all changes in this revision

Viewing changes to src/libvqdr/dice.vala

  • Committer: Gustav Hartvigsson
  • Date: 2021-05-24 15:49:06 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20210524154906-z65s7fxnt3zfb8qn
* FastNumber:
  * added ability to get the decimal.
  * added ability to set the decimal.
  * Explicitly define the raw number.
  * Made operatiors public

* OperatorToken:
  * uncommented the operators in init_token ()

* [...]OperatorToken:
  * constructers: protected -> public

* Tests:
  * Added test for FastNumber (need more cases)

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
      int retval = modifier;
34
34
      for (size_t i = 1; i <= times; i++) {
35
35
        int r = (VQDR.Common.Random.get_static_int () % faces).abs ();
 
36
        
36
37
        retval += r;
37
 
        
38
38
      }
39
39
      
40
40
      return retval;