Data class for enemies.
The enemy ID.
The enemy name.
The enemy's battler graphic file name.
The adjustment value for the battler graphic's hue (0..360).
The enemy's MaxHP.
The enemy's MaxMP.
The enemy's attack power.
The enemy's defense power.
The enemy's spirit.
The enemy's agility.
The enemy's hit ratio.
The enemy's evasion rate.
The enemy's experience.
The enemy's gold.
The drop item 1 (RPG::Enemy::DropItem) 。
The drop item 2 (RPG::Enemy::DropItem) 。
Truth value of the [Levitate] option.
Truth value of the [Has Critical] option.
Level of elements efficiency. 1-dimensional array using element IDs as subscripts (Table), with 6 levels (0: A, 1: B, 2: C, 3: D, 4: E, 5: F).
Level of states efficiency. 1-dimensional array using status IDs as subscripts (Table), with 6 levels (0: A, 1: B, 2: C, 3: D, 4: E, 5: F).
Actions petterns. An RPG::Enemy::Action array.
The text of the note.
module RPG class Enemy def initialize @id = 0 @name = "" @battler_name = "" @battler_hue = 0 @maxhp = 10 @maxmp = 10 @atk = 10 @def = 10 @spi = 10 @agi = 10 @hit = 95 @eva = 5 @exp = 0 @gold = 0 @drop_item1 = RPG::Enemy::DropItem.new @drop_item2 = RPG::Enemy::DropItem.new @levitate = false @has_critical = false @element_ranks = Table.new(1) @state_ranks = Table.new(1) @actions = [RPG::Enemy::Action.new] @note = "" end attr_accessor :id attr_accessor :name attr_accessor :battler_name attr_accessor :battler_hue attr_accessor :maxhp attr_accessor :maxmp attr_accessor :atk attr_accessor :def attr_accessor :spi attr_accessor :agi attr_accessor :hit attr_accessor :eva attr_accessor :exp attr_accessor :gold attr_accessor :drop_item1 attr_accessor :drop_item2 attr_accessor :levitate attr_accessor :has_critical attr_accessor :element_ranks attr_accessor :state_ranks attr_accessor :actions attr_accessor :note end end
Converted from CHM to HTML with chm2web Pro 2.85 (unicode) |