Class: Studio::Move
- Defined in:
- scripts/00800 Studio/00001 Data/00031 Move.rb
Overview
Data class describing a Move
Defined Under Namespace
Classes: BattleStageMod, MoveStatus
Instance Attribute Summary collapse
-
#accuracy ⇒ Integer
readonly
Accuracy of the move.
-
#battle_engine_aimed_target ⇒ Symbol
readonly
Target type the move can aim.
-
#battle_engine_method ⇒ Symbol
(also: #be_method)
readonly
symbol that helps the battle engine to pick the right Move procedure.
-
#battle_stage_mod ⇒ Array<BattleStageMod>
readonly
List of stage this move change.
-
#category ⇒ Symbol
readonly
Category of the move (:physical, :special, :status).
-
#db_symbol ⇒ Symbol
readonly
db_symbol of the move.
-
#id ⇒ Integer
readonly
ID of the move.
-
#is_authentic ⇒ Boolean
readonly
If the move ignore the target's substitute.
-
#is_ballistics ⇒ Boolean
readonly
If this move is blocked by bulletproof ability.
-
#is_bite ⇒ Boolean
readonly
If the move deals 1.5x damage when user has strong-jaw ability.
-
#is_blocable ⇒ Boolean
readonly
If the move is blocked by detect or protect.
-
#is_charge ⇒ Boolean
readonly
If the move has a charging turn that can be skipped with a power-herb.
-
#is_dance ⇒ Boolean
readonly
If this move triggers the dancer ability.
-
#is_direct ⇒ Boolean
readonly
If the move makes contact with opponent.
-
#is_distance ⇒ Boolean
readonly
If the move can reach any target regardless of the position.
-
#is_effect_chance ⇒ Boolean
readonly
If the move effect can be triggered without checking chance of status effect.
-
#is_gravity ⇒ Boolean
readonly
If this move cannot be used under gravity.
-
#is_heal ⇒ Boolean
readonly
If the move can be blocked by heal-block.
-
#is_king_rock_utility ⇒ Boolean
readonly
If this move triggers the King's Rock.
-
#is_magic_coat_affected ⇒ Boolean
readonly
If this move can be reflected by magic-coat move or magic-bounce ability.
-
#is_mental ⇒ Boolean
readonly
If this move is blocked by aroma-veil ability and cured by mental-herb item.
-
#is_mirror_move ⇒ Boolean
readonly
Another creature can copy this move if it targets the user of this move.
-
#is_non_sky_battle ⇒ Boolean
readonly
If this move cannot be used in Sky Battles.
-
#is_powder ⇒ Boolean
readonly
If grass-type or creatures with overcoat ability are immune to this move.
-
#is_pulse ⇒ Boolean
readonly
If the move deals 1.5x damage when user has mega-launcher ability.
-
#is_punch ⇒ Boolean
readonly
If this move gets a power bonus of 1.2x when user has iron-fist ability.
-
#is_recharge ⇒ Boolean
readonly
If the move has a pause turn after being used.
-
#is_snatchable ⇒ Boolean
readonly
If the move must be stolen if another creature used Snatch during this turn.
-
#is_sound_attack ⇒ Boolean
readonly
If target of this move with ability soundproof are immune to this move.
-
#is_unfreeze ⇒ Boolean
readonly
If this move can be used while frozen and defreeze user.
-
#map_use ⇒ Integer
readonly
ID of the common event to call on map.
-
#move_status ⇒ Array<MoveStatus>
readonly
List of status this move can apply.
-
#movecritical_rate ⇒ Integer
(also: #critical_rate)
readonly
Critical rate indicator of the move (0 => 0, 1 => 6.25%, 2 => 12.5%, 3 => 25%, 4 => 33%, 5 => 50%, 6 => 100%).
-
#power ⇒ Integer
readonly
Power of the move.
-
#pp ⇒ Integer
readonly
Default amount of PP of the move.
-
#priority ⇒ Integer
readonly
Priority of the move (-7 ~ 0 ~ +7).
-
#type ⇒ Symbol
readonly
Type of the move.
Instance Method Summary collapse
-
#description ⇒ String
(also: #descr)
Get the move description.
-
#name ⇒ String
Get the move name.
Instance Attribute Details
#accuracy ⇒ Integer (readonly)
Accuracy of the move
44 45 46 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 44 def accuracy @accuracy end |
#battle_engine_aimed_target ⇒ Symbol (readonly)
Target type the move can aim
157 158 159 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 157 def battle_engine_aimed_target @battle_engine_aimed_target end |
#battle_engine_method ⇒ Symbol (readonly) Also known as: be_method
symbol that helps the battle engine to pick the right Move procedure
31 32 33 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 31 def battle_engine_method @battle_engine_method end |
#battle_stage_mod ⇒ Array<BattleStageMod> (readonly)
List of stage this move change
161 162 163 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 161 def battle_stage_mod @battle_stage_mod end |
#category ⇒ Symbol (readonly)
Category of the move (:physical, :special, :status)
52 53 54 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 52 def category @category end |
#db_symbol ⇒ Symbol (readonly)
db_symbol of the move
10 11 12 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 10 def db_symbol @db_symbol end |
#id ⇒ Integer (readonly)
ID of the move
6 7 8 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 6 def id @id end |
#is_authentic ⇒ Boolean (readonly)
If the move ignore the target's substitute
117 118 119 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 117 def is_authentic @is_authentic end |
#is_ballistics ⇒ Boolean (readonly)
If this move is blocked by bulletproof ability
129 130 131 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 129 def is_ballistics @is_ballistics end |
#is_bite ⇒ Boolean (readonly)
If the move deals 1.5x damage when user has strong-jaw ability
121 122 123 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 121 def is_bite @is_bite end |
#is_blocable ⇒ Boolean (readonly)
If the move is blocked by detect or protect
77 78 79 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 77 def is_blocable @is_blocable end |
#is_charge ⇒ Boolean (readonly)
If the move has a charging turn that can be skipped with a power-herb
69 70 71 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 69 def is_charge @is_charge end |
#is_dance ⇒ Boolean (readonly)
If this move triggers the dancer ability
141 142 143 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 141 def is_dance @is_dance end |
#is_direct ⇒ Boolean (readonly)
If the move makes contact with opponent
65 66 67 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 65 def is_direct @is_direct end |
#is_distance ⇒ Boolean (readonly)
If the move can reach any target regardless of the position
109 110 111 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 109 def is_distance @is_distance end |
#is_effect_chance ⇒ Boolean (readonly)
If the move effect can be triggered without checking chance of status effect
153 154 155 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 153 def is_effect_chance @is_effect_chance end |
#is_gravity ⇒ Boolean (readonly)
If this move cannot be used under gravity
93 94 95 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 93 def is_gravity @is_gravity end |
#is_heal ⇒ Boolean (readonly)
If the move can be blocked by heal-block
113 114 115 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 113 def is_heal @is_heal end |
#is_king_rock_utility ⇒ Boolean (readonly)
If this move triggers the King's Rock
145 146 147 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 145 def is_king_rock_utility @is_king_rock_utility end |
#is_magic_coat_affected ⇒ Boolean (readonly)
If this move can be reflected by magic-coat move or magic-bounce ability
97 98 99 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 97 def is_magic_coat_affected @is_magic_coat_affected end |
#is_mental ⇒ Boolean (readonly)
If this move is blocked by aroma-veil ability and cured by mental-herb item
133 134 135 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 133 def is_mental @is_mental end |
#is_mirror_move ⇒ Boolean (readonly)
Another creature can copy this move if it targets the user of this move
85 86 87 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 85 def is_mirror_move @is_mirror_move end |
#is_non_sky_battle ⇒ Boolean (readonly)
If this move cannot be used in Sky Battles
137 138 139 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 137 def is_non_sky_battle @is_non_sky_battle end |
#is_powder ⇒ Boolean (readonly)
If grass-type or creatures with overcoat ability are immune to this move
149 150 151 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 149 def is_powder @is_powder end |
#is_pulse ⇒ Boolean (readonly)
If the move deals 1.5x damage when user has mega-launcher ability
125 126 127 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 125 def is_pulse @is_pulse end |
#is_punch ⇒ Boolean (readonly)
If this move gets a power bonus of 1.2x when user has iron-fist ability
89 90 91 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 89 def is_punch @is_punch end |
#is_recharge ⇒ Boolean (readonly)
If the move has a pause turn after being used
73 74 75 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 73 def is_recharge @is_recharge end |
#is_snatchable ⇒ Boolean (readonly)
If the move must be stolen if another creature used Snatch during this turn
81 82 83 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 81 def is_snatchable @is_snatchable end |
#is_sound_attack ⇒ Boolean (readonly)
If target of this move with ability soundproof are immune to this move
105 106 107 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 105 def is_sound_attack @is_sound_attack end |
#is_unfreeze ⇒ Boolean (readonly)
If this move can be used while frozen and defreeze user
101 102 103 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 101 def is_unfreeze @is_unfreeze end |
#map_use ⇒ Integer (readonly)
ID of the common event to call on map
27 28 29 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 27 def map_use @map_use end |
#move_status ⇒ Array<MoveStatus> (readonly)
List of status this move can apply
165 166 167 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 165 def move_status @move_status end |
#movecritical_rate ⇒ Integer (readonly) Also known as: critical_rate
Critical rate indicator of the move (0 => 0, 1 => 6.25%, 2 => 12.5%, 3 => 25%, 4 => 33%, 5 => 50%, 6 => 100%)
56 57 58 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 56 def movecritical_rate @movecritical_rate end |
#power ⇒ Integer (readonly)
Power of the move
40 41 42 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 40 def power @power end |
#pp ⇒ Integer (readonly)
Default amount of PP of the move
48 49 50 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 48 def pp @pp end |
#priority ⇒ Integer (readonly)
Priority of the move (-7 ~ 0 ~ +7)
61 62 63 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 61 def priority @priority end |
#type ⇒ Symbol (readonly)
Type of the move
36 37 38 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 36 def type @type end |
Instance Method Details
#description ⇒ String Also known as: descr
Get the move description
20 21 22 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 20 def description return text_get(7, @id) end |
#name ⇒ String
Get the move name
14 15 16 |
# File 'scripts/00800 Studio/00001 Data/00031 Move.rb', line 14 def name return text_get(6, @id) end |