Class: Studio::Nature

Inherits:
Object show all
Defined in:
docs/3_Studio.rb

Overview

Data class describing a nature

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#db_symbol ⇒ Symbol (readonly)

db_symbol of the nature

Returns:

  • (Symbol)


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

Returns:

  • (Hash{Symbol=>Symbol})


1032
1033
1034
# File 'docs/3_Studio.rb', line 1032

def flavors
  @flavors
end

#id ⇒ Integer (readonly)

ID of the nature

Returns:

  • (Integer)


1023
1024
1025
# File 'docs/3_Studio.rb', line 1023

def id
  @id
end

#stats ⇒ Hash{Symbol=>Integer} (readonly)

Hash containing the stats

Returns:

  • (Hash{Symbol=>Integer})


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

Returns:

  • (Integer)


1039
1040
# File 'docs/3_Studio.rb', line 1039

def atk
end

#ats ⇒ Integer

Get the ats modifier of the nature

Returns:

  • (Integer)


1047
1048
# File 'docs/3_Studio.rb', line 1047

def ats
end

#dfe ⇒ Integer

Get the dfe modifier of the nature

Returns:

  • (Integer)


1043
1044
# File 'docs/3_Studio.rb', line 1043

def dfe
end

#dfs ⇒ Integer

Get the dfs modifier of the nature

Returns:

  • (Integer)


1051
1052
# File 'docs/3_Studio.rb', line 1051

def dfs
end

#disliked_flavor ⇒ Symbol

Get the disliked flavor of the nature

Returns:

  • (Symbol)


1068
1069
# File 'docs/3_Studio.rb', line 1068

def disliked_flavor
end

#liked_flavor ⇒ Symbol

Get the liked flavor of the nature

Returns:

  • (Symbol)


1064
1065
# File 'docs/3_Studio.rb', line 1064

def liked_flavor
end

#name ⇒ String

Get the nature name

Returns:



1035
1036
# File 'docs/3_Studio.rb', line 1035

def name
end

#spd ⇒ Integer

Get the spd modifier of the nature

Returns:

  • (Integer)


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

Returns:

  • (Array<Integer>) —

    [text_id, atk%, dfe%, spd%, ats%, dfs%]



1060
1061
# File 'docs/3_Studio.rb', line 1060

def to_a
end