Class: Gemwarrior::Snowman
- 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
Instance Method Summary collapse
-
#initialize ⇒ Snowman
constructor
A new instance of Snowman.
- #use(player = nil) ⇒ Object
Methods inherited from Item
Methods inherited from Entity
Constructor Details
#initialize ⇒ Snowman
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 |