RpgTools 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 437924d49047a2130a12dee90acaea5c446ea0cb
4
- data.tar.gz: 7440243205aa3f8c74d52188fc7bcabb0a0cef94
3
+ metadata.gz: d6f8e4e0e921c063dc9b1b6b1d49fe589a3bf11e
4
+ data.tar.gz: 5d8aeaabb837b4fd058ae15f6aceb8e7992bd37a
5
5
  SHA512:
6
- metadata.gz: ecdea0456bd828ed25aac3c7b8504e4359ec835fb382e325e8655985a5dd8ec1b60f2a5f73fabe1231c3e49407de65a5fe94e98bf29cc7ee46af03787781b4b3
7
- data.tar.gz: 6134672b09c2228c941e65a023232ae775f613218d0f91954b38e3b8f7be783fa4069b12630e46fdb57e93279ecff737cf0ce32b4d28194268f09474d3ee5579
6
+ metadata.gz: 56456f7da102fca67b9c11a902023c975b300948abb2ca9b10d6ecdf37982bfff590c3afa4e7ba4516deae6290f8aa850326613e94f8abb9f28efcfbcf7b75a8
7
+ data.tar.gz: 4124861211a7c8e602c9bb7449a854d0d101dc806c52079107da1fb06f2d673c2f77a5d1ac17dac7eee018f3feefc2e426bf0fd16f794372227f59ca2ff2b3ca
data/README.md CHANGED
@@ -31,7 +31,7 @@ it also accepts modifiers like '+X' or '-X' to alter the roll result.
31
31
 
32
32
  * You can only create standard dice and fudge dice bags.
33
33
 
34
- `RpgTools::DiceBag.new("4d6-2)` will create a bag of four 6 sided dices with a -2 modifier.
34
+ `RpgTools::DiceBag.new("4d6-2")` will create a bag of four 6 sided dices with a -2 modifier.
35
35
 
36
36
  * The `roll` method rolls each dice of the bag.
37
37
  * The `total` attribute stores the sum of each dice result.
@@ -11,7 +11,11 @@ module RpgTools
11
11
 
12
12
  def card
13
13
  @card_picks += 1
14
- @value = joker_pick_check == true ? 'Joker' : standard_card
14
+ if @type == 54
15
+ @value = joker_pick_check == true ? 'Joker' : standard_card
16
+ else
17
+ @value = standard_card
18
+ end
15
19
  end
16
20
 
17
21
  def hand
data/rpg_tools.gemspec CHANGED
@@ -1,9 +1,9 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{RpgTools}
3
- s.version = '0.4.0'
3
+ s.version = '0.4.1'
4
4
  s.author = 'Yohan Piron'
5
5
  s.email = 'yinfei84@gmail.com'
6
- s.date = %q{2015-01-11}
6
+ s.date = %q{2015-03-04}
7
7
  s.summary = %q{RpgTools is a toolbox for tabletop games and RPGs}
8
8
  s.description = 'RpgTools gives you tools for your RPGs : dices, coins, cards...'
9
9
  s.homepage = 'https://github.com/Yinfei/rpg_tools.git'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RpgTools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yohan Piron
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-11 00:00:00.000000000 Z
11
+ date: 2015-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake