ArkTools 0.1.0 → 0.1.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/ark_tool/version.rb +1 -1
- data/lib/generators/player_level.rb +5 -5
- 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: 68b3925dbee245b442ae39cc117f77ee42c6d9f1
|
4
|
+
data.tar.gz: 4e4c1ac258ffe08b2f00b69ba59c22658f46edb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05cbb96bbe71b27365ae912d39b9bbf3029fb5acccd8e10dfebd436dcc7ff656b953cc796699fe85bf32f6a9898d67c2ce5abfa6c0b2003754e78c0dd8105b4d
|
7
|
+
data.tar.gz: 95091206d5f427fb1d8b704ecd927718ed67df47df6780682ed74b3402d681ce05866b27727fa51ab5343f5a117ea887714d0728847e7923c0a32819eb066156
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ Currently this provides a command line tool named `arktool` which will create cu
|
|
8
8
|
|
9
9
|
Install the gem from rubygems as you normally would. Once installed, you'll have access to the command line tool named `arktool`.
|
10
10
|
|
11
|
-
$ gem install
|
11
|
+
$ gem install ArkTools
|
12
12
|
|
13
13
|
## Usage
|
14
14
|
|
data/lib/ark_tool/version.rb
CHANGED
@@ -3,7 +3,7 @@ module ArkTools
|
|
3
3
|
class ArkGameLevels
|
4
4
|
def initialize(max_level, options = {})
|
5
5
|
@max_level = max_level
|
6
|
-
@max_exp = options[:max_exp] == 0 ? max_level * 10000 : options[:max_exp]
|
6
|
+
@max_exp = options[:max_exp] == 0 ? @max_level * 10000 : options[:max_exp]
|
7
7
|
@growth_rate = options[:growth_rate] == 0 ? Math.log(@max_exp, @max_level) : options[:growth_rate]
|
8
8
|
end
|
9
9
|
|
@@ -14,7 +14,7 @@ module ArkTools
|
|
14
14
|
def _make_level_overrides
|
15
15
|
exp_config = []
|
16
16
|
|
17
|
-
(0
|
17
|
+
(0..(@max_level-1)).each { |lvl|
|
18
18
|
exp_config << "ExperiencePointsForLevel[#{lvl}]=#{_calc_exp lvl}"
|
19
19
|
}
|
20
20
|
|
@@ -23,7 +23,7 @@ module ArkTools
|
|
23
23
|
|
24
24
|
def _make_levels(type)
|
25
25
|
type = type.to_s.capitalize
|
26
|
-
max_experience = _calc_exp@max_level
|
26
|
+
max_experience = (_calc_exp @max_level - 1) + 1
|
27
27
|
|
28
28
|
raise RuntimeError, "type must be either 'Player' or 'Dino'" unless ["Player", "Dino"].include?(type)
|
29
29
|
|
@@ -32,11 +32,11 @@ module ArkTools
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def player_levels
|
35
|
-
_make_levels"Player"
|
35
|
+
_make_levels "Player"
|
36
36
|
end
|
37
37
|
|
38
38
|
def dino_levels
|
39
|
-
_make_levels"Dino"
|
39
|
+
_make_levels "Dino"
|
40
40
|
end
|
41
41
|
end
|
42
42
|
end
|