1
This commit is contained in:
parent
0c17ba861f
commit
fee5dc112d
@ -400,7 +400,11 @@ void Ability::RecalcAttrAddition(int attr_id)
|
|||||||
entry);
|
entry);
|
||||||
new_val += e->value;
|
new_val += e->value;
|
||||||
}
|
}
|
||||||
std::get<0>(attr_add_[attr_id]) = new_val;
|
if (IsValidHumanAttr(attr_id)) {
|
||||||
|
std::get<0>(attr_add_[attr_id]) = new_val;
|
||||||
|
} else if (IsValidHumanVirtualAttr(attr_id)) {
|
||||||
|
std::get<0>(vattr_add_[attr_id - kHVAT_Begin]) = new_val;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Ability::RecalcAttrRuduce(int attr_id)
|
void Ability::RecalcAttrRuduce(int attr_id)
|
||||||
@ -444,7 +448,11 @@ void Ability::RecalcAttrRuduce(int attr_id)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
std::get<0>(attr_dec_[attr_id]) = new_val;
|
if (IsValidHumanAttr(attr_id)) {
|
||||||
|
std::get<0>(attr_dec_[attr_id]) = new_val;
|
||||||
|
} else if (IsValidHumanVirtualAttr(attr_id)) {
|
||||||
|
std::get<0>(vattr_dec_[attr_id - kHVAT_Begin]) = new_val;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
float Ability::GetAttrAddition(int attr_id)
|
float Ability::GetAttrAddition(int attr_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user