1
This commit is contained in:
parent
8e917d2de4
commit
5247c0f44e
@ -539,7 +539,23 @@ void Ability::RecalcAttrRuduce(int attr_id)
|
|||||||
AttrRuduce* e = list_entry(pos,
|
AttrRuduce* e = list_entry(pos,
|
||||||
AttrRuduce,
|
AttrRuduce,
|
||||||
entry);
|
entry);
|
||||||
new_val += e->value;
|
switch (attr_id) {
|
||||||
|
case kHAT_Speed:
|
||||||
|
{
|
||||||
|
new_val = std::max(new_val, e->value);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case kHVAT_Dmg:
|
||||||
|
{
|
||||||
|
new_val *= 1.0f - e->value;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
{
|
||||||
|
new_val += e->value;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
std::get<0>(attr_dec_[attr_id]) = new_val;
|
std::get<0>(attr_dec_[attr_id]) = new_val;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user