1
This commit is contained in:
parent
a62f8121e6
commit
cfd52a6e0e
@ -110,6 +110,12 @@ void CallFuncBuff::Activate()
|
|||||||
owner->GetAbility()->AddDmgRuduce(hold_param2_);
|
owner->GetAbility()->AddDmgRuduce(hold_param2_);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case BuffCallFunc_e::kSyncProp:
|
||||||
|
{
|
||||||
|
hold_param2_ = meta->GetBuffParam2(this);
|
||||||
|
ProcSyncProp();
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@ -571,3 +577,18 @@ void CallFuncBuff::ProcLightCircle()
|
|||||||
context->keep_buff_uniid = owner->TryAddBuff(GetCaster().Get(), meta->_int_buff_param4, skill_meta);
|
context->keep_buff_uniid = owner->TryAddBuff(GetCaster().Get(), meta->_int_buff_param4, skill_meta);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CallFuncBuff::ProcSyncProp()
|
||||||
|
{
|
||||||
|
float type = meta->GetBuffParam2(this);
|
||||||
|
float sub_type = meta->GetBuffParam3(this);
|
||||||
|
float value = meta->GetBuffParam4(this);
|
||||||
|
int only_self = meta->GetBuffParam6(this);
|
||||||
|
owner->room->frame_event.AddPropChg
|
||||||
|
(
|
||||||
|
owner->GetWeakPtrRef(),
|
||||||
|
type,
|
||||||
|
sub_type,
|
||||||
|
value,
|
||||||
|
only_self > 0);
|
||||||
|
}
|
||||||
|
@ -17,7 +17,8 @@ A8_DECLARE_CLASS_ENUM(BuffCallFunc_e, int,
|
|||||||
kFlashMoveToPos = 12,
|
kFlashMoveToPos = 12,
|
||||||
kLightCircle = 13,
|
kLightCircle = 13,
|
||||||
kDmgAddition = 14,
|
kDmgAddition = 14,
|
||||||
kDmgRuduce = 15
|
kDmgRuduce = 15,
|
||||||
|
kSyncProp = 16
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@ -38,6 +39,7 @@ class CallFuncBuff : public Buff
|
|||||||
void ProcAddHp();
|
void ProcAddHp();
|
||||||
void ProcFlashMoveToPos();
|
void ProcFlashMoveToPos();
|
||||||
void ProcLightCircle();
|
void ProcLightCircle();
|
||||||
|
void ProcSyncProp();
|
||||||
|
|
||||||
float hold_param2_ = 0.0;
|
float hold_param2_ = 0.0;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user