Sha256: 594966d10146324f9cf2bd7e8abdb674b30d30c953d58fb9a9967c074bc87973
Contents?: true
Size: 892 Bytes
Versions: 3
Compression:
Stored size: 892 Bytes
Contents
# lib/gemwarrior/entities/monster.rb # Monster creature require_relative 'creature' module Gemwarrior class Monster < Creature attr_accessor :battlecry, :is_boss def describe status_text = name.upcase.ljust(26) status_text << "LEVEL: #{level.to_s.rjust(2)}, " status_text << "HP: #{hp_cur.to_s.rjust(3)}/#{hp_max.to_s.rjust(3)} " status_text << "ATK: #{atk_lo.to_s.rjust(2)}-#{atk_hi.to_s.rjust(2)} " status_text << "DEF: #{defense.to_s.rjust(2)} " status_text << "DEX: #{dexterity.to_s.rjust(2)} " status_text << "ROX: #{rox.to_s.rjust(3)} " status_text << "XP: #{xp.to_s.rjust(3)} " status_text << "FACE: #{face.ljust(12)} " status_text << "HANDS: #{hands.ljust(12)} " status_text << "MOOD: #{mood.ljust(12)}" status_text << "INV: #{inventory.list_contents}\n" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gemwarrior-0.7.0 | lib/gemwarrior/entities/monster.rb |
gemwarrior-0.6.5 | lib/gemwarrior/entities/monster.rb |
gemwarrior-0.6.4 | lib/gemwarrior/entities/monster.rb |