Class: RPG::Enemy::DropItem
- Inherits:
-
Object
- Object
- RPG::Enemy::DropItem
- Extended by:
- RgssDb::JsonableConstructor
- Includes:
- RgssDb::Jsonable
- Defined in:
- lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy_drop_item.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/enemy_drop_item.rb
Overview
The data class for enemy [Drop Items].
Instance Attribute Summary collapse
-
#armor_id ⇒ Object
Returns the value of attribute armor_id.
-
#data_id ⇒ Object
Returns the value of attribute data_id.
-
#denominator ⇒ Object
Returns the value of attribute denominator.
-
#item_id ⇒ Object
Returns the value of attribute item_id.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#weapon_id ⇒ Object
Returns the value of attribute weapon_id.
Instance Method Summary collapse
-
#initialize ⇒ DropItem
constructor
A new instance of DropItem.
Methods included from RgssDb::JsonableConstructor
Methods included from RgssDb::Jsonable
Constructor Details
#initialize ⇒ DropItem
Returns a new instance of DropItem.
12 13 14 15 16 17 18 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy_drop_item.rb', line 12 def initialize @kind = 0 @item_id = 1 @weapon_id = 1 @armor_id = 1 @denominator = 1 end |
Instance Attribute Details
#armor_id ⇒ Object
Returns the value of attribute armor_id.
20 21 22 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy_drop_item.rb', line 20 def armor_id @armor_id end |
#data_id ⇒ Object
Returns the value of attribute data_id.
21 22 23 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/enemy_drop_item.rb', line 21 def data_id @data_id end |
#denominator ⇒ Object
Returns the value of attribute denominator.
20 21 22 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy_drop_item.rb', line 20 def denominator @denominator end |
#item_id ⇒ Object
Returns the value of attribute item_id.
20 21 22 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy_drop_item.rb', line 20 def item_id @item_id end |
#kind ⇒ Object
Returns the value of attribute kind.
20 21 22 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy_drop_item.rb', line 20 def kind @kind end |
#weapon_id ⇒ Object
Returns the value of attribute weapon_id.
20 21 22 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/enemy_drop_item.rb', line 20 def weapon_id @weapon_id end |