public
Description: RubyStein 3d SUPER MEGA ULTRA MEGAZORD UBER UBER ENTERPRISE EDITION
Homepage:
Clone URL: git://github.com/FooBarWidget/rubystein.git
Hongli Lai (Phusion) (author)
Thu May 14 05:33:25 -0700 2009
rubystein / weapon.rb
100644 12 lines (10 sloc) 0.177 kb
1
2
3
4
5
6
7
8
9
10
11
12
module Damageable
  attr_accessor :health
  
  def dead?
    @health <= 0
  end
  
  def take_damage_from(player)
    @health -= 5
    #@health -= player.weapon.damage
  end
end