This commit is contained in:
aozhiwei 2023-03-29 13:08:40 +08:00
parent 00a2bce3ea
commit 57c7346cd7
3 changed files with 13 additions and 1 deletions

View File

@ -95,6 +95,11 @@ void CallFuncBuff::Activate()
ProcSyncProp(); ProcSyncProp();
} }
break; break;
case BuffCallFunc_e::kSetBulletBornOffset:
{
owner->GetCurrWeapon()->bullet_born_offset_ptr = &meta->_bullet_born_offset;
}
break;
default: default:
{ {
} }
@ -113,6 +118,11 @@ void CallFuncBuff::Deactivate()
} }
} }
break; break;
case BuffCallFunc_e::kSetBulletBornOffset:
{
owner->GetCurrWeapon()->bullet_born_offset_ptr = nullptr;
}
break;
default: default:
{ {
} }

View File

@ -13,7 +13,8 @@ A8_DECLARE_CLASS_ENUM(BuffCallFunc_e, int,
kAddHp = 11, kAddHp = 11,
kFlashMoveToPos = 12, kFlashMoveToPos = 12,
kLightCircle = 13, kLightCircle = 13,
kSyncProp = 16 kSyncProp = 16,
kSetBulletBornOffset = 17
); );

View File

@ -18,6 +18,7 @@ class Weapon
const mt::Equip* meta = nullptr; const mt::Equip* meta = nullptr;
const mt::Equip* bullet_meta = nullptr; const mt::Equip* bullet_meta = nullptr;
const mt::Skill* skill_meta = nullptr; const mt::Skill* skill_meta = nullptr;
const std::vector<std::tuple<float, float, float, int, int, int>>* bullet_born_offset_ptr = nullptr;
void Clear(); void Clear();
void ToPB(Creature* c, cs::MFWeapon* pb_obj); void ToPB(Creature* c, cs::MFWeapon* pb_obj);