|
|
|
@ -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 |
|
|
|
|