Sha256: 3ac50c25187cebbe7c5f1c3104393fb30e9afb8f117ef0c4eb4e1f7f77c3d258
Contents?: true
Size: 876 Bytes
Versions: 3
Compression:
Stored size: 876 Bytes
Contents
# lib/gemwarrior/monster.rb # Monster creature require_relative 'constants' require_relative 'inventory' require_relative 'creature' module Gemwarrior class Monster < Creature include Entities::Monsters attr_reader :name def initialize( id, name = MOB_NAME_DEFAULT, description = MOB_DESC_FAULT, face = '', hands ='', mood = '', level = '', hp_cur = 5, hp_max = 5, atk_lo = 1, atk_hi = 2, inventory = Inventory.new, rox = 1 ) @id = id @name = name @description = description @face = face @hands = hands @mood = mood @level = rand(level) @hp_cur = hp_cur @hp_max = hp_max @atk_lo = atk_lo @atk_hi = atk_hi @inventory = inventory @rox = rox end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gemwarrior-0.3.1 | lib/gemwarrior/monster.rb |
gemwarrior-0.3.0 | lib/gemwarrior/monster.rb |
gemwarrior-0.2.0 | lib/gemwarrior/monster.rb |