fixed count error when use stone or medicine

This commit is contained in:
MistEO
2021-07-22 00:28:20 +08:00
parent eedbc16142
commit e69000770a
5 changed files with 22 additions and 3 deletions

View File

@@ -104,6 +104,12 @@ bool Configer::reload()
if (task_json.exist("rearDelay")) {
task_info.rear_delay = task_json["rearDelay"].as_integer();
}
if (task_json.exist("reduceOtherTimes")) {
auto reduce_arr = task_json["reduceOtherTimes"].as_array();
for (auto&& reduce : reduce_arr) {
task_info.reduce_other_times.emplace_back(reduce.as_string());
}
}
auto next_arr = task_json["next"].as_array();