Class: Rogue

Inherits:
Mobs show all
Defined in:
lib/mobs.rb

Instance Attribute Summary collapse

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

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_buffObject

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