pull/11/head
Daniel Asher Resnick 2 years ago
parent f08e8c40d7
commit cbcbd23955
  1. 1
      src/data/custom/.gitignore
  2. 7
      src/lib/data.rb
  3. 8
      src/lib/data/custom.rb

@ -2,6 +2,7 @@ require_relative 'data/gold'
require_relative 'data/wizard'
require_relative 'data/dark_elf'
require_relative 'data/troll'
require_relative 'data/custom'
module Charred
class Data
@ -9,6 +10,7 @@ module Charred
include Charred::Wizard
include Charred::DarkElf
include Charred::Troll
include Charred::Custom
attr :data
@ -27,6 +29,9 @@ module Charred
puts 'loading trolls'
load_troll(@data)
puts 'loading custom stocks'
load_custom(@data)
@data[:traits] = @data[:traits].sort.to_h
@data[:skills] = @data[:skills].sort.to_h
end
@ -54,4 +59,4 @@ module Charred
end
end
end
end
end

@ -0,0 +1,8 @@
require 'json'
module Charred
module Custom
def load_custom(data)
end
end
end
Loading…
Cancel
Save