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
Returns a new instance of Enemy.
872 873 874 875 876 877 878 879 880 881 882 883 884 |
# File 'lib/R3EXS/RGSS3.rb', line 872 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.
892 893 894 |
# File 'lib/R3EXS/RGSS3.rb', line 892 def actions @actions end |
#battler_hue ⇒ Object
Returns the value of attribute battler_hue.
887 888 889 |
# File 'lib/R3EXS/RGSS3.rb', line 887 def battler_hue @battler_hue end |
#battler_name ⇒ Object
Returns the value of attribute battler_name.
886 887 888 |
# File 'lib/R3EXS/RGSS3.rb', line 886 def battler_name @battler_name end |
#drop_items ⇒ Object
Returns the value of attribute drop_items.
891 892 893 |
# File 'lib/R3EXS/RGSS3.rb', line 891 def drop_items @drop_items end |
#exp ⇒ Object
Returns the value of attribute exp.
889 890 891 |
# File 'lib/R3EXS/RGSS3.rb', line 889 def exp @exp end |
#gold ⇒ Object
Returns the value of attribute gold.
890 891 892 |
# File 'lib/R3EXS/RGSS3.rb', line 890 def gold @gold end |
#params ⇒ Object
Returns the value of attribute params.
888 889 890 |
# File 'lib/R3EXS/RGSS3.rb', line 888 def params @params end |