class StudioGame::SloppyPhilosopher

Public Class Methods

new(name, health=100) click to toggle source
Calls superclass method StudioGame::Philosopher::new
# File lib/studio_game/sloppy_philosopher.rb, line 5
def initialize(name, health=100)
  super(name, health)
  @w00t_count = 0
end

Public Instance Methods

bonus_w00ts?() click to toggle source
# File lib/studio_game/sloppy_philosopher.rb, line 15
def bonus_w00ts?
  @w00t_count % 3 == 0
end
discovered_epiphanies(epiphany) click to toggle source
# File lib/studio_game/sloppy_philosopher.rb, line 10
def discovered_epiphanies(epiphany)
  sloppy_thinking = Epiphany.new(epiphany.name, epiphany.points / 2.0)
  super(sloppy_thinking)
end
w00t() click to toggle source
Calls superclass method StudioGame::Playable#w00t
# File lib/studio_game/sloppy_philosopher.rb, line 19
def w00t
  super
  @w00t_count += 1
  2.times { w00t } if bonus_w00ts? 
end