Sha256: 9bbc15e91b2bf3c10db11be01b13df706280d4e3891df883d06ca1780311a132

Contents?: true

Size: 799 Bytes

Versions: 48

Compression:

Stored size: 799 Bytes

Contents

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

require_relative '../item'

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

    def initialize
      super

      self.name         = 'snowman'
      self.name_display = 'Snowman'
      self.description  = 'Standing solemnly in the snow, a man of snow solemnly stands.'
    end

    def use(world)
      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

48 entries across 48 versions & 1 rubygems

Version Path
gemwarrior-0.15.0 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.14.8 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.14.7 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.14.6 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.14.5 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.14.4 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.14.3 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.14.2 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.14.1 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.14.0 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.13.2 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.13.1 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.13.0 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.12.8 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.12.7 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.12.6 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.12.5 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.12.4 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.12.3 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.12.2 lib/gemwarrior/entities/items/snowman.rb