Sha256: 7c5b956b54218b14175d4ad5f88293235816c36b2306ac299b27fb714cacc022

Contents?: true

Size: 855 Bytes

Versions: 1

Compression:

Stored size: 855 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
      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

1 entries across 1 versions & 1 rubygems

Version Path
gemwarrior-0.7.4 lib/gemwarrior/entities/items/floor_tile.rb