The data class for enemies.
The file name of the enemy's battler graphic.
The adjustment value for the battler graphic's hue (0..360).
Parameters. An array of integers using the following IDs as subscripts:
The enemy's experience.
The enemy's gold.
The items the enemy drops. An RPG::Enemy::DropItem array.
The enemy's action pattern. An array of RPG::Enemy::Action.
class RPG::Enemy < RPG::BaseItem def initialize super @battler_name = '' @battler_hue = 0 @params = [100,0,10,10,10,10,10,10] @exp = 0 @gold = 0 @drop_items = Array.new(3) { RPG::Enemy::DropItem.new } @actions = [RPG::Enemy::Action.new] @features.push(RPG::BaseItem::Feature.new(22, 0, 0.95)) @features.push(RPG::BaseItem::Feature.new(22, 1, 0.05)) @features.push(RPG::BaseItem::Feature.new(31, 1, 0)) end attr_accessor :battler_name attr_accessor :battler_hue attr_accessor :params attr_accessor :exp attr_accessor :gold attr_accessor :drop_items attr_accessor :actions end