Class: Battle::Move
Overview
Generic class describing a move
Defined Under Namespace
Modules: Mechanics, StatStageReset Classes: AbilityChanging, Absorb, Acrobatics, Acupressure, AddThirdType, AfterYou, AlluringVoice, AllySwitch, AquaRing, Assist, Assurance, Attract, AuraWheel, Autotomize, Avalanche, BaddyBad, Basic, BasicWithSuccessfulEffect, BatonPass, BeakBlast, BeatUp, Belch, BellyDrum, Bestow, Bide, Bind, BodyPress, BrickBreak, Brine, BurnUp, BurningJealousy, Camouflage, CantSwitch, Captivate, CeaselessEdge, ChangeType, Charge, ChillyReception, ClangorousSoul, ClearSmog, Conversion, Conversion2, CoreEnforcer, CorrosiveGas, Counter, CounterBase, CourtChange, CraftyShield, Curse, CustomStatsBased, Defog, DestinyBond, Disable, DoNothing, Doodle, DoubleIronBash, DragonCheer, DragonDarts, EchoedVoice, EerieSpell, Electrify, ElectroBall, ElectroShot, Embargo, Encore, Endeavor, Entrainment, Eruption, ExpandingForce, Facade, FairyLock, FakeOut, FalseSwipe, Fangs, Feint, FellStinger, FickleBeam, FilletAway, FinalGambit, FishiousRend, FixedDamages, Flail, FlameBurst, Fling, FloralHealing, FlowerShield, FlyingPress, FocusEnergy, FocusPunch, FollowMe, ForceSwitch, Foresight, FoulPlay, FreezyFrost, Frustration, FullCrit, FuryCutter, FusionBolt, FusionFlare, FutureSight, GastroAcid, GearUp, GeniesStorm, Geomancy, GigatonHammer, GlaiveRush, GlitzyGlow, GrassyGlide, GravApple, Gravity, Growth, Grudge, GuardSplit, GuardSwap, GyroBall, HPEqLevel, HappyHour, HardPress, Haze, HealBell, HealBlock, HealMove, HealWeather, HealingSacrifice, HealingWish, HeartSwap, HeavySlam, HelpingHand, Hex, HiddenPower, HighJumpKick, HitThenCureStatus, IceSpinner, Imprison, Incinerate, InfernalParade, Ingrain, Instruct, IonDeluge, IvyCudgel, JawLock, Judgment, JungleHealing, KnockOff, LaserFocus, LashOut, LastResort, LastRespects, LeechSeed, LifeDew, LockOn, LowKick, LuckyChant, LunarDance, MagicCoat, MagicPowder, MagicRoom, MagnetRise, MagneticFlux, Magnitude, MakeItRain, MeFirst, Memento, MetalBurst, Metronome, Mimic, MindBlown, Minimize, MiracleEye, MirrorCoat, MirrorMove, Mist, MistyExplosion, MudSport, MultiAttack, MultiHit, NaturalGift, NaturePower, Nightmare, NoRetreat, OHKO, Octolock, OrderUp, PainSplit, PartingShot, PayBack, PayDay, PerishSong, PhotonGeyser, PlasmaFists, Pledge, Pluck, PollenPuff, Poltergeist, PopulationBomb, Powder, PowerSplit, PowerSwap, PowerTrick, PreAttackBase, Present, Protect, PsychUp, PsychicNoise, PsychoShift, Psywave, Purify, Pursuit, Quash, Rage, RageFist, RagingBull, RapidSpin, RecoilMove, Recycle, Reflect, ReflectType, RelicSong, Reload, Rest, Retaliate, Return, RevelationDance, Revenge, RevivalBlessing, RisingVoltage, RolePlay, Rollout, Roost, Rototiller, Round, SacredSword, Safeguard, SaltCure, SappySeed, ScaleShot, SecretPower, SelfDestruct, SelfStat, SelfStatus, ShedTail, ShellSideArm, ShellTrap, ShoreUp, SimpleBeam, Sketch, SkillSwap, SkyDrop, SleepTalk, SmackDown, SmellingSalts, Snatch, Snore, SolarBeam, SparklingAria, SparklySwirl, SpectralThief, SpeedSwap, Spikes, SpitUp, Spite, Splash, StatAndStageEdit, StatAndStageEditBypassAccuracy, StatusBoostedMove, StatusStat, StealthRock, SteelRoller, StickyWeb, Stockpile, Stomp, StompingTantrum, StoneAxe, StoredPower, StrengthSap, Struggle, StuffCheeks, Substitute, SuckerPunch, SuperDuperEffective, SuperFang, Swallow, Switcheroo, Synchronoise, SyrupBomb, Tailwind, TakeHeart, TarShot, Taunt, Teatime, TechnoBlast, Telekinesis, Teleport, TerrainBoosting, TerrainMove, TerrainPulse, Thief, Thrash, ThreeHit, ThroatChop, Thunder, TidyUp, TopsyTurvy, Torment, ToxicSpikes, ToxicThread, Transform, TriAttack, TrickRoom, TripleArrows, TripleKick, TrumpCard, TwoHit, TwoTurnBase, UTurn, UpRoar, UpperHand, VenomDrench, Venoshock, WakeUpSlap, WaterShuriken, WeatherBall, WeatherMove, Wish, WonderRoom, WorrySeed, WringOut, Yawn
Constant Summary collapse
- REGISTERED_MOVES =
List of the registered moves
Hash.new(Move)
- R_RANGE =
Range of the R random factor
85..100
- OneTarget =
List of symbol describe a one target aim
%i[any_other_pokemon random_foe adjacent_pokemon adjacent_foe user user_or_adjacent_ally adjacent_ally]
- TargetNoAsk =
List of symbol that doesn't show any choice of target
%i[adjacent_all_foe all_foe adjacent_all_pokemon all_pokemon user all_ally all_ally_but_user random_foe]
Instance Attribute Summary collapse
-
#consecutive_use_count ⇒ Integer
Number of time the move was used consecutively.
-
#damage_dealt ⇒ Integer
Number of damage dealt last time the move was used (to be used with move history).
-
#effectiveness ⇒ Float
readonly
Get the effectiveness.
-
#forced_next_move_decrease_pp ⇒ Boolean
Tell if forced next move decreases PP.
-
#id ⇒ Integer
readonly
ID of the move in the database.
-
#logic ⇒ Battle::Logic
readonly
The battle logic.
-
#original ⇒ Battle::Move
The original move (for cloned moves).
-
#original_target ⇒ Array<PFM::PokemonBattler>
The original target of the move (to be used with Magic Bounce/Coat).
-
#pp ⇒ Integer
Number of pp the move currently has.
-
#ppmax ⇒ Integer
readonly
Maximum number of pp the move currently has.
-
#scene ⇒ Battle::Scene
readonly
The battle scene.
-
#thrown_item_effect ⇒ Battle::Effects::Item?
readonly
Get the item effect of the thrown item (to be used with Fling).
-
#used ⇒ Boolean
if the move has been used.
-
#user ⇒ PFM::PokemonBattler?
readonly
Get the user of the move.
Class Method Summary collapse
-
.[](symbol) ⇒ Class<Battle::Move>
Retrieve a registered move.
-
.register(symbol, klass)
Register a move.
Instance Method Summary collapse
-
#accuracy ⇒ Integer
Return the current accuracy of the move.
-
#accuracy_mod(user) ⇒ Float
Return the accuracy modifier of the user.
-
#accuracy_text ⇒ String
Return the accuracy text of the skill (for the UI).
-
#atk_class ⇒ Integer
Return the class of the skill (used by the UI).
-
#authentic? ⇒ Boolean
Tell if the move is a move that can bypass Substitute.
-
#ballistics? ⇒ Boolean
Tell if the move is a ballistic move.
-
#battle_stage_mod ⇒ Array<Studio::Move::BattleStageMod>
Return the stat stage modifier the skill can apply.
-
#battler_targets(pokemon, logic) ⇒ Array<PFM::PokemonBattler>
List the targets of this move.
-
#be_method ⇒ Symbol
(also: #symbol)
Return the battle engine method of the move.
-
#bite? ⇒ Boolean
Tell if the move is biting move.
-
#blocable? ⇒ Boolean
Is the skill blocable by Protect and skill like that ?.
-
#blocked_by?(target, symbol) ⇒ Boolean
Detect if the move is protected by another move on target.
-
#bypass_chance_of_hit?(user, target) ⇒ Boolean
Check if the move bypass chance of hit and cannot fail.
-
#calc_stab(user, types) ⇒ Numeric
STAB calculation.
-
#chance_of_hit(user, target) ⇒ Float
Return the chance of hit of the move.
-
#check_specific_procedure(user, targets) ⇒ Symbol?
Check if an Effects imposes a specific proceed_internal.
-
#clone
Clone the move and give a reference to the original one.
-
#critical_hit? ⇒ Boolean
Was the move a critical hit.
-
#critical_rate ⇒ Integer
Return the critical rate index of the skill.
-
#damages(user, target) ⇒ Integer
Method calculating the damages done by the actual move.
-
#dance? ⇒ Boolean
Tell if the move is a dance move.
-
#data ⇒ Studio::Move
Return the data of the skill.
-
#db_symbol ⇒ Symbol
Return the symbol of the move in the database.
-
#definitive_types(user, target) ⇒ Array<Integer>
Get the types of the move with 1st type being affected by effects.
-
#description ⇒ String
Return the skill description.
-
#direct? ⇒ Boolean
Is the skill direct ?.
-
#disable_reason(user) ⇒ #call
Get the reason why the move is disabled.
-
#disabled?(user) ⇒ Boolean
Function that tells if the move is disabled.
-
#drain? ⇒ Boolean
Tell that the move is a drain move.
-
#drain_factor ⇒ Integer
Returns the drain factor.
-
#effect_chance ⇒ Integer
Return the chance of effect of the skill.
-
#efficent_message(effectiveness, target)
Show the effectiveness message.
-
#evasion_mod(target) ⇒ Float
Return the evasion modifier of the target.
-
#force_switch? ⇒ Boolean
Tell if the move is a move that forces target switch.
-
#gravity_affected? ⇒ Boolean
Is the skill affected by gravity.
-
#heal? ⇒ Boolean
Tell if the move is a heal move.
-
#hit_criticality_message(actual_targets, target)
Show the critical hit message.
-
#initialize(db_symbol, pp, ppmax, scene) ⇒ Move
constructor
Create a new move.
-
#made_contact? ⇒ Boolean
Tells if the move made contact with target.
-
#magic_coat_affected? ⇒ Boolean
Is the skill affected by magic coat ?.
-
#mental? ⇒ Boolean
Tell if the move is a mental move.
-
#mirror_move_affected? ⇒ Boolean
Is the skill affected by Mirror Move.
-
#move_blocked_by_target?(user, target) ⇒ Boolean
Function that tests if the targets blocks the move.
-
#move_usable_by_user(user, targets) ⇒ Boolean
Function that tests if the user is able to use the move.
-
#multi_hit? ⇒ Boolean
Tells if the move hits multiple times.
-
#multi_turn? ⇒ Boolean
Tell if the move will take two or more turns.
-
#name
Return the name of the skill.
-
#no_choice_skill? ⇒ Boolean
(also: #is_no_choice_skill?)
Does the skill doesn't show a target choice.
-
#not_very_effective? ⇒ Boolean
Was the move not very effective ?.
-
#ohko? ⇒ Boolean
Tell if the move is an OHKO move.
-
#one_target? ⇒ Boolean
(also: #is_one_target?)
Does the skill aim only one Pokemon.
-
#one_target_from_zone_attack(user) ⇒ Boolean
Check if an attack that targets multiple people is targeting only one.
-
#physical? ⇒ Boolean
Is the skill physical ?.
-
#powder? ⇒ Boolean
Tell if the move is a powder move.
-
#power ⇒ Integer
(also: #base_power)
Return the actual base power of the move.
-
#power_text ⇒ String
Return the text of the power of the skill (for the UI).
-
#pp_text ⇒ String
Return the text of the PP of the skill.
-
#pre_attack? ⇒ Boolean
Is the move doing something before any other moves ?.
-
#priority(user = nil) ⇒ Integer
Return the priority of the skill.
-
#proceed(user, target_bank, target_position)
Function starting the move procedure.
-
#proceed_internal_dancer(user, targets)
Internal procedure of the move.
-
#proceed_internal_parental_bond(user, targets)
Internal procedure of the move for Parental Bond Ability.
-
#proceed_pre_attack(user)
Proceed the procedure before any other attack.
-
#pulse? ⇒ Boolean
Tell if the move is a pulse move.
-
#punching? ⇒ Boolean
Is the skill a punching move ?.
-
#real_base_power(user, target) ⇒ Integer
Get the real base power of the move (taking in account all parameter).
-
#recharge? ⇒ Boolean
Tell if the move is a move is a recharge move.
-
#recoil? ⇒ Boolean
Does the skill has recoil ?.
-
#recoil_factor ⇒ Integer
Returns the recoil factor.
-
#relative_priority
Move priority.
-
#self_user_switch? ⇒ Boolean
Tell if the move is a move that switch the user if that hit.
-
#show_usage_failure(user)
Show the usage failure when move is not usable by user.
-
#slicing_attack? ⇒ Boolean
Is the skill a slicing attack ?.
-
#snatchable? ⇒ Boolean
Is the skill snatchable ?.
-
#sound_attack? ⇒ Boolean
Is the skill a sound attack ?.
-
#special? ⇒ Boolean
Is the skill special ?.
-
#status? ⇒ Boolean
Is the skill status ?.
-
#status_effects ⇒ Array<Studio::Move::MoveStatus>
Get all the status effect of a move.
-
#super_effective? ⇒ Boolean
Was the move super effective ?.
-
#target ⇒ Symbol
Return the target symbol the skill can aim.
-
#to_s ⇒ String
(also: #inspect)
Format move for logging purpose.
-
#trigger_king_rock? ⇒ Boolean
Does the skill trigger the king rock.
-
#two_turn? ⇒ Boolean
Tell if the move is a two turn move.
-
#type ⇒ Integer
Return the current type of the move.
-
#type?(type_id) ⇒ Boolean
Is the skill a specific type ?.
-
#type_dark? ⇒ Boolean
(also: #type_tenebre?)
Is the skill type dark ?.
-
#type_dragon? ⇒ Boolean
Is the skill type dragon ?.
-
#type_electric? ⇒ Boolean
(also: #type_electrique?)
Is the skill type electric ?.
-
#type_fairy? ⇒ Boolean
(also: #type_fee?)
Is the skill type fairy ?.
-
#type_fighting? ⇒ Boolean
(also: #type_combat?)
Is the skill type fighting ?.
-
#type_fire? ⇒ Boolean
(also: #type_feu?)
Is the skill type fire ?.
-
#type_flying? ⇒ Boolean
(also: #type_vol?, #type_fly?)
Is the skill type fly ?.
-
#type_ghost? ⇒ Boolean
(also: #type_spectre?)
Is the skill type ghost ?.
-
#type_grass? ⇒ Boolean
(also: #type_plante?)
Is the skill type grass ?.
-
#type_ground? ⇒ Boolean
(also: #type_sol?)
Is the skill type ground ?.
-
#type_ice? ⇒ Boolean
(also: #type_glace?)
Is the skill type ice ?.
-
#type_insect? ⇒ Boolean
(also: #type_bug?)
Is the skill type insect/bug ?.
-
#type_modifier(user, target) ⇒ Float
Function that calculate the type modifier (for specific uses).
-
#type_normal? ⇒ Boolean
Is the skill type normal ?.
-
#type_poison? ⇒ Boolean
Is the skill type poison ?.
-
#type_psychic? ⇒ Boolean
(also: #type_psy?)
Is the skill type psy ?.
-
#type_rock? ⇒ Boolean
(also: #type_roche?)
Is the skill type rock ?.
-
#type_steel? ⇒ Boolean
(also: #type_acier?)
Is the skill type steel ?.
-
#type_water? ⇒ Boolean
(also: #type_eau?)
Is the skill type water ?.
-
#typeless? ⇒ Boolean
Is the skill typeless ?.
-
#unfreeze? ⇒ Boolean
Does the skill unfreeze.
-
#wind_attack? ⇒ Boolean
Is the skill a wind attack ?.
Constructor Details
#initialize(db_symbol, pp, ppmax, scene) ⇒ Move
Create a new move
48 49 |
# File 'docs/5_Battle_10_Move.rb', line 48 def initialize(db_symbol, pp, ppmax, scene) end |
Instance Attribute Details
#consecutive_use_count ⇒ Integer
Number of time the move was used consecutively
21 22 23 |
# File 'docs/5_Battle_10_Move.rb', line 21 def consecutive_use_count @consecutive_use_count end |
#damage_dealt ⇒ Integer
Number of damage dealt last time the move was used (to be used with move history)
33 34 35 |
# File 'docs/5_Battle_10_Move.rb', line 33 def damage_dealt @damage_dealt end |
#effectiveness ⇒ Float (readonly)
Get the effectiveness
297 298 299 |
# File 'docs/5_Battle_10_Move.rb', line 297 def effectiveness @effectiveness end |
#forced_next_move_decrease_pp ⇒ Boolean
Tell if forced next move decreases PP
667 668 669 |
# File 'docs/5_Battle_10_Move.rb', line 667 def forced_next_move_decrease_pp @forced_next_move_decrease_pp end |
#id ⇒ Integer (readonly)
ID of the move in the database
9 10 11 |
# File 'docs/5_Battle_10_Move.rb', line 9 def id @id end |
#logic ⇒ Battle::Logic (readonly)
The battle logic
24 25 26 |
# File 'docs/5_Battle_10_Move.rb', line 24 def logic @logic end |
#original ⇒ Battle::Move
The original move (for cloned moves)
30 31 32 |
# File 'docs/5_Battle_10_Move.rb', line 30 def original @original end |
#original_target ⇒ Array<PFM::PokemonBattler>
The original target of the move (to be used with Magic Bounce/Coat)
36 37 38 |
# File 'docs/5_Battle_10_Move.rb', line 36 def original_target @original_target end |
#pp ⇒ Integer
Number of pp the move currently has
12 13 14 |
# File 'docs/5_Battle_10_Move.rb', line 12 def pp @pp end |
#ppmax ⇒ Integer (readonly)
Maximum number of pp the move currently has
15 16 17 |
# File 'docs/5_Battle_10_Move.rb', line 15 def ppmax @ppmax end |
#scene ⇒ Battle::Scene (readonly)
The battle scene
27 28 29 |
# File 'docs/5_Battle_10_Move.rb', line 27 def scene @scene end |
#thrown_item_effect ⇒ Battle::Effects::Item? (readonly)
Get the item effect of the thrown item (to be used with Fling)
42 43 44 |
# File 'docs/5_Battle_10_Move.rb', line 42 def thrown_item_effect @thrown_item_effect end |
#used ⇒ Boolean
if the move has been used
18 19 20 |
# File 'docs/5_Battle_10_Move.rb', line 18 def used @used end |
#user ⇒ PFM::PokemonBattler? (readonly)
Get the user of the move
39 40 41 |
# File 'docs/5_Battle_10_Move.rb', line 39 def user @user end |
Class Method Details
.[](symbol) ⇒ Class<Battle::Move>
Retrieve a registered move
302 303 |
# File 'docs/5_Battle_10_Move.rb', line 302 def [](symbol) end |
.register(symbol, klass)
Register a move
307 308 |
# File 'docs/5_Battle_10_Move.rb', line 307 def register(symbol, klass) end |
Instance Method Details
#accuracy ⇒ Integer
Return the current accuracy of the move
93 94 |
# File 'docs/5_Battle_10_Move.rb', line 93 def accuracy end |
#accuracy_mod(user) ⇒ Float
Return the accuracy modifier of the user
627 628 |
# File 'docs/5_Battle_10_Move.rb', line 627 def accuracy_mod(user) end |
#accuracy_text ⇒ String
Return the accuracy text of the skill (for the UI)
97 98 |
# File 'docs/5_Battle_10_Move.rb', line 97 def accuracy_text end |
#atk_class ⇒ Integer
Return the class of the skill (used by the UI)
205 206 |
# File 'docs/5_Battle_10_Move.rb', line 205 def atk_class end |
#authentic? ⇒ Boolean
Tell if the move is a move that can bypass Substitute
257 258 |
# File 'docs/5_Battle_10_Move.rb', line 257 def authentic? end |
#ballistics? ⇒ Boolean
Tell if the move is a ballistic move
229 230 |
# File 'docs/5_Battle_10_Move.rb', line 229 def ballistics? end |
#battle_stage_mod ⇒ Array<Studio::Move::BattleStageMod>
Return the stat stage modifier the skill can apply
129 130 |
# File 'docs/5_Battle_10_Move.rb', line 129 def battle_stage_mod end |
#battler_targets(pokemon, logic) ⇒ Array<PFM::PokemonBattler>
use one_target? to select the target inside the possible result
List the targets of this move
662 663 |
# File 'docs/5_Battle_10_Move.rb', line 662 def battler_targets(pokemon, logic) end |
#be_method ⇒ Symbol Also known as: symbol
Return the battle engine method of the move
71 72 |
# File 'docs/5_Battle_10_Move.rb', line 71 def be_method end |
#bite? ⇒ Boolean
Tell if the move is biting move
233 234 |
# File 'docs/5_Battle_10_Move.rb', line 233 def bite? end |
#blocable? ⇒ Boolean
Is the skill blocable by Protect and skill like that ?
145 146 |
# File 'docs/5_Battle_10_Move.rb', line 145 def blocable? end |
#blocked_by?(target, symbol) ⇒ Boolean
Detect if the move is protected by another move on target
914 915 |
# File 'docs/5_Battle_10_Move.rb', line 914 def blocked_by?(target, symbol) end |
#bypass_chance_of_hit?(user, target) ⇒ Boolean
Check if the move bypass chance of hit and cannot fail
622 623 |
# File 'docs/5_Battle_10_Move.rb', line 622 def bypass_chance_of_hit?(user, target) end |
#calc_stab(user, types) ⇒ Numeric
STAB calculation
539 540 |
# File 'docs/5_Battle_10_Move.rb', line 539 def calc_stab(user, types) end |
#chance_of_hit(user, target) ⇒ Float
Return the chance of hit of the move
616 617 |
# File 'docs/5_Battle_10_Move.rb', line 616 def chance_of_hit(user, target) end |
#check_specific_procedure(user, targets) ⇒ Symbol?
Check if an Effects imposes a specific proceed_internal
875 876 |
# File 'docs/5_Battle_10_Move.rb', line 875 def check_specific_procedure(user, targets) end |
#clone
Clone the move and give a reference to the original one
56 57 |
# File 'docs/5_Battle_10_Move.rb', line 56 def clone end |
#critical_hit? ⇒ Boolean
Was the move a critical hit
217 218 |
# File 'docs/5_Battle_10_Move.rb', line 217 def critical_hit? end |
#critical_rate ⇒ Integer
Return the critical rate index of the skill
121 122 |
# File 'docs/5_Battle_10_Move.rb', line 121 def critical_rate end |
#damages(user, target) ⇒ Integer
: I used the 4th Gen formula : https://www.smogon.com/dp/articles/damage_formula
The formula is the following: (((((((Level * 2 / 5) + 2) * BasePower * [Sp]Atk / 50) / [Sp]Def) * Mod1) + 2) * CH * Mod2 * R / 100) * STAB * Type1 * Type2 * Mod3)
Method calculating the damages done by the actual move
321 322 |
# File 'docs/5_Battle_10_Move.rb', line 321 def damages(user, target) end |
#dance? ⇒ Boolean
Tell if the move is a dance move
237 238 |
# File 'docs/5_Battle_10_Move.rb', line 237 def dance? end |
#data ⇒ Studio::Move
Return the data of the skill
60 61 |
# File 'docs/5_Battle_10_Move.rb', line 60 def data end |
#db_symbol ⇒ Symbol
Return the symbol of the move in the database
209 210 |
# File 'docs/5_Battle_10_Move.rb', line 209 def db_symbol end |
#definitive_types(user, target) ⇒ Array<Integer>
Get the types of the move with 1st type being affected by effects
545 546 |
# File 'docs/5_Battle_10_Move.rb', line 545 def definitive_types(user, target) end |
#description ⇒ String
Return the skill description
67 68 |
# File 'docs/5_Battle_10_Move.rb', line 67 def description end |
#direct? ⇒ Boolean
Is the skill direct ?
133 134 |
# File 'docs/5_Battle_10_Move.rb', line 133 def direct? end |
#disable_reason(user) ⇒ #call
Get the reason why the move is disabled
902 903 |
# File 'docs/5_Battle_10_Move.rb', line 902 def disable_reason(user) end |
#disabled?(user) ⇒ Boolean
Function that tells if the move is disabled
897 898 |
# File 'docs/5_Battle_10_Move.rb', line 897 def disabled?(user) end |
#drain? ⇒ Boolean
Tell that the move is a drain move
289 290 |
# File 'docs/5_Battle_10_Move.rb', line 289 def drain? end |
#drain_factor ⇒ Integer
Returns the drain factor
157 158 |
# File 'docs/5_Battle_10_Move.rb', line 157 def drain_factor end |
#effect_chance ⇒ Integer
Return the chance of effect of the skill
109 110 |
# File 'docs/5_Battle_10_Move.rb', line 109 def effect_chance end |
#efficent_message(effectiveness, target)
Show the effectiveness message
676 677 |
# File 'docs/5_Battle_10_Move.rb', line 676 def (effectiveness, target) end |
#evasion_mod(target) ⇒ Float
Return the evasion modifier of the target
632 633 |
# File 'docs/5_Battle_10_Move.rb', line 632 def evasion_mod(target) end |
#force_switch? ⇒ Boolean
Tell if the move is a move that forces target switch
273 274 |
# File 'docs/5_Battle_10_Move.rb', line 273 def force_switch? end |
#gravity_affected? ⇒ Boolean
Is the skill affected by gravity
125 126 |
# File 'docs/5_Battle_10_Move.rb', line 125 def gravity_affected? end |
#heal? ⇒ Boolean
Tell if the move is a heal move
245 246 |
# File 'docs/5_Battle_10_Move.rb', line 245 def heal? end |
#hit_criticality_message(actual_targets, target)
Show the critical hit message
671 672 |
# File 'docs/5_Battle_10_Move.rb', line 671 def (actual_targets, target) end |
#made_contact? ⇒ Boolean
Tells if the move made contact with target
293 294 |
# File 'docs/5_Battle_10_Move.rb', line 293 def made_contact? end |
#magic_coat_affected? ⇒ Boolean
Is the skill affected by magic coat ?
189 190 |
# File 'docs/5_Battle_10_Move.rb', line 189 def magic_coat_affected? end |
#mental? ⇒ Boolean
Tell if the move is a mental move
137 138 |
# File 'docs/5_Battle_10_Move.rb', line 137 def mental? end |
#mirror_move_affected? ⇒ Boolean
Is the skill affected by Mirror Move
141 142 |
# File 'docs/5_Battle_10_Move.rb', line 141 def mirror_move_affected? end |
#move_blocked_by_target?(user, target) ⇒ Boolean
Thing that prevents the move from being used should be defined by :move_prevention_target Hook.
Function that tests if the targets blocks the move
909 910 |
# File 'docs/5_Battle_10_Move.rb', line 909 def move_blocked_by_target?(user, target) end |
#move_usable_by_user(user, targets) ⇒ Boolean
Function that tests if the user is able to use the move
892 893 |
# File 'docs/5_Battle_10_Move.rb', line 892 def move_usable_by_user(user, targets) end |
#multi_hit? ⇒ Boolean
Tells if the move hits multiple times
281 282 |
# File 'docs/5_Battle_10_Move.rb', line 281 def multi_hit? end |
#multi_turn? ⇒ Boolean
Tell if the move will take two or more turns
285 286 |
# File 'docs/5_Battle_10_Move.rb', line 285 def multi_turn? end |
#name
Return the name of the skill
63 64 |
# File 'docs/5_Battle_10_Move.rb', line 63 def name end |
#no_choice_skill? ⇒ Boolean Also known as: is_no_choice_skill?
Does the skill doesn't show a target choice
653 654 |
# File 'docs/5_Battle_10_Move.rb', line 653 def no_choice_skill? end |
#not_very_effective? ⇒ Boolean
Was the move not very effective ?
225 226 |
# File 'docs/5_Battle_10_Move.rb', line 225 def not_very_effective? end |
#ohko? ⇒ Boolean
Tell if the move is an OHKO move
265 266 |
# File 'docs/5_Battle_10_Move.rb', line 265 def ohko? end |
#one_target? ⇒ Boolean Also known as: is_one_target?
Does the skill aim only one Pokemon
643 644 |
# File 'docs/5_Battle_10_Move.rb', line 643 def one_target? end |
#one_target_from_zone_attack(user) ⇒ Boolean
Check if an attack that targets multiple people is targeting only one
649 650 |
# File 'docs/5_Battle_10_Move.rb', line 649 def one_target_from_zone_attack(user) end |
#physical? ⇒ Boolean
Is the skill physical ?
193 194 |
# File 'docs/5_Battle_10_Move.rb', line 193 def physical? end |
#powder? ⇒ Boolean
Tell if the move is a powder move
253 254 |
# File 'docs/5_Battle_10_Move.rb', line 253 def powder? end |
#power ⇒ Integer Also known as: base_power
Return the actual base power of the move
80 81 |
# File 'docs/5_Battle_10_Move.rb', line 80 def power end |
#power_text ⇒ String
Return the text of the power of the skill (for the UI)
85 86 |
# File 'docs/5_Battle_10_Move.rb', line 85 def power_text end |
#pp_text ⇒ String
Return the text of the PP of the skill
76 77 |
# File 'docs/5_Battle_10_Move.rb', line 76 def pp_text end |
#pre_attack? ⇒ Boolean
Is the move doing something before any other moves ?
277 278 |
# File 'docs/5_Battle_10_Move.rb', line 277 def pre_attack? end |
#priority(user = nil) ⇒ Integer
Return the priority of the skill
102 103 |
# File 'docs/5_Battle_10_Move.rb', line 102 def priority(user = nil) end |
#proceed(user, target_bank, target_position)
Function starting the move procedure
686 687 |
# File 'docs/5_Battle_10_Move.rb', line 686 def proceed(user, target_bank, target_position) end |
#proceed_internal_dancer(user, targets)
Internal procedure of the move
885 886 |
# File 'docs/5_Battle_10_Move.rb', line 885 def proceed_internal_dancer(user, targets) end |
#proceed_internal_parental_bond(user, targets)
Internal procedure of the move for Parental Bond Ability
880 881 |
# File 'docs/5_Battle_10_Move.rb', line 880 def proceed_internal_parental_bond(user, targets) end |
#proceed_pre_attack(user)
Proceed the procedure before any other attack.
690 691 |
# File 'docs/5_Battle_10_Move.rb', line 690 def proceed_pre_attack(user) end |
#pulse? ⇒ Boolean
Tell if the move is a pulse move
241 242 |
# File 'docs/5_Battle_10_Move.rb', line 241 def pulse? end |
#punching? ⇒ Boolean
Is the skill a punching move ?
161 162 |
# File 'docs/5_Battle_10_Move.rb', line 161 def punching? end |
#real_base_power(user, target) ⇒ Integer
Get the real base power of the move (taking in account all parameter)
327 328 |
# File 'docs/5_Battle_10_Move.rb', line 327 def real_base_power(user, target) end |
#recharge? ⇒ Boolean
Tell if the move is a move is a recharge move
261 262 |
# File 'docs/5_Battle_10_Move.rb', line 261 def recharge? end |
#recoil? ⇒ Boolean
Does the skill has recoil ?
149 150 |
# File 'docs/5_Battle_10_Move.rb', line 149 def recoil? end |
#recoil_factor ⇒ Integer
Returns the recoil factor
153 154 |
# File 'docs/5_Battle_10_Move.rb', line 153 def recoil_factor end |
#relative_priority
Move priority
105 106 |
# File 'docs/5_Battle_10_Move.rb', line 105 def relative_priority end |
#self_user_switch? ⇒ Boolean
Tell if the move is a move that switch the user if that hit
269 270 |
# File 'docs/5_Battle_10_Move.rb', line 269 def self_user_switch? end |
#show_usage_failure(user)
Show the usage failure when move is not usable by user
680 681 |
# File 'docs/5_Battle_10_Move.rb', line 680 def show_usage_failure(user) end |
#slicing_attack? ⇒ Boolean
Is the skill a slicing attack ?
169 170 |
# File 'docs/5_Battle_10_Move.rb', line 169 def slicing_attack? end |
#snatchable? ⇒ Boolean
Is the skill snatchable ?
185 186 |
# File 'docs/5_Battle_10_Move.rb', line 185 def snatchable? end |
#sound_attack? ⇒ Boolean
Is the skill a sound attack ?
165 166 |
# File 'docs/5_Battle_10_Move.rb', line 165 def sound_attack? end |
#special? ⇒ Boolean
Is the skill special ?
197 198 |
# File 'docs/5_Battle_10_Move.rb', line 197 def special? end |
#status? ⇒ Boolean
Is the skill status ?
201 202 |
# File 'docs/5_Battle_10_Move.rb', line 201 def status? end |
#status_effects ⇒ Array<Studio::Move::MoveStatus>
Get all the status effect of a move
113 114 |
# File 'docs/5_Battle_10_Move.rb', line 113 def status_effects end |
#super_effective? ⇒ Boolean
Was the move super effective ?
221 222 |
# File 'docs/5_Battle_10_Move.rb', line 221 def super_effective? end |
#target ⇒ Symbol
Return the target symbol the skill can aim
117 118 |
# File 'docs/5_Battle_10_Move.rb', line 117 def target end |
#to_s ⇒ String Also known as: inspect
Format move for logging purpose
52 53 |
# File 'docs/5_Battle_10_Move.rb', line 52 def to_s end |
#trigger_king_rock? ⇒ Boolean
Does the skill trigger the king rock
181 182 |
# File 'docs/5_Battle_10_Move.rb', line 181 def trigger_king_rock? end |
#two_turn? ⇒ Boolean
Tell if the move is a two turn move
249 250 |
# File 'docs/5_Battle_10_Move.rb', line 249 def two_turn? end |
#type ⇒ Integer
Return the current type of the move
89 90 |
# File 'docs/5_Battle_10_Move.rb', line 89 def type end |
#type?(type_id) ⇒ Boolean
Is the skill a specific type ?
434 435 |
# File 'docs/5_Battle_10_Move.rb', line 434 def type?(type_id) end |
#type_dark? ⇒ Boolean Also known as: type_tenebre?
Is the skill type dark ?
520 521 |
# File 'docs/5_Battle_10_Move.rb', line 520 def type_dark? end |
#type_dragon? ⇒ Boolean
Is the skill type dragon ?
511 512 |
# File 'docs/5_Battle_10_Move.rb', line 511 def type_dragon? end |
#type_electric? ⇒ Boolean Also known as: type_electrique?
Is the skill type electric ?
456 457 |
# File 'docs/5_Battle_10_Move.rb', line 456 def type_electric? end |
#type_fairy? ⇒ Boolean Also known as: type_fee?
Is the skill type fairy ?
525 526 |
# File 'docs/5_Battle_10_Move.rb', line 525 def type_fairy? end |
#type_fighting? ⇒ Boolean Also known as: type_combat?
Is the skill type fighting ?
471 472 |
# File 'docs/5_Battle_10_Move.rb', line 471 def type_fighting? end |
#type_fire? ⇒ Boolean Also known as: type_feu?
Is the skill type fire ?
446 447 |
# File 'docs/5_Battle_10_Move.rb', line 446 def type_fire? end |
#type_flying? ⇒ Boolean Also known as: type_vol?, type_fly?
Is the skill type fly ?
485 486 |
# File 'docs/5_Battle_10_Move.rb', line 485 def end |
#type_ghost? ⇒ Boolean Also known as: type_spectre?
Is the skill type ghost ?
506 507 |
# File 'docs/5_Battle_10_Move.rb', line 506 def type_ghost? end |
#type_grass? ⇒ Boolean Also known as: type_plante?
Is the skill type grass ?
461 462 |
# File 'docs/5_Battle_10_Move.rb', line 461 def type_grass? end |
#type_ground? ⇒ Boolean Also known as: type_sol?
Is the skill type ground ?
480 481 |
# File 'docs/5_Battle_10_Move.rb', line 480 def type_ground? end |
#type_ice? ⇒ Boolean Also known as: type_glace?
Is the skill type ice ?
466 467 |
# File 'docs/5_Battle_10_Move.rb', line 466 def type_ice? end |
#type_insect? ⇒ Boolean Also known as: type_bug?
Is the skill type insect/bug ?
496 497 |
# File 'docs/5_Battle_10_Move.rb', line 496 def type_insect? end |
#type_modifier(user, target) ⇒ Float
Function that calculate the type modifier (for specific uses)
533 534 |
# File 'docs/5_Battle_10_Move.rb', line 533 def type_modifier(user, target) end |
#type_normal? ⇒ Boolean
Is the skill type normal ?
442 443 |
# File 'docs/5_Battle_10_Move.rb', line 442 def type_normal? end |
#type_poison? ⇒ Boolean
Is the skill type poison ?
476 477 |
# File 'docs/5_Battle_10_Move.rb', line 476 def type_poison? end |
#type_psychic? ⇒ Boolean Also known as: type_psy?
Is the skill type psy ?
491 492 |
# File 'docs/5_Battle_10_Move.rb', line 491 def type_psychic? end |
#type_rock? ⇒ Boolean Also known as: type_roche?
Is the skill type rock ?
501 502 |
# File 'docs/5_Battle_10_Move.rb', line 501 def type_rock? end |
#type_steel? ⇒ Boolean Also known as: type_acier?
Is the skill type steel ?
515 516 |
# File 'docs/5_Battle_10_Move.rb', line 515 def type_steel? end |
#type_water? ⇒ Boolean Also known as: type_eau?
Is the skill type water ?
451 452 |
# File 'docs/5_Battle_10_Move.rb', line 451 def type_water? end |
#typeless? ⇒ Boolean
Is the skill typeless ?
438 439 |
# File 'docs/5_Battle_10_Move.rb', line 438 def typeless? end |
#unfreeze? ⇒ Boolean
Does the skill unfreeze
173 174 |
# File 'docs/5_Battle_10_Move.rb', line 173 def unfreeze? end |
#wind_attack? ⇒ Boolean
Is the skill a wind attack ?
177 178 |
# File 'docs/5_Battle_10_Move.rb', line 177 def wind_attack? end |