Class: Studio::Move

Inherits:
Object show all
Defined in:
docs/3_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

#accuracy ⇒ Integer (readonly)

Accuracy of the move

Returns:

  • (Integer)


549
550
551
# File 'docs/3_Studio.rb', line 549

def accuracy
  @accuracy
end

#appeal ⇒ Integer (readonly)

Appeal points of the move

Returns:

  • (Integer)


652
653
654
# File 'docs/3_Studio.rb', line 652

def appeal
  @appeal
end

#battle_engine_aimed_target ⇒ Symbol (readonly)

Target type the move can aim

Returns:

  • (Symbol)


640
641
642
# File 'docs/3_Studio.rb', line 640

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

Returns:

  • (Symbol)


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

def battle_engine_method
  @battle_engine_method
end

#battle_stage_mod ⇒ Array<BattleStageMod> (readonly)

List of stage this move change

Returns:



643
644
645
# File 'docs/3_Studio.rb', line 643

def battle_stage_mod
  @battle_stage_mod
end

#category ⇒ Symbol (readonly)

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

Returns:

  • (Symbol)


555
556
557
# File 'docs/3_Studio.rb', line 555

def category
  @category
end

#combo_moves ⇒ Array<Symbol> (readonly)

List of db_symbol of moves that can be used as a combo after this move

Returns:

  • (Array<Symbol>)


658
659
660
# File 'docs/3_Studio.rb', line 658

def combo_moves
  @combo_moves
end

#condition ⇒ Symbol (readonly)

Contest condition of the move

Returns:

  • (Symbol) —

    (:cool, :beautiful, :cute, :clever, :tough)



649
650
651
# File 'docs/3_Studio.rb', line 649

def condition
  @condition
end

#db_symbol ⇒ Symbol (readonly)

db_symbol of the move

Returns:

  • (Symbol)


520
521
522
# File 'docs/3_Studio.rb', line 520

def db_symbol
  @db_symbol
end

#effect_chance ⇒ Integer (readonly)

Chance to trigger the secondary effect (0~100)

Returns:

  • (Integer)


637
638
639
# File 'docs/3_Studio.rb', line 637

def effect_chance
  @effect_chance
end

#effect_tags ⇒ Array<Symbol> (readonly)

List of effect tags of the move during contests

Returns:

  • (Array<Symbol>)


661
662
663
# File 'docs/3_Studio.rb', line 661

def effect_tags
  @effect_tags
end

#id ⇒ Integer (readonly)

ID of the move

Returns:

  • (Integer)


517
518
519
# File 'docs/3_Studio.rb', line 517

def id
  @id
end

#is_authentic ⇒ Boolean (readonly)

If the move ignore the target's substitute

Returns:

  • (Boolean)


610
611
612
# File 'docs/3_Studio.rb', line 610

def is_authentic
  @is_authentic
end

#is_ballistics ⇒ Boolean (readonly)

If this move is blocked by bulletproof ability

Returns:

  • (Boolean)


619
620
621
# File 'docs/3_Studio.rb', line 619

def is_ballistics
  @is_ballistics
end

#is_bite ⇒ Boolean (readonly)

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

Returns:

  • (Boolean)


613
614
615
# File 'docs/3_Studio.rb', line 613

def is_bite
  @is_bite
end

#is_blocable ⇒ Boolean (readonly)

If the move is blocked by detect or protect

Returns:

  • (Boolean)


574
575
576
# File 'docs/3_Studio.rb', line 574

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

Returns:

  • (Boolean)


568
569
570
# File 'docs/3_Studio.rb', line 568

def is_charge
  @is_charge
end

#is_dance ⇒ Boolean (readonly)

If this move triggers the dancer ability

Returns:

  • (Boolean)


628
629
630
# File 'docs/3_Studio.rb', line 628

def is_dance
  @is_dance
end

#is_direct ⇒ Boolean (readonly)

If the move makes contact with opponent

Returns:

  • (Boolean)


565
566
567
# File 'docs/3_Studio.rb', line 565

def is_direct
  @is_direct
end

#is_distance ⇒ Boolean (readonly)

If the move can reach any target regardless of the position

Returns:

  • (Boolean)


604
605
606
# File 'docs/3_Studio.rb', line 604

def is_distance
  @is_distance
end

#is_gravity ⇒ Boolean (readonly)

If this move cannot be used under gravity

Returns:

  • (Boolean)


586
587
588
# File 'docs/3_Studio.rb', line 586

def is_gravity
  @is_gravity
end

