coop_al 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/coop_al/value.rb +10 -10
- data/lib/coop_al/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea83bd2787cffd48106a5721cc546f51250461d4
|
4
|
+
data.tar.gz: 315d7efdefb4e3328efda81686ec40d3fc90662d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b2e65911e9e4a7452ef9bdea515c51e9f16a5671e48c7be861f82d50ababac3a42ad7b900bcf3c37d52f756728d5905f0a7ad079d78c8d907c74619c3f8019d
|
7
|
+
data.tar.gz: ae1d9e336739f3fdd6c422a21d9fa2938d62a5929cfbcf0da383be3d698f4579223a0ef8893696d5674290bd04351d68525c4ad5f43b641700228e673575c5ac
|
data/lib/coop_al/value.rb
CHANGED
@@ -109,23 +109,23 @@ end
|
|
109
109
|
#
|
110
110
|
class Integer
|
111
111
|
def platinum
|
112
|
-
|
112
|
+
CoopAl::Value.platinum(to_i)
|
113
113
|
end
|
114
114
|
|
115
115
|
def gold
|
116
|
-
|
116
|
+
CoopAl::Value.gold(to_i)
|
117
117
|
end
|
118
118
|
|
119
119
|
def silver
|
120
|
-
|
120
|
+
CoopAl::Value.silver(to_i)
|
121
121
|
end
|
122
122
|
|
123
123
|
def copper
|
124
|
-
|
124
|
+
CoopAl::Value.copper(to_i)
|
125
125
|
end
|
126
126
|
|
127
127
|
def electrum
|
128
|
-
|
128
|
+
CoopAl::Value.electrum(to_i)
|
129
129
|
end
|
130
130
|
|
131
131
|
alias gp gold
|
@@ -140,23 +140,23 @@ end
|
|
140
140
|
#
|
141
141
|
class String
|
142
142
|
def platinum
|
143
|
-
|
143
|
+
CoopAl::Value.platinum(roll_dice(self))
|
144
144
|
end
|
145
145
|
|
146
146
|
def gold
|
147
|
-
|
147
|
+
CoopAl::Value.gold(roll_dice(self))
|
148
148
|
end
|
149
149
|
|
150
150
|
def silver
|
151
|
-
|
151
|
+
CoopAl::Value.silver(roll_dice(self))
|
152
152
|
end
|
153
153
|
|
154
154
|
def copper
|
155
|
-
|
155
|
+
CoopAl::Value.copper(roll_dice(self))
|
156
156
|
end
|
157
157
|
|
158
158
|
def electrum
|
159
|
-
|
159
|
+
CoopAl::Value.electrum(roll_dice(self))
|
160
160
|
end
|
161
161
|
|
162
162
|
alias gp gold
|
data/lib/coop_al/version.rb
CHANGED