Class: Rogue
Instance Attribute Summary collapse
-
#spell_buff ⇒ Object
rogues have good melee damage and the highest dodge, they get extra coin and other perks too :).
Attributes inherited from Mobs
#agi, #armor, #buff_drink, #buff_food, #coin, #cur_hp, #cur_mana, #dmg, #dodge, #hp, #int, #lvl, #mana, #name, #str, #xp
Instance Method Summary collapse
-
#initialize(str = 12, agi = 16, int = 12, dmg = 6, armor = 6, hp = 6, cur_hp = 6, dodge = 20, mana = 0, cur_mana = 0, xp = 0, lvl = 1, coin = 0, name = "Rogue") ⇒ Rogue
constructor
A new instance of Rogue.
Constructor Details
#initialize(str = 12, agi = 16, int = 12, dmg = 6, armor = 6, hp = 6, cur_hp = 6, dodge = 20, mana = 0, cur_mana = 0, xp = 0, lvl = 1, coin = 0, name = "Rogue") ⇒ Rogue
Returns a new instance of Rogue.
63 64 65 66 67 68 |
# File 'lib/mobs.rb', line 63 def initialize(str=12, agi=16, int=12, dmg=6, armor=6, hp=6, cur_hp=6, dodge=20, mana=0, cur_mana=0, xp=0, lvl=1, coin=0, name="Rogue") super(str,agi,int,dmg,armor,hp,cur_hp,dodge,mana,cur_mana,xp,lvl,coin,name) @buff_food = false @buff_drink = false @spell_buff = false end |
Instance Attribute Details
#spell_buff ⇒ Object
rogues have good melee damage and the highest dodge, they get extra coin and other perks too :)
61 62 63 |
# File 'lib/mobs.rb', line 61 def spell_buff @spell_buff end |