Sha256: 2850833facea68b28cdb9d0db66a3a7a3cffb3635aded22c77edeaf19c2150a9
Contents?: true
Size: 920 Bytes
Versions: 9
Compression:
Stored size: 920 Bytes
Contents
# lib/gemwarrior/entities/items/snowman.rb # Item::Snowman require_relative '../item' module Gemwarrior class Snowman < Item # CONSTANTS USE_TEXT = '*** FOOOOSH ***' def initialize super 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 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: USE_TEXT) { type: 'move_dangerous', data: 'Home' } end end end
Version data entries
9 entries across 9 versions & 1 rubygems