Sha256: 8160b531c393fedfff67274825234b243dc509cbd6d5e589b0ea34296fed2899

Contents?: true

Size: 872 Bytes

Versions: 4

Compression:

Stored size: 872 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(inventory = 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

4 entries across 4 versions & 1 rubygems

Version Path
gemwarrior-0.7.8 lib/gemwarrior/entities/items/floor_tile.rb
gemwarrior-0.7.7 lib/gemwarrior/entities/items/floor_tile.rb
gemwarrior-0.7.6 lib/gemwarrior/entities/items/floor_tile.rb
gemwarrior-0.7.5 lib/gemwarrior/entities/items/floor_tile.rb