Class: Lacuna::Extras::Archaeology

Inherits:
Module
  • Object
show all
Defined in:
lib/lacuna/extras/archaeology.rb

Direct Known Subclasses

Archaeology

Class Method Summary collapse

Methods inherited from Module

method_missing, send, session_stuff

Class Method Details

.get_inventory(id) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/lacuna/extras/archaeology.rb', line 6

def self.get_inventory(id)
    glyphs = Lacuna::Archaeology.get_glyph_summary(id)['glyphs']
    inventory = {}
    glyphs.each do |glyph|
        inventory[glyph['name']] = glyph['quantity'].to_i
    end
    inventory
end