stattr 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/stattr.rb +2 -5
  2. metadata +1 -1
data/lib/stattr.rb CHANGED
@@ -1,17 +1,14 @@
1
1
  $statlist = ['STR', 'DEX', 'CHA', 'INT', 'WIS', 'CON']
2
2
 
3
3
  # Roll a D(sides) size die.
4
- def rollD(sides)
4
+ def rolld(sides)
5
5
  return rand(sides) + 1
6
6
  end
7
7
 
8
8
 
9
9
  # Rolls a number of dice of particular sizes.
10
- def rollmanyD(dice, sides)
10
+ def rollmanyd(sides, dice)
11
11
  rolls = 0
12
- #for i in (1..dice)
13
- #rolls = rolls + rollD(sides)
14
- #end
15
12
  (1..dice).each do |i|
16
13
  rolls = rolls + rollD(sides)
17
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stattr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: