admiral_stats_parser 1.15.0 → 1.15.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ea59c2d245a42dc8f39a547f0e8a9dcaa11eb69
|
4
|
+
data.tar.gz: 157a5e8d6041955e5bf6ab51ae0906e05edd4779
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1047dbcda7963215ad882296c5c1a379f8a48a444e1000e4587c62d0635ce3b01bd46b73af893e49125e9718638d71908753649eb7aa7183fe0c19d7902d784d
|
7
|
+
data.tar.gz: 4fb806706a9328465a9539bcbdce05bee1967f83d274afe70e6853489e4b576f9d4c2b30cab276ba24256ea30c025031311b6a27c25cdbad1ed7badeafea86a6
|
@@ -193,8 +193,15 @@ class CharacterListInfo
|
|
193
193
|
n = lv - 145
|
194
194
|
# Lv145 までの累計経験値 = 3465000
|
195
195
|
3465000 + n * (2 * a + (n - 1) * d) / 2
|
196
|
+
when 151..155
|
197
|
+
# Lv155までは、次レベルまでの必要経験値が9000ずつ増えていく
|
198
|
+
a = 204000
|
199
|
+
d = 9000
|
200
|
+
n = lv - 150
|
201
|
+
# Lv150 までの累計経験値 = 4360000
|
202
|
+
4360000 + n * (2 * a + (n - 1) * d) / 2
|
196
203
|
else
|
197
|
-
|
204
|
+
nil
|
198
205
|
end
|
199
206
|
end
|
200
207
|
|
@@ -219,7 +226,12 @@ class CharacterListInfo
|
|
219
226
|
# 次のレベルまでの経験値
|
220
227
|
next_exp = convert_lv_to_exp(lv + 1)
|
221
228
|
|
222
|
-
|
223
|
-
|
229
|
+
if next_exp
|
230
|
+
# 次のレベルに達するまでに必要な経験値を加算して返す
|
231
|
+
current_exp + (next_exp - current_exp) * exp_percent / 100
|
232
|
+
else
|
233
|
+
# 最大レベルに達した場合は、現在のレベルまでの経験値のみを返す
|
234
|
+
current_exp
|
235
|
+
end
|
224
236
|
end
|
225
237
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: admiral_stats_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.15.
|
4
|
+
version: 1.15.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masahiro Yoshizawa
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|