Sha256: f976c4cfdd62b6d89222ff4d8c5d5a86dc74a98bbc5cd22d16e3d2da5aa8b8ec

Contents?: true

Size: 939 Bytes

Versions: 9

Compression:

Stored size: 939 Bytes

Contents

# lib/gemwarrior/entities/items/snowman.rb
# Item::Snowman

require_relative '../item'

module Gemwarrior
  class Snowman < Item
    # CONSTANTS
    USE_TEXT = '*** FOOOOSH ***'

    def initialize
      self.name         = 'snowman'
      self.description  = 'Standing solemnly in the snow, a man of snow solemnly stands.'
      self.atk_lo       = nil
      self.atk_hi       = nil
      self.takeable     = false
      self.useable      = true
      self.equippable   = false
      self.equipped     = false
    end

    def use(player = nil)
      puts 'You go to touch the snowy softness of the snowman when it magically comes to life! The frozen homunculus grabs you by the wrist and tosses you to the ground, only to follow this up by jumping onto you with its full, freezing, force. Your body, and mind, go numb.'
      puts

      Animation::run(phrase: USE_TEXT)

      { type: 'move_dangerous', data: 'Home' }
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gemwarrior-0.9.37 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.9.36 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.9.35 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.9.34 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.9.33 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.9.32 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.9.31 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.9.30 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.9.28 lib/gemwarrior/entities/items/snowman.rb