for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
# Item diccionaries
%w(armas armaduras miscelaneas proteccions abalorios enchants).each do |item|
define_method(item.to_sym) { load_yaml("items/#{item}") }
end
%w(piezas pociones pergaminos materiales).each do |util|
define_method(util) { load_yaml("items/utiles/#{util}") }
def categorías # Armas
armas.map { |a| a['categoria'] }.uniq
def gema_calidades
load_yaml('items/engarces/calibres')
def gemas
load_yaml('items/engarces/gemas').map { |g| Gema.new(g) }
def joyas
load_yaml('items/engarces/joyas').map { |g| Joya.new(g) }
def runas
load_yaml('items/engarces/runas').map { |g| Runa.new(g) }
def tiers
load_yaml('items/engarces/tiers')
# Libro malvado del Tarot
def tarot
load_yaml('items/tarot')