This commit is contained in:
aozhiwei 2021-07-12 06:03:47 +00:00
parent 8c300f328a
commit bc40f5fc7e
3 changed files with 21 additions and 0 deletions

View File

@ -765,6 +765,11 @@ namespace MetaData
} }
} }
void Skill::Init2()
{
}
bool Skill::IsTurnOverSkill() bool Skill::IsTurnOverSkill()
{ {
return !phases.empty() && phases[0].func_id == kSkill_TurnOver; return !phases.empty() && phases[0].func_id == kSkill_TurnOver;
@ -941,6 +946,11 @@ namespace MetaData
} }
} }
void Buff::Init2()
{
}
bool Buff::EffectCanStack() bool Buff::EffectCanStack()
{ {
return true; return true;

View File

@ -195,6 +195,7 @@ namespace MetaData
const metatable::Buff* i = nullptr; const metatable::Buff* i = nullptr;
void Init(); void Init();
void Init2();
bool EffectCanStack(); bool EffectCanStack();
bool IsImmuneBuffEffect(int buff_effect); bool IsImmuneBuffEffect(int buff_effect);
bool Match(CondAddBuff_e cond, int val); bool Match(CondAddBuff_e cond, int val);
@ -241,6 +242,7 @@ namespace MetaData
const metatable::Skill* i = nullptr; const metatable::Skill* i = nullptr;
void Init(); void Init();
void Init2();
float value_up = 0.0f; float value_up = 0.0f;
std::set<int> buff_list; std::set<int> buff_list;

View File

@ -445,6 +445,15 @@ private:
} }
} }
#endif #endif
{
for (auto& skill : skill_list) {
skill.Init2();
}
for (auto& buff : buff_list) {
buff.Init2();
}
}
} }
void BindToMetaData() void BindToMetaData()