Class: Studio::CreatureForm
Overview
Data class describing a creature form
Defined Under Namespace
Classes: Evolution, FormTextId, ItemHeld, Resources
Instance Attribute Summary collapse
-
#abilities ⇒ Array<Symbol>
readonly
Abilities the creature can have.
-
#baby_db_symbol ⇒ Symbol
readonly
db_symbol of the baby creature.
-
#baby_form ⇒ Integer
readonly
Form of the baby.
-
#base_atk ⇒ Integer
readonly
Base atk of the form.
-
#base_ats ⇒ Integer
readonly
Base ats of the form.
-
#base_dfe ⇒ Integer
readonly
Base dfe of the form.
-
#base_dfs ⇒ Integer
readonly
Base dfs of the form.
-
#base_experience ⇒ Integer
readonly
Base experience use in exp calculation when fainted.
-
#base_hp ⇒ Integer
readonly
Base hp of the form.
-
#base_loyalty ⇒ Integer
readonly
Loyalty the creature have when caught.
-
#base_spd ⇒ Integer
readonly
Base spd of the form.
-
#breed_groups ⇒ Array<Integer>
readonly
List of breed groups of the creature.
-
#catch_rate ⇒ Integer
readonly
Catch rate of the creature.
-
#ev_atk ⇒ Integer
readonly
Atk EV given by this form when fainted.
-
#ev_ats ⇒ Integer
readonly
Ats EV given by this form when fainted.
-
#ev_dfe ⇒ Integer
readonly
Dfe EV given by this form when fainted.
-
#ev_dfs ⇒ Integer
readonly
Dfs EV given by this form when fainted.
-
#ev_hp ⇒ Integer
readonly
HP EV given by this form when fainted.
-
#ev_spd ⇒ Integer
readonly
Spd EV given by this form when fainted.
-
#evolutions ⇒ Array<Evolution>
readonly
All the evolutions of that form.
-
#experience_type ⇒ Integer
readonly
Type of exp curve for the form.
-
#female_rate ⇒ Integer
readonly
Female rate of the creature.
-
#form ⇒ Integer
readonly
Current form ID.
-
#form_text_id ⇒ FormTextId
readonly
Current form text ID.
-
#front_offset_y ⇒ Integer
readonly
Front offset y of the creature so it can be centered in the UI.
-
#hatch_steps ⇒ Integer
readonly
Number of steps before the egg hatches.
-
#height ⇒ Float
readonly
Height of the form.
-
#item_held ⇒ Array<ItemHeld>
readonly
Item held by the creature when encountered.
-
#move_set ⇒ Array<LearnableMove>
readonly
Moveset of the creature.
-
#resources ⇒ Resources
readonly
Resources of the creature.
-
#type1 ⇒ Symbol
readonly
Symbol of the first type of the form.
-
#type2 ⇒ Symbol
readonly
Symbol of the second type of the form.
-
#weight ⇒ Float
readonly
Weight of the form.
Attributes inherited from Creature
Instance Method Summary collapse
-
#form_description ⇒ string
(also: #form_descr)
Get the creature form description.
-
#form_name ⇒ string
Get the creature form name.
Methods inherited from Creature
Instance Attribute Details
#abilities ⇒ Array<Symbol> (readonly)
Abilities the creature can have
679 680 681 |
# File 'docs/3_Studio.rb', line 679 def abilities @abilities end |
#baby_db_symbol ⇒ Symbol (readonly)
db_symbol of the baby creature
670 671 672 |
# File 'docs/3_Studio.rb', line 670 def baby_db_symbol @baby_db_symbol end |
#baby_form ⇒ Integer (readonly)
Form of the baby
673 674 675 |
# File 'docs/3_Studio.rb', line 673 def baby_form @baby_form end |
#base_atk ⇒ Integer (readonly)
Base atk of the form
613 614 615 |
# File 'docs/3_Studio.rb', line 613 def base_atk @base_atk end |
#base_ats ⇒ Integer (readonly)
Base ats of the form
622 623 624 |
# File 'docs/3_Studio.rb', line 622 def base_ats @base_ats end |
#base_dfe ⇒ Integer (readonly)
Base dfe of the form
616 617 618 |
# File 'docs/3_Studio.rb', line 616 def base_dfe @base_dfe end |
#base_dfs ⇒ Integer (readonly)
Base dfs of the form
625 626 627 |
# File 'docs/3_Studio.rb', line 625 def base_dfs @base_dfs end |
#base_experience ⇒ Integer (readonly)
Base experience use in exp calculation when fainted
652 653 654 |
# File 'docs/3_Studio.rb', line 652 def base_experience @base_experience end |
#base_hp ⇒ Integer (readonly)
Base hp of the form
610 611 612 |
# File 'docs/3_Studio.rb', line 610 def base_hp @base_hp end |
#base_loyalty ⇒ Integer (readonly)
Loyalty the creature have when caught
655 656 657 |
# File 'docs/3_Studio.rb', line 655 def base_loyalty @base_loyalty end |
#base_spd ⇒ Integer (readonly)
Base spd of the form
619 620 621 |
# File 'docs/3_Studio.rb', line 619 def base_spd @base_spd end |
#breed_groups ⇒ Array<Integer> (readonly)
List of breed groups of the creature
664 665 666 |
# File 'docs/3_Studio.rb', line 664 def breed_groups @breed_groups end |
#catch_rate ⇒ Integer (readonly)
Catch rate of the creature
658 659 660 |
# File 'docs/3_Studio.rb', line 658 def catch_rate @catch_rate end |
#ev_atk ⇒ Integer (readonly)
Atk EV given by this form when fainted
631 632 633 |
# File 'docs/3_Studio.rb', line 631 def ev_atk @ev_atk end |
#ev_ats ⇒ Integer (readonly)
Ats EV given by this form when fainted
640 641 642 |
# File 'docs/3_Studio.rb', line 640 def ev_ats @ev_ats end |
#ev_dfe ⇒ Integer (readonly)
Dfe EV given by this form when fainted
634 635 636 |
# File 'docs/3_Studio.rb', line 634 def ev_dfe @ev_dfe end |
#ev_dfs ⇒ Integer (readonly)
Dfs EV given by this form when fainted
643 644 645 |
# File 'docs/3_Studio.rb', line 643 def ev_dfs @ev_dfs end |
#ev_hp ⇒ Integer (readonly)
HP EV given by this form when fainted
628 629 630 |
# File 'docs/3_Studio.rb', line 628 def ev_hp @ev_hp end |
#ev_spd ⇒ Integer (readonly)
Spd EV given by this form when fainted
637 638 639 |
# File 'docs/3_Studio.rb', line 637 def ev_spd @ev_spd end |
#evolutions ⇒ Array<Evolution> (readonly)
All the evolutions of that form
646 647 648 |
# File 'docs/3_Studio.rb', line 646 def evolutions @evolutions end |
#experience_type ⇒ Integer (readonly)
Type of exp curve for the form
649 650 651 |
# File 'docs/3_Studio.rb', line 649 def experience_type @experience_type end |
#female_rate ⇒ Integer (readonly)
Female rate of the creature
661 662 663 |
# File 'docs/3_Studio.rb', line 661 def female_rate @female_rate end |
#form ⇒ Integer (readonly)
Current form ID
592 593 594 |
# File 'docs/3_Studio.rb', line 592 def form @form end |
#form_text_id ⇒ FormTextId (readonly)
Current form text ID
595 596 597 |
# File 'docs/3_Studio.rb', line 595 def form_text_id @form_text_id end |
#front_offset_y ⇒ Integer (readonly)
Front offset y of the creature so it can be centered in the UI
682 683 684 |
# File 'docs/3_Studio.rb', line 682 def front_offset_y @front_offset_y end |
#hatch_steps ⇒ Integer (readonly)
Number of steps before the egg hatches
667 668 669 |
# File 'docs/3_Studio.rb', line 667 def hatch_steps @hatch_steps end |
#height ⇒ Float (readonly)
Height of the form
598 599 600 |
# File 'docs/3_Studio.rb', line 598 def height @height end |
#item_held ⇒ Array<ItemHeld> (readonly)
Item held by the creature when encountered
676 677 678 |
# File 'docs/3_Studio.rb', line 676 def item_held @item_held end |
#move_set ⇒ Array<LearnableMove> (readonly)
Moveset of the creature
685 686 687 |
# File 'docs/3_Studio.rb', line 685 def move_set @move_set end |
#resources ⇒ Resources (readonly)
Resources of the creature
688 689 690 |
# File 'docs/3_Studio.rb', line 688 def resources @resources end |
#type1 ⇒ Symbol (readonly)
Symbol of the first type of the form
604 605 606 |
# File 'docs/3_Studio.rb', line 604 def type1 @type1 end |
#type2 ⇒ Symbol (readonly)
Symbol of the second type of the form
607 608 609 |
# File 'docs/3_Studio.rb', line 607 def type2 @type2 end |
#weight ⇒ Float (readonly)
Weight of the form
601 602 603 |
# File 'docs/3_Studio.rb', line 601 def weight @weight end |
Instance Method Details
#form_description ⇒ string Also known as: form_descr
Get the creature form description
695 696 |
# File 'docs/3_Studio.rb', line 695 def form_description end |
#form_name ⇒ string
Get the creature form name
691 692 |
# File 'docs/3_Studio.rb', line 691 def form_name end |