diff --git a/server/gameserver/mt/Param.cc b/server/gameserver/mt/Param.cc index 8521a772..3fbc0499 100644 --- a/server/gameserver/mt/Param.cc +++ b/server/gameserver/mt/Param.cc @@ -92,6 +92,14 @@ namespace mt s_.performance_score_weight_BR.push_back(a8::XValue(str).GetDouble()); } } + { + std::string tmp_str = GetStringParam("performance_score_weight_circuit", ""); + std::vector strings; + a8::Split(tmp_str, strings, '|'); + for (auto& str : strings) { + s_.performance_score_weight_circuit.push_back(a8::XValue(str).GetDouble()); + } + } { std::string tmp_str = GetStringParam("block_effect_range", ""); std::vector strings; @@ -132,6 +140,10 @@ namespace mt s_.battle_hint_view_range = GetIntParam("battle_hint_view_range", s_.battle_hint_view_range); s_.battle_hint_broadcast_range = GetIntParam("battle_hint_broadcast_range", s_.battle_hint_broadcast_range + 800); + s_.circuit_score_mult_constant = GetIntParam("circuit_score_mult_constant", s_.circuit_score_mult_constant); + s_.circuit_score_shift_constant = GetIntParam("circuit_score_shift_constant", s_.circuit_score_shift_constant); + s_.circuit_battle_cooldown = GetIntParam("circuit_battle_cooldown", s_.circuit_battle_cooldown); + s_.circuit_rank_score_min = GetIntParam("circuit_rank_score_min", s_.circuit_rank_score_min); #ifdef MYDEBUG s_.match_team_time = 6; s_.match_robot_time = 5; diff --git a/server/gameserver/mt/Param.h b/server/gameserver/mt/Param.h index 3356abd0..2802fd80 100644 --- a/server/gameserver/mt/Param.h +++ b/server/gameserver/mt/Param.h @@ -34,6 +34,11 @@ namespace mt int pickup_weapon_replace_type = 0; std::vector performance_score_weight_4V4; std::vector performance_score_weight_BR; + std::vector performance_score_weight_circuit; + float circuit_score_mult_constant = 0.0f; + float circuit_score_shift_constant = 0.0f; + float circuit_battle_cooldown = 0.0f; + float circuit_rank_score_min = 0.0f; int downed_relive_recover_hp = 0;