This commit is contained in:
aozhiwei 2024-01-04 14:49:50 +08:00
parent d66ab3680d
commit 032507c5ad
2 changed files with 42 additions and 0 deletions

View File

@ -9,6 +9,8 @@
IMPL_TABLE(mt::Buff)
static std::map<int, std::vector<mt::Buff*>> attr_buffs;
namespace mt
{
@ -334,6 +336,39 @@ namespace mt
void Buff::Init2()
{
{
switch (buff_effect()) {
case kBET_ModifyAttr:
{
}
break;
case kBET_OnceChgAttr:
{
}
break;
case kBET_ModifyBaseAttr:
{
}
break;
case kBET_ModifyGrowAttr:
{
}
break;
case kBET_DirectSetAttr:
{
}
break;
default:
{
}
break;
}
}
if (buff_effect() == 7 &&
(_int_buff_param1 == 2 ||
_int_buff_param1 == 6 ||
@ -402,6 +437,11 @@ namespace mt
}
}
void Buff::SafeCallStaticPostInit(int)
{
}
bool Buff::EffectCanStack() const
{
return true;

View File

@ -24,6 +24,8 @@ namespace mt
void Init1();
void Init2();
static void SafeCallStaticPostInit(int);
bool EffectCanStack() const;
bool IsImmuneBuffEffect(int buff_effect) const;
bool Match(EventAddBuff_e cond, int val) const;