botemon 0.5.6 → 0.5.6.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/lib/botemon/smogon/pokemon.rb +5 -4
- data/lib/botemon/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: b84ac56a6722239232b61f370bec3c9eb03e7d36
|
4
|
+
data.tar.gz: e27aeea4ce042d866e3f269c60da4a20f7b898be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54410698aa226dbe63eec98dba8e3fe4c66a54de016d6c2f0d3ade439ac6b561d52d6955cfed414fb3eacc2f6ffe4870acc962b1e1878d96a7e113838d44485b
|
7
|
+
data.tar.gz: 9b6a528cf5810968c0bf0384854b77f01eee8c8e7292c4ee65e45a9a2064e94a91c7374fdb19f9990c1dd1be7ff77f9732058efee8589cdca13844a0eb544efd
|
@@ -22,11 +22,11 @@ module Smogon
|
|
22
22
|
attr_accessor :name, :_name, :types, :tier, :abilities, :base_stats, :moves
|
23
23
|
|
24
24
|
def to_s
|
25
|
-
"Name: #{name}\nAbility: #{abilities.join(', ')}\nType: #{types.join(?/)}\nTier: #{tier}\nBase stats: #{base_stats.join(?/)}\nMoves: #{moves.join(', ')}"
|
25
|
+
"Name: #{@name}\nAbility: #{@abilities.join(', ')}\nType: #{@types.join(?/)}\nTier: #{@tier}\nBase stats: #{@base_stats.join(?/)}\nMoves: #{@moves.take(20).join(', ')}..."
|
26
26
|
end
|
27
27
|
|
28
28
|
def clues
|
29
|
-
"Ability: #{abilities.join(', ')}\nType: #{types.join(?/)}\nTier: #{tier}\nBase stats: #{base_stats.join(?/)}"
|
29
|
+
"Ability: #{@abilities.join(', ')}\nType: #{@types.join(?/)}\nTier: #{@tier}\nBase stats: #{@base_stats.join(?/)}"
|
30
30
|
end
|
31
31
|
|
32
32
|
def self.to_pokemon(ary)
|
@@ -42,13 +42,14 @@ module Smogon
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def to_ary
|
45
|
-
{
|
45
|
+
{
|
46
|
+
'name' => name,
|
46
47
|
'_name' => _name,
|
47
48
|
'types' => types,
|
48
49
|
'tier' => tier,
|
49
50
|
'abilities' => abilities,
|
50
51
|
'base_stats' => base_stats,
|
51
|
-
'moves'
|
52
|
+
'moves' => moves
|
52
53
|
}
|
53
54
|
end
|
54
55
|
|
data/lib/botemon/version.rb
CHANGED