#is_heal ⇒ Boolean (readonly)

If the move can be blocked by heal-block

Returns:

  • (Boolean)


607
608
609
# File 'docs/3_Studio.rb', line 607

def is_heal
  @is_heal
end

#is_king_rock_utility ⇒ Boolean (readonly)

If this move triggers the King's Rock

Returns:

  • (Boolean)


631
632
633
# File 'docs/3_Studio.rb', line 631

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

Returns:

  • (Boolean)


589
590
591
# File 'docs/3_Studio.rb', line 589

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

Returns:

  • (Boolean)


622
623
624
# File 'docs/3_Studio.rb', line 622

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

Returns:

  • (Boolean)


580
581
582
# File 'docs/3_Studio.rb', line 580

def is_mirror_move
  @is_mirror_move
end

#is_non_sky_battle ⇒ Boolean (readonly)

If this move cannot be used in Sky Battles

Returns:

  • (Boolean)


625
626
627
# File 'docs/3_Studio.rb', line 625

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

Returns:

  • (Boolean)


634
635
636
# File 'docs/3_Studio.rb', line 634

def is_powder
  @is_powder
end

#is_pulse ⇒ Boolean (readonly)

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

Returns:

  • (Boolean)


616
617
618
# File 'docs/3_Studio.rb', line 616

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

Returns:

  • (Boolean)


583
584
585
# File 'docs/3_Studio.rb', line 583

def is_punch
  @is_punch
end

#is_recharge ⇒ Boolean (readonly)

If the move has a pause turn after being used

Returns:

  • (Boolean)


571
572
573
# File 'docs/3_Studio.rb', line 571

def is_recharge
  @is_recharge
end

#is_slicing_attack ⇒ Boolean (readonly)

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

Returns:

  • (Boolean)


598
599
600
# File 'docs/3_Studio.rb', line 598

def is_slicing_attack
  @is_slicing_attack
end

#is_snatchable ⇒ Boolean (readonly)

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

Returns:

  • (Boolean)


577
578
579
# File 'docs/3_Studio.rb', line 577

def is_snatchable
  @is_snatchable
end

#is_sound_attack ⇒ Boolean (readonly)

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

Returns:

  • (Boolean)


595
596
597
# File 'docs/3_Studio.rb', line 595

def is_sound_attack
  @is_sound_attack
end

#is_unfreeze ⇒ Boolean (readonly)

If this move can be used while frozen and defreeze user

Returns:

  • (Boolean)


592
593
594
# File 'docs/3_Studio.rb', line 592

def is_unfreeze
  @is_unfreeze
end

#is_wind ⇒ Boolean (readonly)

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

Returns:

  • (Boolean)


601
602
603
# File 'docs/3_Studio.rb', line 601

def is_wind
  @is_wind
end

#jam ⇒ Integer (readonly)

Jam points of the move

Returns:

  • (Integer)


655
656
657
# File 'docs/3_Studio.rb', line 655

def jam
  @jam
end

#map_use ⇒ Integer (readonly)

ID of the common event to call on map

Returns:

  • (Integer)


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

def map_use
  @map_use
end

#move_status ⇒ Array<MoveStatus> (readonly)

List of status this move can apply

Returns:



646
647
648
# File 'docs/3_Studio.rb', line 646

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%)

Returns:

  • (Integer)


558
559
560
# File 'docs/3_Studio.rb', line 558

def movecritical_rate
  @movecritical_rate
end

#power ⇒ Integer (readonly)

Power of the move

Returns:

  • (Integer)


546
547
548
# File 'docs/3_Studio.rb', line 546

def power
  @power
end

#pp ⇒ Integer (readonly)

Default amount of PP of the move

Returns:

  • (Integer)


552
553
554
# File 'docs/3_Studio.rb', line 552

def pp
  @pp
end

#priority ⇒ Integer (readonly)

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

Returns:

  • (Integer)


562
563
564
# File 'docs/3_Studio.rb', line 562

def priority
  @priority
end

#type ⇒ Symbol (readonly)

Type of the move

Returns:

  • (Symbol)


543
544
545
# File 'docs/3_Studio.rb', line 543

def type
  @type
end

Instance Method Details

#contest_description ⇒ String

Get the move contest description

Returns:



532
533
# File 'docs/3_Studio.rb', line 532

def contest_description
end

#description ⇒ String Also known as: descr

Get the move description

Returns:



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

def description
end

#name ⇒ String

Get the move name

Returns:



523
524
# File 'docs/3_Studio.rb', line 523

def name
end