Sha256: e8625e7136aef2b9a8abc4642da738e7fc5c9739cd84e8dae3cfc84e1ed03e05
Contents?: true
Size: 1017 Bytes
Versions: 2
Compression:
Stored size: 1017 Bytes
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(player = nil) 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 Animation::run({ :phrase => '*** WHOOOOOSH ***' }) {:type => 'move', :data => 'Sky Tower (Entryway)'} end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gemwarrior-0.8.8 | lib/gemwarrior/entities/items/tower_switch.rb |
gemwarrior-0.8.7 | lib/gemwarrior/entities/items/tower_switch.rb |