Class: RPG::Skill

Inherits:
UsableItem show all
Defined in:
lib/R3EXS/RGSS3.rb

Instance Attribute Summary collapse

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

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

#initializeSkill

Returns a new instance of Skill.



809
810
811
812
813
814
815
816
817
818
819
# File 'lib/R3EXS/RGSS3.rb', line 809

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

#message1Object

Returns the value of attribute message1.



824
825
826
# File 'lib/R3EXS/RGSS3.rb', line 824

def message1
  @message1
end

#message2Object

Returns the value of attribute message2.



825
826
827
# File 'lib/R3EXS/RGSS3.rb', line 825

def message2
  @message2
end

#mp_costObject

Returns the value of attribute mp_cost.



822
823
824
# File 'lib/R3EXS/RGSS3.rb', line 822

def mp_cost
  @mp_cost
end

#required_wtype_id1Object

Returns the value of attribute required_wtype_id1.



826
827
828
# File 'lib/R3EXS/RGSS3.rb', line 826

def required_wtype_id1
  @required_wtype_id1
end

#required_wtype_id2Object

Returns the value of attribute required_wtype_id2.



827
828
829
# File 'lib/R3EXS/RGSS3.rb', line 827

def required_wtype_id2
  @required_wtype_id2
end

#stype_idObject

Returns the value of attribute stype_id.



821
822
823
# File 'lib/R3EXS/RGSS3.rb', line 821

def stype_id
  @stype_id
end

#tp_costObject

Returns the value of attribute tp_cost.



823
824
825
# File 'lib/R3EXS/RGSS3.rb', line 823

def tp_cost
  @tp_cost
end