Class: RPG::EquipItem

Inherits:
BaseItem show all
Extended by:
RgssDb::JsonableConstructor
Includes:
RgssDb::Jsonable
Defined in:
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/equip_item.rb

Overview

A superclass of weapons and armor.

Direct Known Subclasses

Armor, Weapon

Instance Attribute Summary collapse

Attributes inherited from BaseItem

#description, #features, #icon_index, #id, #name, #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 BaseItem

#to_s

Constructor Details

#initializeEquipItem

Returns a new instance of EquipItem.



11
12
13
14
15
16
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/equip_item.rb', line 11

def initialize
  super
  @price = 0
  @etype_id = 0
  @params = [0] * 8
end

Instance Attribute Details

#etype_idObject

Returns the value of attribute etype_id.



17
18
19
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/equip_item.rb', line 17

def etype_id
  @etype_id
end

#paramsObject

Returns the value of attribute params.



17
18
19
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/equip_item.rb', line 17

def params
  @params
end

#priceObject

Returns the value of attribute price.



17
18
19
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/equip_item.rb', line 17

def price
  @price
end