Sha256: 077e6f1cc09429635f2cbb339376fdf5f58fd3d5a861669bcae3775dab6e3bf4

Contents?: true

Size: 804 Bytes

Versions: 48

Compression:

Stored size: 804 Bytes

Contents

# lib/gemwarrior/entities/items/floor_tile.rb
# Entity::Item::FloorTile

require_relative '../item'

module Gemwarrior
  class FloorTile < Item
    # CONSTANTS
    MOVE_TEXT = '** SHOOOOOM **'

    def initialize
      super

      self.name         = 'floor_tile'
      self.name_display = 'Floor Tile'
      self.description  = 'One of the floor tiles, rough-hewn but immaculate, looks...off. Pressable, even.'
    end

    def use(world)
      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

      # stats
      world.player.movements_made += 1

      Animation.run(phrase: MOVE_TEXT)

      { type: 'move', data: 'Rock Piles' }
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
gemwarrior-0.15.20 lib/gemwarrior/entities/items/floor_tile.rb
gemwarrior-0.15.19 lib/gemwarrior/entities/items/floor_tile.rb
gemwarrior-0.15.18 lib/gemwarrior/entities/items/floor_tile.rb
gemwarrior-0.15.17 lib/gemwarrior/entities/items/floor_tile.rb
gemwarrior-0.15.16 lib/gemwarrior/entities/items/floor_tile.rb
gemwarrior-0.15.15 lib/gemwarrior/entities/items/floor_tile.rb
gemwarrior-0.15.14 lib/gemwarrior/entities/items/floor_tile.rb
gemwarrior-0.15.13 lib/gemwarrior/entities/items/floor_tile.rb
gemwarrior-0.15.12 lib/gemwarrior/entities/items/floor_tile.rb
gemwarrior-0.15.11 lib/gemwarrior/entities/items/floor_tile.rb
gemwarrior-0.15.10 lib/gemwarrior/entities/items/floor_tile.rb
gemwarrior-0.15.9 lib/gemwarrior/entities/items/floor_tile.rb
gemwarrior-0.15.8 lib/gemwarrior/entities/items/floor_tile.rb
gemwarrior-0.15.7 lib/gemwarrior/entities/items/floor_tile.rb
gemwarrior-0.15.6 lib/gemwarrior/entities/items/floor_tile.rb
gemwarrior-0.15.5 lib/gemwarrior/entities/items/floor_tile.rb
gemwarrior-0.15.4 lib/gemwarrior/entities/items/floor_tile.rb
gemwarrior-0.15.3 lib/gemwarrior/entities/items/floor_tile.rb
gemwarrior-0.15.2 lib/gemwarrior/entities/items/floor_tile.rb
gemwarrior-0.15.1 lib/gemwarrior/entities/items/floor_tile.rb