Remove settings from stock object

Daniel Asher Resnick 2 years ago
parent d1eca924d8
commit 00153a7b91
  1. 5
      src/lib/stock.rb

@ -6,15 +6,13 @@ module Charred
attr :name
attr :stride
attr :common_traits
attr :settings
attr :starting_stats
def initialize(h)
@key = h["key"]
@name = h["name"]
@name = h["name"] || @key
@stride = h["stride"] || @@default_stride
@common_traits = h["common_traits"]
@settings = h["settings"]
@starting_stats = h["starting_stats"]
end
@ -24,7 +22,6 @@ module Charred
"name" => name,
"stride" => stride,
"common_traits" => common_traits,
"settings" => settings,
"starting_stats" => starting_stats
}
end

Loading…
Cancel
Save