class Core::Game::Constitution

Public Class Methods

new() click to toggle source
# File lib/game/constitution.rb, line 36
def initialize
  @wounds = []
end

Public Instance Methods

update(char) click to toggle source

this should only be called when needed

# File lib/game/constitution.rb, line 40
def update(char)
  str = char.strength
  dmg = 0
  @wounds.each { |w|
    dmg += w.severity * w.location_factor
  }
end