Class: Studio::Nature
Overview
Data class describing a nature
Instance Attribute Summary collapse
-
#db_symbol ⇒ Symbol
readonly
db_symbol of the nature.
-
#flavors ⇒ Hash{Symbol=>Symbol}
readonly
Hash containing the liked and disliked flavors.
-
#id ⇒ Integer
readonly
ID of the nature.
-
#stats ⇒ Hash{Symbol=>Integer}
readonly
Hash containing the stats.
Instance Method Summary collapse
-
#atk ⇒ Integer
Get the atk modifier of the nature.
-
#ats ⇒ Integer
Get the ats modifier of the nature.
-
#dfe ⇒ Integer
Get the dfe modifier of the nature.
-
#dfs ⇒ Integer
Get the dfs modifier of the nature.
-
#disliked_flavor ⇒ Symbol
Get the disliked flavor of the nature.
-
#liked_flavor ⇒ Symbol
Get the liked flavor of the nature.
-
#name ⇒ String
Get the nature name.
-
#spd ⇒ Integer
Get the spd modifier of the nature.
-
#to_a ⇒ Array<Integer>
Get the important data in an array form Used in multiple contexts so it's easier to just return the same thing as before.
Instance Attribute Details
#db_symbol ⇒ Symbol (readonly)
db_symbol of the nature
1026 1027 1028 |
# File 'docs/3_Studio.rb', line 1026 def db_symbol @db_symbol end |
#flavors ⇒ Hash{Symbol=>Symbol} (readonly)
Hash containing the liked and disliked flavors
1032 1033 1034 |
# File 'docs/3_Studio.rb', line 1032 def flavors @flavors end |
#id ⇒ Integer (readonly)
ID of the nature
1023 1024 1025 |
# File 'docs/3_Studio.rb', line 1023 def id @id end |
#stats ⇒ Hash{Symbol=>Integer} (readonly)
Hash containing the stats
1029 1030 1031 |
# File 'docs/3_Studio.rb', line 1029 def stats @stats end |
Instance Method Details
#atk ⇒ Integer
Get the atk modifier of the nature
1039 1040 |
# File 'docs/3_Studio.rb', line 1039 def atk end |
#ats ⇒ Integer
Get the ats modifier of the nature
1047 1048 |
# File 'docs/3_Studio.rb', line 1047 def ats end |
#dfe ⇒ Integer
Get the dfe modifier of the nature
1043 1044 |
# File 'docs/3_Studio.rb', line 1043 def dfe end |
#dfs ⇒ Integer
Get the dfs modifier of the nature
1051 1052 |
# File 'docs/3_Studio.rb', line 1051 def dfs end |
#disliked_flavor ⇒ Symbol
Get the disliked flavor of the nature
1068 1069 |
# File 'docs/3_Studio.rb', line 1068 def disliked_flavor end |
#liked_flavor ⇒ Symbol
Get the liked flavor of the nature
1064 1065 |
# File 'docs/3_Studio.rb', line 1064 def liked_flavor end |
#spd ⇒ Integer
Get the spd modifier of the nature
1055 1056 |
# File 'docs/3_Studio.rb', line 1055 def spd end |
#to_a ⇒ Array<Integer>
Get the important data in an array form Used in multiple contexts so it's easier to just return the same thing as before
1060 1061 |
# File 'docs/3_Studio.rb', line 1060 def to_a end |