Sha256: 0e47dd1e364b2d11839aac18502d33627caaff9fc16a8ae6d2bd3f7853dba76f
Contents?: true
Size: 934 Bytes
Versions: 8
Compression:
Stored size: 934 Bytes
Contents
# lib/gemwarrior/entities/items/floor_tile.rb # Item::FloorTile require_relative '../item' module Gemwarrior # CONSTANTS MOVE_TEXT = '*** SHOOOOOM ***' 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 # stats player.movements_made += 1 Animation::run(phrase: MOVE_TEXT) { type: 'move', data: 'Rock Piles' } end end end
Version data entries
8 entries across 8 versions & 1 rubygems