RPG::UsableItem::Effect

The data class for use effects.

Superclass

Referrer

Attributes

code

The use effect code.

data_id

The ID of data (state, parameter, and so on) according to the type of use effect.

value1

Value 1 set according to the type of use effect.

value2

Value 2 set according to the type of use effect.

Definition

class RPG::UsableItem::Effect
  def initialize(code = 0, data_id = 0, value1 = 0, value2 = 0)
    @code = code
    @data_id = data_id
    @value1 = value1
    @value2 = value2
  end
  attr_accessor :code
  attr_accessor :data_id
  attr_accessor :value1
  attr_accessor :value2
end