CoC-Calc 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/CoC-Calc.rb +4 -4
- 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: eff7ba9f4400eca5760cc0dd3b0234258dd46c68
|
4
|
+
data.tar.gz: f6391bad544b9c8b835a86535036094a52f94d0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c1e319e3c0f5d01f4ac508c15f049769c1f05c830229857d2ff0eba08d1bb46a22780c4ae102e1d1363c2ffff42c1b6f7427ece9bdea965b87e44e7692015fa
|
7
|
+
data.tar.gz: 59f1b70399c5401141df1916d2d53be7525dc8646ff1fb019f84f9df7598727c7053edaf1c7db1af24681b7f9c63da392761bf3959b8f737d0303b0ba48b445e
|
data/lib/CoC-Calc.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
def stand
|
2
|
-
puts "CoC-Calc up and running, Sir! Version: 1.2.
|
2
|
+
puts "CoC-Calc up and running, Sir! Version: 1.2.5"
|
3
3
|
end
|
4
4
|
|
5
5
|
def init
|
@@ -105,7 +105,7 @@ def get_troop_cost
|
|
105
105
|
#giants
|
106
106
|
|
107
107
|
if $lvls[3].to_i == 1 or $lvls[3].to_i == 2 or $lvls[3].to_i == 3 or $lvls[3].to_i == 4 or $lvls[3].to_i == 5 or $lvls[3].to_i == 6
|
108
|
-
$cost_wizards = $lvls[3].
|
108
|
+
$cost_wizards = $lvls[3].to_i * 500
|
109
109
|
else
|
110
110
|
puts "Your giant lvl is invalid"
|
111
111
|
$troopLvlErr = true
|
@@ -132,7 +132,7 @@ def get_troop_cost
|
|
132
132
|
#ballons
|
133
133
|
|
134
134
|
if $lvls[5].to_i == 1 or $lvls[5].to_i == 2 or $lvls[5].to_i == 3 or $lvls[5].to_i == 4 or $lvls[5].to_i == 5 or $lvls[5].to_i == 6
|
135
|
-
$cost_wizards = 1500 + $lvls[5].
|
135
|
+
$cost_wizards = 1500 + $lvls[5].to_i * 500
|
136
136
|
else
|
137
137
|
puts "Your ballon lvl is invalid"
|
138
138
|
$troopLvlErr = true
|
@@ -140,7 +140,7 @@ def get_troop_cost
|
|
140
140
|
|
141
141
|
#wizards
|
142
142
|
if $lvls[6].to_i == 1 or $lvls[6].to_i == 2 or $lvls[6].to_i == 3 or $lvls[6].to_i == 4 or $lvls[6].to_i == 5 or $lvls[6].to_i == 6
|
143
|
-
$cost_wizards = 1000 + $lvls[6].
|
143
|
+
$cost_wizards = 1000 + $lvls[6].to_i * 500
|
144
144
|
else
|
145
145
|
puts "Your wizard lvl is invalid"
|
146
146
|
$troopLvlErr = true
|