Method: Core::Game::Wound#initialize
- Defined in:
- lib/game/constitution.rb
#initialize(location, severity) ⇒ Wound
Returns a new instance of Wound.
6 7 8 9 10 11 12 |
# File 'lib/game/constitution.rb', line 6 def initialize(location, severity) if !WOUND_LOCATIONS.include?(location) puts("WARNING: Unknown wound location #{location}") end @location = location @severity = severity end |