Sha256: bba2c4e8e23029e2a14837a1e0139485e07fd75a5d092c29f924e471690e0eaf

Contents?: true

Size: 998 Bytes

Versions: 7

Compression:

Stored size: 998 Bytes

Contents

# lib/gemwarrior/entities/monsters/alexandrat.rb
# Alexandrat monster

require_relative '../monster'

module Gemwarrior
  class Alexandrat < Monster
    def initialize
      self.name         = 'alexandrat'
      self.description  = 'Tiny, but fierce, color-changing rodent.'
      self.face         = 'ugly'
      self.hands        = 'gnarled'
      self.mood         = 'unsurprisingly unchipper'
      
      self.level        = rand(1..2)
      self.hp_cur       = rand((level * 2)..(level * 3))
      self.hp_max       = hp_cur
      self.atk_lo       = rand(level..(level * 1.5).floor)
      self.atk_hi       = rand((level * 1.5).floor..(level * 2))
      self.defense      = rand(level..(level * 1.5).floor)
      self.dexterity    = rand(1..3)

      self.inventory    = Inventory.new
      self.rox          = rand((level * 2)..(level * 3))
      self.xp           = rand(level..(level * 2))
      
      self.battlecry    = 'Bitey, bitey!'
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gemwarrior-0.6.3 lib/gemwarrior/entities/monsters/alexandrat.rb
gemwarrior-0.6.2 lib/gemwarrior/entities/monsters/alexandrat.rb
gemwarrior-0.6.1 lib/gemwarrior/entities/monsters/alexandrat.rb
gemwarrior-0.6.0 lib/gemwarrior/entities/monsters/alexandrat.rb
gemwarrior-0.5.2 lib/gemwarrior/entities/monsters/alexandrat.rb
gemwarrior-0.5.1 lib/gemwarrior/entities/monsters/alexandrat.rb
gemwarrior-0.5 lib/gemwarrior/entities/monsters/alexandrat.rb