RpgTools 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/rpg_tools/playing_card_deck.rb +5 -1
- data/rpg_tools.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6f8e4e0e921c063dc9b1b6b1d49fe589a3bf11e
|
4
|
+
data.tar.gz: 5d8aeaabb837b4fd058ae15f6aceb8e7992bd37a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
@
|
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.
|
3
|
+
s.version = '0.4.1'
|
4
4
|
s.author = 'Yohan Piron'
|
5
5
|
s.email = 'yinfei84@gmail.com'
|
6
|
-
s.date = %q{2015-
|
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.
|
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-
|
11
|
+
date: 2015-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|