Class: RPG::Skill
- Inherits:
-
UsableItem
- Object
- BaseItem
- UsableItem
- RPG::Skill
- Defined in:
- lib/R3EXS/RGSS3.rb
Instance Attribute Summary collapse
-
#message1 ⇒ Object
Returns the value of attribute message1.
-
#message2 ⇒ Object
Returns the value of attribute message2.
-
#mp_cost ⇒ Object
Returns the value of attribute mp_cost.
-
#required_wtype_id1 ⇒ Object
Returns the value of attribute required_wtype_id1.
-
#required_wtype_id2 ⇒ Object
Returns the value of attribute required_wtype_id2.
-
#stype_id ⇒ Object
Returns the value of attribute stype_id.
-
#tp_cost ⇒ Object
Returns the value of attribute tp_cost.
Attributes inherited from UsableItem
#animation_id, #damage, #effects, #hit_type, #occasion, #repeats, #scope, #speed, #success_rate, #tp_gain
Attributes inherited from BaseItem
#description, #features, #icon_index, #id, #name, #note
Instance Method Summary collapse
-
#initialize ⇒ Skill
constructor
A new instance of Skill.
Methods inherited from UsableItem
#battle_ok?, #certain?, #for_all?, #for_dead_friend?, #for_friend?, #for_one?, #for_opponent?, #for_random?, #for_user?, #magical?, #menu_ok?, #need_selection?, #number_of_targets, #physical?
Constructor Details
#initialize ⇒ Skill
Returns a new instance of Skill.
787 788 789 790 791 792 793 794 795 796 797 |
# File 'lib/R3EXS/RGSS3.rb', line 787 def initialize super @scope = 1 @stype_id = 1 @mp_cost = 0 @tp_cost = 0 @message1 = '' @message2 = '' @required_wtype_id1 = 0 @required_wtype_id2 = 0 end |
Instance Attribute Details
#message1 ⇒ Object
Returns the value of attribute message1.
802 803 804 |
# File 'lib/R3EXS/RGSS3.rb', line 802 def @message1 end |
#message2 ⇒ Object
Returns the value of attribute message2.
803 804 805 |
# File 'lib/R3EXS/RGSS3.rb', line 803 def @message2 end |
#mp_cost ⇒ Object
Returns the value of attribute mp_cost.
800 801 802 |
# File 'lib/R3EXS/RGSS3.rb', line 800 def mp_cost @mp_cost end |
#required_wtype_id1 ⇒ Object
Returns the value of attribute required_wtype_id1.
804 805 806 |
# File 'lib/R3EXS/RGSS3.rb', line 804 def required_wtype_id1 @required_wtype_id1 end |
#required_wtype_id2 ⇒ Object
Returns the value of attribute required_wtype_id2.
805 806 807 |
# File 'lib/R3EXS/RGSS3.rb', line 805 def required_wtype_id2 @required_wtype_id2 end |
#stype_id ⇒ Object
Returns the value of attribute stype_id.
799 800 801 |
# File 'lib/R3EXS/RGSS3.rb', line 799 def stype_id @stype_id end |
#tp_cost ⇒ Object
Returns the value of attribute tp_cost.
801 802 803 |
# File 'lib/R3EXS/RGSS3.rb', line 801 def tp_cost @tp_cost end |