Class: RPG::Skill
- Inherits:
-
UsableItem
- Object
- BaseItem
- UsableItem
- RPG::Skill
- Defined in:
- lib/rpg/skill.rb
Instance Attribute Summary (collapse)
-
- (Object) message1
Returns the value of attribute message1.
-
- (Object) message2
Returns the value of attribute message2.
-
- (Object) mp_cost
Returns the value of attribute mp_cost.
-
- (Object) required_wtype_id1
Returns the value of attribute required_wtype_id1.
-
- (Object) required_wtype_id2
Returns the value of attribute required_wtype_id2.
-
- (Object) stype_id
Returns the value of attribute stype_id.
-
- (Object) tp_cost
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)
-
- (Skill) initialize
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
- (Skill) initialize
Returns a new instance of Skill
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/rpg/skill.rb', line 3 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
- (Object) message1
Returns the value of attribute message1
17 18 19 |
# File 'lib/rpg/skill.rb', line 17 def @message1 end |
- (Object) message2
Returns the value of attribute message2
18 19 20 |
# File 'lib/rpg/skill.rb', line 18 def @message2 end |
- (Object) mp_cost
Returns the value of attribute mp_cost
15 16 17 |
# File 'lib/rpg/skill.rb', line 15 def mp_cost @mp_cost end |
- (Object) required_wtype_id1
Returns the value of attribute required_wtype_id1
19 20 21 |
# File 'lib/rpg/skill.rb', line 19 def required_wtype_id1 @required_wtype_id1 end |
- (Object) required_wtype_id2
Returns the value of attribute required_wtype_id2
20 21 22 |
# File 'lib/rpg/skill.rb', line 20 def required_wtype_id2 @required_wtype_id2 end |
- (Object) stype_id
Returns the value of attribute stype_id
14 15 16 |
# File 'lib/rpg/skill.rb', line 14 def stype_id @stype_id end |
- (Object) tp_cost
Returns the value of attribute tp_cost
16 17 18 |
# File 'lib/rpg/skill.rb', line 16 def tp_cost @tp_cost end |