This commit is contained in:
aozhiwei 2024-09-05 17:23:05 +08:00
parent e9f4ed77cf
commit d8d8b73c27

View File

@ -11,6 +11,7 @@
#include "mt/Equip.h"
#include "mt/Buff.h"
#include "mt/Param.h"
struct AttrAddition : public std::enable_shared_from_this<AttrAddition>
{
@ -51,7 +52,11 @@ static float CalcSpeedRateIn(list_head* head)
switch (e->source_type) {
case kAstChip:
{
e->finaly_value = e->value;
if (mt::Param::s().spd_eff_fac_vec.size() >= 2) {
e->finaly_value = e->value * mt::Param::s().spd_eff_fac_vec.at(1);
} else {
e->finaly_value = e->value;
}
s_speed_ratein_list.push_back(e->holder);
}
break;