Class: RPG::Enemy

Inherits:
BaseItem show all
Defined in:
lib/R3EXS/RGSS3.rb

Defined Under Namespace

Classes: Action, DropItem

Instance Attribute Summary collapse

Attributes inherited from BaseItem

#description, #features, #icon_index, #id, #name, #note

Instance Method Summary collapse

Constructor Details

#initializeEnemy



894
895
896
897
898
899
900
901
902
903
904
905
906
# File 'lib/R3EXS/RGSS3.rb', line 894

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

Instance Attribute Details

#actionsObject

Returns the value of attribute actions.



914
915
916
# File 'lib/R3EXS/RGSS3.rb', line 914

def actions
  @actions
end

#battler_hueObject

Returns the value of attribute battler_hue.



909
910
911
# File 'lib/R3EXS/RGSS3.rb', line 909

def battler_hue
  @battler_hue
end

#battler_nameObject

Returns the value of attribute battler_name.



908
909
910
# File 'lib/R3EXS/RGSS3.rb', line 908

def battler_name
  @battler_name
end

#drop_itemsObject

Returns the value of attribute drop_items.



913
914
915
# File 'lib/R3EXS/RGSS3.rb', line 913

def drop_items
  @drop_items
end

#expObject

Returns the value of attribute exp.



911
912
913
# File 'lib/R3EXS/RGSS3.rb', line 911

def exp
  @exp
end

#goldObject

Returns the value of attribute gold.



912
913
914
# File 'lib/R3EXS/RGSS3.rb', line 912

def gold
  @gold
end

#paramsObject

Returns the value of attribute params.



910
911
912
# File 'lib/R3EXS/RGSS3.rb', line 910

def params
  @params
end