Class: Studio::Move

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

Overview

Data class describing a Move

Defined Under Namespace

Classes: BattleStageMod, MoveStatus

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#accuracyInteger (readonly)

Accuracy of the move

Returns:

  • (Integer)


445
446
447
# File 'docs/00800_Studio.rb', line 445

def accuracy
  @accuracy
end

#battle_engine_aimed_targetSymbol (readonly)

Target type the move can aim

Returns:

  • (Symbol)


536
537
538
# File 'docs/00800_Studio.rb', line 536

def battle_engine_aimed_target
  @battle_engine_aimed_target
end

#battle_engine_methodSymbol (readonly) Also known as: be_method

symbol that helps the battle engine to pick the right Move procedure

Returns:

  • (Symbol)


435
436
437
# File 'docs/00800_Studio.rb', line 435

def battle_engine_method
  @battle_engine_method
end

#battle_stage_modArray<BattleStageMod> (readonly)

List of stage this move change

Returns:



539
540
541
# File 'docs/00800_Studio.rb', line 539

def battle_stage_mod
  @battle_stage_mod
end

#categorySymbol (readonly)

Category of the move (:physical, :special, :status)

Returns:

  • (Symbol)


451
452
453
# File 'docs/00800_Studio.rb', line 451

def category
  @category
end

#db_symbolSymbol (readonly)

db_symbol of the move

Returns:

  • (Symbol)


420
421
422
# File 'docs/00800_Studio.rb', line 420

def db_symbol
  @db_symbol
end

#effect_chanceInteger (readonly)

Chance to trigger the secondary effect (0~100)

Returns:

  • (Integer)


533
534
535
# File 'docs/00800_Studio.rb', line 533

def effect_chance
  @effect_chance
end

#idInteger (readonly)

ID of the move

Returns:

  • (Integer)


417
418
419
# File 'docs/00800_Studio.rb', line 417

def id
  @id
end

#is_authenticBoolean (readonly)

If the move ignore the target’s substitute

Returns:

  • (Boolean)


506
507
508
# File 'docs/00800_Studio.rb', line 506

def is_authentic
  @is_authentic
end

#is_ballisticsBoolean (readonly)

If this move is blocked by bulletproof ability

Returns:

  • (Boolean)


515
516
517
# File 'docs/00800_Studio.rb', line 515

def is_ballistics
  @is_ballistics
end

#is_biteBoolean (readonly)

If the move deals 1.5x damage when user has strong-jaw ability

Returns:

  • (Boolean)


509
510
511
# File 'docs/00800_Studio.rb', line 509

def is_bite
  @is_bite
end

#is_blocableBoolean (readonly)

If the move is blocked by detect or protect

Returns:

  • (Boolean)


470
471
472
# File 'docs/00800_Studio.rb', line 470

def is_blocable
  @is_blocable
end

#is_chargeBoolean (readonly)

If the move has a charging turn that can be skipped with a power-herb

Returns:

  • (Boolean)


464
465
466
# File 'docs/00800_Studio.rb', line 464

def is_charge
  @is_charge
end

#is_danceBoolean (readonly)

If this move triggers the dancer ability

Returns:

  • (Boolean)


524
525
526
# File 'docs/00800_Studio.rb', line 524

def is_dance
  @is_dance
end

#is_directBoolean (readonly)

If the move makes contact with opponent

Returns:

  • (Boolean)


461
462
463
# File 'docs/00800_Studio.rb', line 461

def is_direct
  @is_direct
end

#is_distanceBoolean (readonly)

If the move can reach any target regardless of the position

Returns:

  • (Boolean)


500
501
502
# File 'docs/00800_Studio.rb', line 500

def is_distance
  @is_distance
end

#is_gravityBoolean (readonly)

If this move cannot be used under gravity

Returns:

  • (Boolean)


482
483
484
# File 'docs/00800_Studio.rb', line 482

def is_gravity
  @is_gravity
end

#is_healBoolean (readonly)

If the move can be blocked by heal-block

Returns:

  • (Boolean)


503
504
505
# File 'docs/00800_Studio.rb', line 503

def is_heal
  @is_heal
end

#is_king_rock_utilityBoolean (readonly)

If this move triggers the King’s Rock

Returns:

  • (Boolean)


527
528
529
# File 'docs/00800_Studio.rb', line 527

def is_king_rock_utility
  @is_king_rock_utility
end

#is_magic_coat_affectedBoolean (readonly)

If this move can be reflected by magic-coat move or magic-bounce ability

Returns:

  • (Boolean)


485
486
487
# File 'docs/00800_Studio.rb', line 485

