Class: RPG::Enemy
Defined Under Namespace
Instance Attribute Summary collapse
-
#actions ⇒ Object
Returns the value of attribute actions.
-
#battler_hue ⇒ Object
Returns the value of attribute battler_hue.
-
#battler_name ⇒ Object
Returns the value of attribute battler_name.
-
#drop_items ⇒ Object
Returns the value of attribute drop_items.
-
#exp ⇒ Object
Returns the value of attribute exp.
-
#gold ⇒ Object
Returns the value of attribute gold.
-
#params ⇒ Object
Returns the value of attribute params.
Attributes inherited from BaseItem
#description, #features, #icon_index, #id, #name, #note
Instance Method Summary collapse
-
#initialize ⇒ Enemy
constructor
A new instance of Enemy.
Constructor Details
#initialize ⇒ Enemy
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
#actions ⇒ Object
Returns the value of attribute actions.
914 915 916 |
# File 'lib/R3EXS/RGSS3.rb', line 914 def actions @actions end |
#battler_hue ⇒ Object
Returns the value of attribute battler_hue.
909 910 911 |
# File 'lib/R3EXS/RGSS3.rb', line 909 def battler_hue @battler_hue end |
#battler_name ⇒ Object
Returns the value of attribute battler_name.
908 909 910 |
# File 'lib/R3EXS/RGSS3.rb', line 908 def battler_name @battler_name end |
#drop_items ⇒ Object
Returns the value of attribute drop_items.
913 914 915 |
# File 'lib/R3EXS/RGSS3.rb', line 913 def drop_items @drop_items end |
#exp ⇒ Object
Returns the value of attribute exp.
911 912 913 |
# File 'lib/R3EXS/RGSS3.rb', line 911 def exp @exp end |
#gold ⇒ Object
Returns the value of attribute gold.
912 913 914 |
# File 'lib/R3EXS/RGSS3.rb', line 912 def gold @gold end |
#params ⇒ Object
Returns the value of attribute params.
910 911 912 |
# File 'lib/R3EXS/RGSS3.rb', line 910 def params @params end |