class Rummage
Constants
- FAIL
- SUCCESS
Attributes
container[RW]
Public Class Methods
message()
click to toggle source
# File lib/Olib/core/container.rb, line 201 def Rummage.message @@message end
new(container)
click to toggle source
# File lib/Olib/core/container.rb, line 207 def initialize(container) @container = container end
Public Instance Methods
holy(tier)
click to toggle source
# File lib/Olib/core/container.rb, line 228 def holy(tier) perform "holy", tier end
ingredient(str)
click to toggle source
# File lib/Olib/core/container.rb, line 224 def ingredient(str) perform "ingredient", str end
perform(mod, query)
click to toggle source
# File lib/Olib/core/container.rb, line 211 def perform(mod, query) res = Olib.do "rummage ##{@container.id} #{mod} #{query}", Rummage.message.either [!res.match(FAIL), res] end
runestone(rune)
click to toggle source
# File lib/Olib/core/container.rb, line 220 def runestone(rune) perform "runestone", rune end
spell(number)
click to toggle source
# File lib/Olib/core/container.rb, line 216 def spell(number) perform "spell", number end