Class: Gemwarrior::Snowman

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

Constant Summary collapse

USE_TEXT =

CONSTANTS

'** FOOOOSH **'

Instance Attribute Summary

Attributes inherited from Item

#is_armor, #is_weapon

Attributes inherited from Entity

#consumable, #describe, #describe_detailed, #description, #display_shopping_cart, #equippable, #equipped, #name, #name_display, #number_of_uses, #takeable, #talkable, #useable, #useable_battle, #used, #used_again

Instance Method Summary collapse

Methods inherited from Item

#describe_detailed

Methods inherited from Entity

#puts

Constructor Details

#initializeSnowman

Returns a new instance of Snowman.



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

def initialize
  super

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

Instance Method Details

#use(world) ⇒ Object



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

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