Class: RPG::Item
- Inherits:
-
UsableItem
- Object
- BaseItem
- UsableItem
- RPG::Item
- Defined in:
- lib/R3EXS/RGSS3.rb
Instance Attribute Summary collapse
-
#consumable ⇒ Object
Returns the value of attribute consumable.
-
#itype_id ⇒ Object
Returns the value of attribute itype_id.
-
#price ⇒ Object
Returns the value of attribute price.
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 ⇒ Item
constructor
A new instance of Item.
- #key_item? ⇒ Boolean
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 ⇒ Item
Returns a new instance of Item.
809 810 811 812 813 814 815 |
# File 'lib/R3EXS/RGSS3.rb', line 809 def initialize super @scope = 7 @itype_id = 1 @price = 0 @consumable = true end |
Instance Attribute Details
#consumable ⇒ Object
Returns the value of attribute consumable.
823 824 825 |
# File 'lib/R3EXS/RGSS3.rb', line 823 def consumable @consumable end |
#itype_id ⇒ Object
Returns the value of attribute itype_id.
821 822 823 |
# File 'lib/R3EXS/RGSS3.rb', line 821 def itype_id @itype_id end |
#price ⇒ Object
Returns the value of attribute price.
822 823 824 |
# File 'lib/R3EXS/RGSS3.rb', line 822 def price @price end |
Instance Method Details
#key_item? ⇒ Boolean
817 818 819 |
# File 'lib/R3EXS/RGSS3.rb', line 817 def key_item? @itype_id == 2 end |