Sha256: ca17d6057db8a58e4b3406a6940de3bc884731753f7002feba00662711a1fb41

Contents?: true

Size: 913 Bytes

Versions: 7

Compression:

Stored size: 913 Bytes

Contents

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

require_relative '../item'

module Gemwarrior
  class Snowman < Item
    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 => '*** FOOOOSH ***' })

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gemwarrior-0.8.6 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.8.5 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.8.3 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.8.2 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.8.1 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.8.0 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.7.9 lib/gemwarrior/entities/items/snowman.rb