File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ local function format_target_count_row(header, row)
62
62
return header ..
63
63
" : " ..
64
64
" target count: " ..
65
- row [1 ] .. " ; count children: " .. tostring (row [2 ]) .. " ; count adults: " .. tostring (row [3 ])
65
+ row [1 ] .. " ; count children: " .. tostring (row [2 ]) .. " ; count adults: " .. tostring (row [3 ]) .. " ; ignore race: " .. tostring ( row [ 4 ])
66
66
end
67
67
68
68
local function print_status ()
@@ -93,9 +93,9 @@ local function persist_state()
93
93
end
94
94
95
95
local function read_persistent_config (key , index )
96
- if dfhack .internal .readPersistentSiteConfigInt ~= nil then
97
- return dfhack .internal .readPersistentSiteConfigInt (key , index )
98
- else
96
+ if dfhack .internal .readPersistentSiteConfigInt ~= nil then
97
+ return dfhack .internal .readPersistentSiteConfigInt (key , index )
98
+ else
99
99
return nil
100
100
end
101
101
end
@@ -122,7 +122,8 @@ local function load_state()
122
122
processed_persisted_data .target_eggs_count_per_race = {}
123
123
if persisted_data .target_eggs_count_per_race ~= nil then
124
124
for k , v in pairs (persisted_data .target_eggs_count_per_race ) do
125
- processed_persisted_data .target_eggs_count_per_race [tonumber (k )] = v
125
+ local default = utils .clone (default_table )
126
+ processed_persisted_data .target_eggs_count_per_race [tonumber (k )] = utils .assign (default , v )
126
127
end
127
128
end
128
129
end
You can’t perform that action at this time.
0 commit comments