1
This commit is contained in:
parent
288f1cc80d
commit
8888385186
@ -273,9 +273,28 @@ void Buff::PreProcess()
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#ifdef DEBUG
|
||||||
|
if (owner->IsPlayer()) {
|
||||||
|
if (meta->buff_effect() == kBET_Vertigo) {
|
||||||
|
int i = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
// 999
|
||||||
|
#if 1
|
||||||
|
if (meta->buff_id() == 8042) {
|
||||||
|
#ifdef DEBUG
|
||||||
|
{
|
||||||
|
a8::XPrintf("添加减速%f", {meta->_param3});
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
if (owner->GetAbility()->GetSpeedRuduceTimes() <= 0) {
|
||||||
|
owner->GetAbility()->AddSpeedRuduce(-meta->_param3/100.0f);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Buff::ProcSputteringFunc(Bullet* bullet)
|
void Buff::ProcSputteringFunc(Bullet* bullet)
|
||||||
{
|
{
|
||||||
const mt::Equip* weapon_meta = mt::Equip::GetById(meta->_int_param2);
|
const mt::Equip* weapon_meta = mt::Equip::GetById(meta->_int_param2);
|
||||||
@ -325,25 +344,6 @@ void Buff::ProcSputteringFunc(Bullet* bullet)
|
|||||||
void Buff::Activate()
|
void Buff::Activate()
|
||||||
{
|
{
|
||||||
#if 0
|
#if 0
|
||||||
#ifdef DEBUG
|
|
||||||
if (owner->IsPlayer()) {
|
|
||||||
if (meta->buff_effect() == kBET_Vertigo) {
|
|
||||||
int i = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#if 999
|
|
||||||
if (meta->buff_id() == 8042) {
|
|
||||||
#ifdef DEBUG
|
|
||||||
{
|
|
||||||
a8::XPrintf("添加减速%f", {meta->_param3});
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
if (owner->GetAbility()->GetSpeedRuduceTimes() <= 0) {
|
|
||||||
owner->GetAbility()->AddSpeedRuduce(-meta->_param3/100.0f);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
const mt::Buff* buff_meta = meta;
|
const mt::Buff* buff_meta = meta;
|
||||||
switch (meta->buff_effect()) {
|
switch (meta->buff_effect()) {
|
||||||
case kBET_ChgAttr:
|
case kBET_ChgAttr:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user