This commit is contained in:
aozhiwei 2023-11-08 15:31:31 +08:00
parent 445435374a
commit c9d024e54e
2 changed files with 75 additions and 0 deletions

View File

@ -229,6 +229,11 @@ void CallFuncBuff::Deactivate()
owner->ClearEnergyShield();
}
break;
case BuffCallFunc_e::kLispEval:
{
LispEval();
}
break;
default:
{
}
@ -1142,3 +1147,71 @@ void CallFuncBuff::PlayFlyEffect()
}
owner->TryAddBuff(GetCaster().Get(), meta->_int_buff_param4, skill_meta);
}
void CallFuncBuff::LispEval()
{
for (int i = 1; i <= 8; ++i) {
switch (i) {
case 1:
{
if (!meta->buff_param1().empty()) {
meta->GetBuffParam1(this);
}
}
break;
case 2:
{
if (!meta->buff_param2().empty()) {
meta->GetBuffParam2(this);
}
}
break;
case 3:
{
if (!meta->buff_param3().empty()) {
meta->GetBuffParam3(this);
}
}
break;
case 4:
{
if (!meta->buff_param4().empty()) {
meta->GetBuffParam4(this);
}
}
break;
case 5:
{
if (!meta->buff_param5().empty()) {
meta->GetBuffParam5(this);
}
}
break;
case 6:
{
if (!meta->buff_param6().empty()) {
meta->GetBuffParam6(this);
}
}
break;
case 7:
{
if (!meta->buff_param7().empty()) {
meta->GetBuffParam7(this);
}
}
break;
case 8:
{
if (!meta->buff_param8().empty()) {
meta->GetBuffParam8(this);
}
}
break;
default:
{
break;
}
}
}
}

View File

@ -33,6 +33,7 @@ A8_DECLARE_CLASS_ENUM(BuffCallFunc_e, int,
kDisableClientSkill = 33,
kRangeHoldBuff = 34,
kPlayFlyEffect = 35,
kLispEval = 36,
);
@ -65,6 +66,7 @@ class CallFuncBuff : public Buff
void SummonCarSpecPoint();
void RangeHoldBuff();
void PlayFlyEffect();
void LispEval();
float hold_param2_ = 0.0;
Weapon* hold_weapon_ = nullptr;