Sha256: 433dc149766d9c864cc6f95d8b2d68cf1f3c189456ea16896456a024a87c63ae
Contents?: true
Size: 916 Bytes
Versions: 3
Compression:
Stored size: 916 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(inventory = 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gemwarrior-0.7.8 | lib/gemwarrior/entities/items/snowman.rb |
gemwarrior-0.7.7 | lib/gemwarrior/entities/items/snowman.rb |
gemwarrior-0.7.6 | lib/gemwarrior/entities/items/snowman.rb |