1
This commit is contained in:
parent
df949ceea3
commit
b00d07ba26
@ -424,6 +424,8 @@ void Ability::RecalcAttrRuduce(int attr_id)
|
||||
list_head* next = nullptr;
|
||||
bool inited = false;
|
||||
float new_val = 0.0f;
|
||||
#ifdef NEW_NUM
|
||||
#else
|
||||
list_for_each_safe(pos, next, head) {
|
||||
AttrRuduce* e = list_entry(pos,
|
||||
AttrRuduce,
|
||||
@ -451,6 +453,7 @@ void Ability::RecalcAttrRuduce(int attr_id)
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
if (IsValidHumanAttr(attr_id)) {
|
||||
std::get<0>(attr_dec_[attr_id]) = new_val;
|
||||
} else if (IsValidHumanVirtualAttr(attr_id)) {
|
||||
|
@ -48,13 +48,13 @@ private:
|
||||
void RecalcAttrDirect(int attr_id);
|
||||
private:
|
||||
CreatureWeakPtr owner_;
|
||||
std::array<std::tuple<float, list_head>, kHAT_End> attr_abs_ = {};
|
||||
std::array<std::tuple<float, list_head>, kHAT_End> attr_rate_ = {};
|
||||
std::array<std::tuple<float, list_head>, kHAT_End> attr_add_ = {};
|
||||
std::array<std::tuple<float, list_head>, kHAT_End> attr_dec_ = {};
|
||||
std::array<std::tuple<float, list_head>, kNHAT_End> attr_abs_ = {};
|
||||
std::array<std::tuple<float, list_head>, kNHAT_End> attr_rate_ = {};
|
||||
std::array<std::tuple<float, list_head>, kNHAT_End> attr_add_ = {};
|
||||
std::array<std::tuple<float, list_head>, kNHAT_End> attr_dec_ = {};
|
||||
std::array<std::tuple<float, list_head>, kHVAT_End - kHVAT_Begin> vattr_add_ = {};
|
||||
std::array<std::tuple<float, list_head>, kHVAT_End - kHVAT_Begin> vattr_dec_ = {};
|
||||
std::array<std::tuple<float, list_head>, kHAT_End> attr_direct_ = {};
|
||||
std::array<std::tuple<float, list_head>, kNHAT_End> attr_direct_ = {};
|
||||
std::array<int, kSwitchTimeEnd> switch_times_ = {};
|
||||
std::map<int, int> immune_tags_;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user