Class: Wizard

Inherits:
Mobs
  • Object
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 = 8, agi = 10, int = 16, dmg = 4, armor = 4, hp = 4, cur_hp = 4, dodge = 5, mana = 16, cur_mana = 16, xp = 0, lvl = 1, coin = 0, name = "Wizard") ⇒ Wizard

Returns a new instance of Wizard.



78
79
80
81
82
83
# File 'lib/mobs.rb', line 78

def initialize(str=8, agi=10, int=16, dmg=4, armor=4, hp=4, cur_hp=4, dodge=5, mana=16, cur_mana=16, xp=0, lvl=1, coin=0, name="Wizard")
  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

wizards can cast damaging spells and have a pet familiar



76
77
78
# File 'lib/mobs.rb', line 76

def spell_buff
  @spell_buff
end