This commit is contained in:
aozhiwei 2023-05-20 21:56:54 +08:00
parent 7176363a95
commit 78a5893c09
2 changed files with 3 additions and 6 deletions

View File

@ -54,15 +54,12 @@ void Compose::IncNum()
void Compose::TakeOnWeapon(Weapon* weapon) void Compose::TakeOnWeapon(Weapon* weapon)
{ {
#if 0 std::set<int>* buffs = mt::MergeItem::GetBuffs(weapon->meta->id(),
std::set<int>* buffs = mt::Grasp::GetBuffs(owner_->AsHuman()->meta->id(), num_);
owner_->GetBattleContext()->GetHeroLevel(),
weapon->meta->id());
Clear(); Clear();
if (buffs) { if (buffs) {
for (int buff_id : *buffs) { for (int buff_id : *buffs) {
hold_buffs_.push_back(owner_->TryAddBuff(owner_, buff_id, nullptr)); hold_buffs_.push_back(owner_->TryAddBuff(owner_, buff_id, nullptr));
} }
} }
#endif
} }

View File

@ -12,7 +12,7 @@ namespace mt
{ {
} }
std::set<int>* GetBuffs(int gun_id, int num) std::set<int>* MergeItem::GetBuffs(int gun_id, int num)
{ {
return nullptr; return nullptr;
} }