Sha256: a22615c34f15950bbe47360c9f6a0a83e88bd5ccc2b7d62c7638610c00fd068a

Contents?: true

Size: 864 Bytes

Versions: 2

Compression:

Stored size: 864 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 => 'Sky Tower (Entrance)'}
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gemwarrior-0.7.3 lib/gemwarrior/entities/items/floor_tile.rb
gemwarrior-0.7.2 lib/gemwarrior/entities/items/floor_tile.rb