class StudioGame::ClumsyPlayer

Public Class Methods

new(name, health=100) click to toggle source
Calls superclass method
# File lib/studio_game/clumsy_player.rb, line 6
def initialize(name, health=100)
  super(name, health)
  @w00t_bonus = 1
end

Public Instance Methods

found_treasure(treasure) click to toggle source
Calls superclass method
# File lib/studio_game/clumsy_player.rb, line 16
def found_treasure(treasure)
  broken_treasure = Treasure.new(treasure.name, treasure.points / 2)
  super(broken_treasure)
end
w00t() click to toggle source
Calls superclass method
# File lib/studio_game/clumsy_player.rb, line 11
def w00t
  @w00t_bonus += 1
  @w00t_bonus.times { super }
end