Sha256: e478980f9d9003d87d9d8378a0523add9ae7446afcc9c04b42c81c11c8da5649

Contents?: true

Size: 909 Bytes

Versions: 28

Compression:

Stored size: 909 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

28 entries across 28 versions & 1 rubygems

Version Path
gemwarrior-0.9.27 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.9.26 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.9.24 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.9.23 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.9.22 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.9.21 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.9.20 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.9.19 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.9.18 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.9.17 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.9.16 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.9.15 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.9.14 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.9.13 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.9.12 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.9.10 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.9.9 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.9.8 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.9.7 lib/gemwarrior/entities/items/snowman.rb
gemwarrior-0.9.6 lib/gemwarrior/entities/items/snowman.rb