Class: Gemwarrior::Snowman

Inherits:
Item show all
Defined in:
lib/gemwarrior/entities/items/snowman.rb

Instance Attribute Summary

Attributes inherited from Item

#atk_hi, #atk_lo, #equippable, #equipped, #reuse, #takeable, #useable

Attributes inherited from Entity

#description, #name

Instance Method Summary collapse

Methods inherited from Item

#describe

Methods inherited from Entity

#status

Constructor Details

#initializeSnowman

Returns a new instance of Snowman.



8
9
10
11
12
13
14
15
16
17
# File 'lib/gemwarrior/entities/items/snowman.rb', line 8

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

Instance Method Details

#use(player = nil) ⇒ Object



19
20
21
22
23
24
25
26
# File 'lib/gemwarrior/entities/items/snowman.rb', line 19

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