Sha256: b409238b99e9f47952f613c1a27f92c0acd25b49eba7c7f588535ed0c0dccf2c
Contents?: true
Size: 869 Bytes
Versions: 7
Compression:
Stored size: 869 Bytes
Contents
# lib/gemwarrior/entities/items/floor_tile.rb # Item::FloorTile require_relative '../item' module Gemwarrior class FloorTile < Item def initialize self.name = 'floor_tile' self.description = 'One of the floor tiles, rough-hewn but immaculate, looks...off. Pressable, even.' self.atk_lo = nil self.atk_hi = nil self.takeable = false self.useable = true self.equippable = false self.equipped = false end def use(player = nil) puts 'You slowly lower your foot onto the tile, and then gently depress it, through the floor. Your whole body begins to feel light, lifeless. You black out.' puts Animation::run({ :phrase => '*** SHOOOOOM ***' }) {:type => 'move', :data => 'Rock Quarry'} end end end
Version data entries
7 entries across 7 versions & 1 rubygems