From ce02b947ac3b2e3f4a0601364fa9f34ea29f3688 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 5 Sep 2024 17:44:48 +0800 Subject: [PATCH] 1 --- server/gameserver/mt/Param.cc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/server/gameserver/mt/Param.cc b/server/gameserver/mt/Param.cc index 8087f1b7..2ba6df64 100644 --- a/server/gameserver/mt/Param.cc +++ b/server/gameserver/mt/Param.cc @@ -100,6 +100,22 @@ namespace mt s_.block_effect_range.push_back(a8::XValue(str).GetDouble()); } } + { + std::string tmp_str = GetStringParam("SpdEffFacVec", ""); + std::vector strings; + a8::Split(tmp_str, strings, '|'); + for (auto& str : strings) { + s_.spd_eff_fac_vec.push_back(a8::XValue(str).GetDouble()); + } + } + { + std::string tmp_str = GetStringParam("SpdPunFacVec", ""); + std::vector strings; + a8::Split(tmp_str, strings, '|'); + for (auto& str : strings) { + s_.spd_pun_fac_vec.push_back(a8::XValue(str).GetDouble()); + } + } s_.nature_recover_hp_switch = a8::XValue(GetStringParam("nature_recover_hp_switch", "0")); s_.nature_recover_hp_idletime = a8::XValue(GetStringParam("nature_recover_hp_idletime", "3")); s_.nature_recover_hp_interval = a8::XValue(GetStringParam("nature_recover_hp_interval1", "1"));