Class: PFM::Skill

Inherits:
Object show all
Defined in:
docs/4_Systems_000_General_1_PFM.rb

Overview

The InGame skill/move information of a Pokemon

Author:

  • Nuri Yuri

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(db_symbol) ⇒ Skill

Create a new Skill information

Parameters:

  • db_symbol (Symbol) —

    db_symbol of the skill/move in the database



2169
2170
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2169

def initialize(db_symbol)
end

Instance Attribute Details

#id ⇒ Integer (readonly)

ID of the skill in the Database

Returns:

  • (Integer)


2166
2167
2168
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2166

def id
  @id
end

#pp ⇒ Integer

The current number of PP the skill has

Returns:

  • (Integer)


2163
2164
2165
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2163

def pp
  @pp
end

#ppmax ⇒ Integer

The maximum number of PP the skill has

Returns:

  • (Integer)


2160
2161
2162
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2160

def ppmax
  @ppmax
end

Instance Method Details

#accuracy ⇒ Integer

Return the actual accuracy of the skill

Returns:

  • (Integer)


2218
2219
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2218

def accuracy
end

#accuracy_text ⇒ String

Return the accuracy text of the skill

Returns:



2222
2223
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2222

def accuracy_text
end

#appeal ⇒ Integer

Return the appeal value of the skill

Returns:

  • (Integer)


2210
2211
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2210

def appeal
end

#atk_class ⇒ Integer

Get the ATK class for the UI

Returns:

  • (Integer)


2246
2247
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2246

def atk_class
end

#base_power ⇒ Integer Also known as: power

Return the base power (Data power) of the skill

Returns:

  • (Integer)


2197
2198
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2197

def base_power
end

#condition ⇒ Integer

Return the condition ID of the skill

Returns:

  • (Integer)


2206
2207
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2206

def condition
end

#contest_description ⇒ String

Get the skill contest description

Returns:



2230
2231
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2230

def contest_description
end

#data ⇒ Studio::Move

Return the actual data of the move

Returns:



2173
2174
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2173

def data
end

#db_symbol ⇒ Symbol

Return the db_symbol of the skill

Returns:

  • (Symbol)


2177
2178
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2177

def db_symbol
end

#description ⇒ String

Return the skill description

Returns:



2226
2227
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2226

def description
end

#jam ⇒ Integer

Return the jam value of the skill

Returns:

  • (Integer)


2214
2215
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2214

def jam
end

#map_use ⇒ Integer

Return the ID of the common event to call on Map use

Returns:

  • (Integer)


2234
2235
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2234

def map_use
end

#name ⇒ String

Return the name of the skill

Returns:



2181
2182
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2181

def name
end

#power_text ⇒ String

Return the text of the power of the skill

Returns:



2189
2190
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2189

def power_text
end

#pp_text ⇒ String

Return the text of the PP of the skill

Returns:



2193
2194
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2193

def pp_text
end

#symbol ⇒ Symbol

Return the symbol of the method to call in BattleEngine

Returns:

  • (Symbol)


2185
2186
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2185

def symbol
end

#type ⇒ Integer

Return the actual type ID of the skill

Returns:

  • (Integer)


2202
2203
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2202

def type
end

#type?(type_id) ⇒ Boolean

Is the skill a specific type ?

Parameters:

  • type_id (Integer) —

    ID of the type

Returns:

  • (Boolean)


2238
2239
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2238

def type?(type_id)
end