Class: RPG::Skill

Inherits:
UsableItem show all
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

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

#features, #icon_index, #note

Instance Method Summary collapse

Methods included from RgssDb::JsonableConstructor

json_create, json_new

Methods included from RgssDb::Jsonable

#as_json, #to_json

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

#initializeSkill

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_fObject

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_idObject

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_idObject

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_fObject

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_idObject

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

#descriptionObject

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_fObject

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_setObject

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_fObject

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

#hitObject

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_nameObject

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

#idObject

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_fObject

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_fObject

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

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
  @menu_se
end

#message1Object

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
  @message1
end

#message2Object

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
  @message2
end

#minus_state_setObject

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_costObject

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

#nameObject

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

#occasionObject

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_fObject

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_setObject

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

#powerObject

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_id1Object

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_id2Object

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

#scopeObject

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_costObject

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_fObject

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_idObject

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_costObject

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

#varianceObject

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_sObject



39
40
41
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/skill.rb', line 39

def to_s
  @name.to_s
end