Class: RPG::Enemy::DropItem

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

Instance Method Summary collapse

Methods included from RgssDb::JsonableConstructor

json_create, json_new

Methods included from RgssDb::Jsonable

#as_json, #to_json

Constructor Details

#initializeDropItem

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_idObject

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_idObject

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

#denominatorObject

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_idObject

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

#kindObject

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_idObject

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