敌人的数据类。
战斗图的文件名。
战斗图的色调调整(0..360)。
能力值。以下面的 ID 为下标的整数数组。
经验。
金钱。
掉落物品。RPG::Enemy::DropItem 的数组。
行为模式。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