Class: RPG::Skill
- Inherits:
-
UsableItem
- Object
- BaseItem
- UsableItem
- RPG::Skill
- Extended by:
- RgssDb::JsonableConstructor
- Includes:
- RgssDb::Jsonable
- Defined in:
- lib/rgss_db/model/rpg_maker_data/vx/rpg/skill.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/skill.rb
Overview
The data class for skills.
Instance Attribute Summary collapse
-
#agi_f ⇒ Object
Returns the value of attribute agi_f.
-
#animation1_id ⇒ Object
Returns the value of attribute animation1_id.
-
#animation2_id ⇒ Object
Returns the value of attribute animation2_id.
-
#atk_f ⇒ Object
Returns the value of attribute atk_f.
-
#common_event_id ⇒ Object
Returns the value of attribute common_event_id.
-
#description ⇒ Object
Returns the value of attribute description.
-
#dex_f ⇒ Object
Returns the value of attribute dex_f.
-
#element_set ⇒ Object
Returns the value of attribute element_set.
-
#eva_f ⇒ Object
Returns the value of attribute eva_f.
-
#hit ⇒ Object
Returns the value of attribute hit.
-
#icon_name ⇒ Object
Returns the value of attribute icon_name.
-
#id ⇒ Object
Returns the value of attribute id.
-
#int_f ⇒ Object
Returns the value of attribute int_f.
-
#mdef_f ⇒ Object
Returns the value of attribute mdef_f.
-
#menu_se ⇒ Object
Returns the value of attribute menu_se.
-
#message1 ⇒ Object
Returns the value of attribute message1.
-
#message2 ⇒ Object
Returns the value of attribute message2.
-
#minus_state_set ⇒ Object
Returns the value of attribute minus_state_set.
-
#mp_cost ⇒ Object
Returns the value of attribute mp_cost.
-
#name ⇒ Object
Returns the value of attribute name.
-
#occasion ⇒ Object
Returns the value of attribute occasion.
-
#pdef_f ⇒ Object
Returns the value of attribute pdef_f.
-
#plus_state_set ⇒ Object
Returns the value of attribute plus_state_set.
-
#power ⇒ Object
Returns the value of attribute power.
-
#required_wtype_id1 ⇒ Object
Returns the value of attribute required_wtype_id1.
-
#required_wtype_id2 ⇒ Object
Returns the value of attribute required_wtype_id2.
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#sp_cost ⇒ Object
Returns the value of attribute sp_cost.
-
#str_f ⇒ Object
Returns the value of attribute str_f.
-
#stype_id ⇒ Object
Returns the value of attribute stype_id.
-
#tp_cost ⇒ Object
Returns the value of attribute tp_cost.
-
#variance ⇒ Object
Returns the value of attribute variance.
Attributes inherited from UsableItem
#absorb_damage, #animation_id, #base_damage, #damage, #damage_to_mp, #effects, #hit_type, #ignore_defense, #physical_attack, #repeats, #speed, #spi_f, #success_rate, #tp_gain
Attributes inherited from BaseItem
Instance Method Summary collapse
-
#initialize ⇒ Skill
constructor
A new instance of Skill.
- #to_s ⇒ Object
Methods included from RgssDb::JsonableConstructor
Methods included from RgssDb::Jsonable
Methods inherited from UsableItem
#battle_ok?, #certain?, #dual?, #for_all?, #for_dead_friend?, #for_friend?, #for_one?, #for_opponent?, #for_random?, #for_three?, #for_two?, #for_user?, #magical?, #menu_ok?, #need_selection?, #number_of_targets, #physical?
Constructor Details
#initialize ⇒ Skill
Returns a new instance of Skill.
11 12 13 14 15 16 17 18 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/skill.rb', line 11 def initialize super @scope = 1 @mp_cost = 0 @hit = 100 @message1 = "" @message2 = "" end |
Instance Attribute Details
#agi_f ⇒ Object
Returns the value of attribute agi_f.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb', line 43 def agi_f @agi_f end |
#animation1_id ⇒ Object
Returns the value of attribute animation1_id.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb', line 43 def animation1_id @animation1_id end |
#animation2_id ⇒ Object
Returns the value of attribute animation2_id.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb', line 43 def animation2_id @animation2_id end |
#atk_f ⇒ Object
Returns the value of attribute atk_f.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb', line 43 def atk_f @atk_f end |
#common_event_id ⇒ Object
Returns the value of attribute common_event_id.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb', line 43 def common_event_id @common_event_id end |
#description ⇒ Object
Returns the value of attribute description.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb', line 43 def description @description end |
#dex_f ⇒ Object
Returns the value of attribute dex_f.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb', line 43 def dex_f @dex_f end |
#element_set ⇒ Object
Returns the value of attribute element_set.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb', line 43 def element_set @element_set end |
#eva_f ⇒ Object
Returns the value of attribute eva_f.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb', line 43 def eva_f @eva_f end |
#hit ⇒ Object
Returns the value of attribute hit.
20 21 22 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/skill.rb', line 20 def hit @hit end |
#icon_name ⇒ Object
Returns the value of attribute icon_name.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb', line 43 def icon_name @icon_name end |
#id ⇒ Object
Returns the value of attribute id.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb', line 43 def id @id end |
#int_f ⇒ Object
Returns the value of attribute int_f.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb', line 43 def int_f @int_f end |
#mdef_f ⇒ Object
Returns the value of attribute mdef_f.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb', line 43 def mdef_f @mdef_f end |
#menu_se ⇒ Object
Returns the value of attribute menu_se.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb', line 43 def @menu_se end |
#message1 ⇒ Object
Returns the value of attribute message1.
20 21 22 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/skill.rb', line 20 def @message1 end |
#message2 ⇒ Object
Returns the value of attribute message2.
20 21 22 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/skill.rb', line 20 def @message2 end |
#minus_state_set ⇒ Object
Returns the value of attribute minus_state_set.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb', line 43 def minus_state_set @minus_state_set end |
#mp_cost ⇒ Object
Returns the value of attribute mp_cost.
20 21 22 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/skill.rb', line 20 def mp_cost @mp_cost end |
#name ⇒ Object
Returns the value of attribute name.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb', line 43 def name @name end |
#occasion ⇒ Object
Returns the value of attribute occasion.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb', line 43 def occasion @occasion end |
#pdef_f ⇒ Object
Returns the value of attribute pdef_f.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb', line 43 def pdef_f @pdef_f end |
#plus_state_set ⇒ Object
Returns the value of attribute plus_state_set.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb', line 43 def plus_state_set @plus_state_set end |
#power ⇒ Object
Returns the value of attribute power.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb', line 43 def power @power end |
#required_wtype_id1 ⇒ Object
Returns the value of attribute required_wtype_id1.
23 24 25 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/skill.rb', line 23 def required_wtype_id1 @required_wtype_id1 end |
#required_wtype_id2 ⇒ Object
Returns the value of attribute required_wtype_id2.
23 24 25 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/skill.rb', line 23 def required_wtype_id2 @required_wtype_id2 end |
#scope ⇒ Object
Returns the value of attribute scope.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb', line 43 def scope @scope end |
#sp_cost ⇒ Object
Returns the value of attribute sp_cost.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb', line 43 def sp_cost @sp_cost end |
#str_f ⇒ Object
Returns the value of attribute str_f.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb', line 43 def str_f @str_f end |
#stype_id ⇒ Object
Returns the value of attribute stype_id.
23 24 25 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/skill.rb', line 23 def stype_id @stype_id end |
#tp_cost ⇒ Object
Returns the value of attribute tp_cost.
23 24 25 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/skill.rb', line 23 def tp_cost @tp_cost end |
#variance ⇒ Object
Returns the value of attribute variance.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb', line 43 def variance @variance end |
Instance Method Details
#to_s ⇒ Object
39 40 41 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb', line 39 def to_s @name.to_s end |