Remove settings from stock object

pull/8/head
Daniel Asher Resnick 2 years ago
parent 0d92d0beb2
commit e7b487f8a3
  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