Sha256: 840284fa5972c9139bac8c152d4d5fabaae94638891fc488baa88a840d6edfce

Contents?: true

Size: 1002 Bytes

Versions: 12

Compression:

Stored size: 1002 Bytes

Contents

# lib/gemwarrior/entities/monsters/alexandrat.rb
# Entity::Creature::Monster::Alexandrat

require_relative '../monster'

module Gemwarrior
  class Alexandrat < Monster
    def initialize
      super

      self.name         = 'alexandrat'
      self.name_display = 'Alexandrat'
      self.description  = 'Tiny, but fierce, color-changing rodent.'
      self.battlecry    = 'Bitey, bitey!'
      self.face         = 'ugly'
      self.hands        = 'gnarled'
      self.mood         = '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.rox          = rand((level * 2)..(level * 3))
      self.xp           = rand(level..(level * 2))
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
gemwarrior-0.12.5 lib/gemwarrior/entities/monsters/alexandrat.rb
gemwarrior-0.12.4 lib/gemwarrior/entities/monsters/alexandrat.rb
gemwarrior-0.12.3 lib/gemwarrior/entities/monsters/alexandrat.rb
gemwarrior-0.12.2 lib/gemwarrior/entities/monsters/alexandrat.rb
gemwarrior-0.12.1 lib/gemwarrior/entities/monsters/alexandrat.rb
gemwarrior-0.12.0 lib/gemwarrior/entities/monsters/alexandrat.rb
gemwarrior-0.11.5 lib/gemwarrior/entities/monsters/alexandrat.rb
gemwarrior-0.11.4 lib/gemwarrior/entities/monsters/alexandrat.rb
gemwarrior-0.11.3 lib/gemwarrior/entities/monsters/alexandrat.rb
gemwarrior-0.11.2 lib/gemwarrior/entities/monsters/alexandrat.rb
gemwarrior-0.11.1 lib/gemwarrior/entities/monsters/alexandrat.rb
gemwarrior-0.11.0 lib/gemwarrior/entities/monsters/alexandrat.rb