RPG::Enemy::DropItem

The data class for enemy [Drop Items].

Superclass

Referrer

Attributes

kind

The type of dropped item.

data_id

The ID of the data depending on the type of dropped item (item, weapon, or armor).

denominator

N of the probability that the item will be dropped, 1/N.

Definition

class RPG::Enemy::DropItem
  def initialize
    @kind = 0
    @data_id = 1
    @denominator = 1
  end
  attr_accessor :kind
  attr_accessor :data_id
  attr_accessor :denominator
end