def is_magic_coat_affected
  @is_magic_coat_affected
end

#is_mentalBoolean (readonly)

If this move is blocked by aroma-veil ability and cured by mental-herb item

Returns:

  • (Boolean)


518
519
520
# File 'docs/00800_Studio.rb', line 518

def is_mental
  @is_mental
end

#is_mirror_moveBoolean (readonly)

Another creature can copy this move if it targets the user of this move

Returns:

  • (Boolean)


476
477
478
# File 'docs/00800_Studio.rb', line 476

def is_mirror_move
  @is_mirror_move
end

#is_non_sky_battleBoolean (readonly)

If this move cannot be used in Sky Battles

Returns:

  • (Boolean)


521
522
523
# File 'docs/00800_Studio.rb', line 521

def is_non_sky_battle
  @is_non_sky_battle
end

#is_powderBoolean (readonly)

If grass-type or creatures with overcoat ability are immune to this move

Returns:

  • (Boolean)


530
531
532
# File 'docs/00800_Studio.rb', line 530

def is_powder
  @is_powder
end

#is_pulseBoolean (readonly)

If the move deals 1.5x damage when user has mega-launcher ability

Returns:

  • (Boolean)


512
513
514
# File 'docs/00800_Studio.rb', line 512

def is_pulse
  @is_pulse
end

#is_punchBoolean (readonly)

If this move gets a power bonus of 1.2x when user has iron-fist ability

Returns:

  • (Boolean)


479
480
481
# File 'docs/00800_Studio.rb', line 479

def is_punch
  @is_punch
end

#is_rechargeBoolean (readonly)

If the move has a pause turn after being used

Returns:

  • (Boolean)


467
468
469
# File 'docs/00800_Studio.rb', line 467

def is_recharge
  @is_recharge
end

#is_slicing_attackBoolean (readonly)

If the move deals 1.5x damage when user has sharpness ability

Returns:

  • (Boolean)


494
495
496
# File 'docs/00800_Studio.rb', line 494

def is_slicing_attack
  @is_slicing_attack
end

#is_snatchableBoolean (readonly)

If the move must be stolen if another creature used Snatch during this turn

Returns:

  • (Boolean)


473
474
475
# File 'docs/00800_Studio.rb', line 473

def is_snatchable
  @is_snatchable
end

#is_sound_attackBoolean (readonly)

If target of this move with ability soundproof are immune to this move

Returns:

  • (Boolean)


491
492
493
# File 'docs/00800_Studio.rb', line 491

def is_sound_attack
  @is_sound_attack
end

#is_unfreezeBoolean (readonly)

If this move can be used while frozen and defreeze user

Returns:

  • (Boolean)


488
489
490
# File 'docs/00800_Studio.rb', line 488

def is_unfreeze
  @is_unfreeze
end

#is_windBoolean (readonly)

If target of this move with ability wind power or wind rider will be activated to this move

Returns:

  • (Boolean)


497
498
499
# File 'docs/00800_Studio.rb', line 497

def is_wind
  @is_wind
end

#map_useInteger (readonly)

ID of the common event to call on map

Returns:

  • (Integer)


432
433
434
# File 'docs/00800_Studio.rb', line 432

def map_use
  @map_use
end

#move_statusArray<MoveStatus> (readonly)

List of status this move can apply

Returns:



542
543
544
# File 'docs/00800_Studio.rb', line 542

def move_status
  @move_status
end

#movecritical_rateInteger (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%)

Returns:

  • (Integer)


454
455
456
# File 'docs/00800_Studio.rb', line 454

def movecritical_rate
  @movecritical_rate
end

#powerInteger (readonly)

Power of the move

Returns:

  • (Integer)


442
443
444
# File 'docs/00800_Studio.rb', line 442

def power
  @power
end

#ppInteger (readonly)

Default amount of PP of the move

Returns:

  • (Integer)


448
449
450
# File 'docs/00800_Studio.rb', line 448

def pp
  @pp
end

#priorityInteger (readonly)

Priority of the move (-7 ~ 0 ~ +7)

Returns:

  • (Integer)


458
459
460
# File 'docs/00800_Studio.rb', line 458

def priority
  @priority
end

#typeSymbol (readonly)

Type of the move

Returns:

  • (Symbol)


439
440
441
# File 'docs/00800_Studio.rb', line 439

def type
  @type
end

Instance Method Details

#descriptionString Also known as: descr

Get the move description

Returns:



427
428
# File 'docs/00800_Studio.rb', line 427

def description
end

#nameString

Get the move name

Returns:



423
424
# File 'docs/00800_Studio.rb', line 423

def name
end