Sha256: 7bb99bb8c0b23df22f6d3f7ebaa84eb1732166618df66512831684c985712b0c
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
# lib/gemwarrior/entities/items/tower_switch.rb # Item::TowerSwitch require_relative '../item' module Gemwarrior class TowerSwitch < Item def initialize self.name = 'tower_switch' self.description = 'A pedestal about 4 feet in height rises up from the ground, a switch atop it. It is labeled "Tower" with choices for "Yes" and "No". It is set to "No".' 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 move the switch from "No" to "Yes". Suddenly, a great wind picks up and you are gently lifted up by it. The ground moves away and your whole body begins to gently drift towards Emerald\'s compound high in the stratosphere.' puts t = Thread.new do print "#{Matrext::process({ :phrase => '*** WHOOOOOSH ***', :oneline => true })}" puts end t.join {:type => 'move', :data => 'Sky Tower (Foyer)'} end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gemwarrior-0.7.1 | lib/gemwarrior/entities/items/tower_switch.rb |