This commit is contained in:
aozhiwei 2023-05-18 17:35:54 +08:00
parent ac0bd31e99
commit daa5f99bc6
3 changed files with 12 additions and 2 deletions

View File

@ -9,8 +9,7 @@
#include "weapon.h"
#include "human.h"
#include "mt/GraspBuff.h"
#include "mt/Grasp.h"
#include "mt/MergeItem.h"
#include "mt/Hero.h"
#include "mt/Equip.h"
@ -48,8 +47,14 @@ void Compose::Clear()
hold_buffs_.clear();
}
void Compose::IncNum()
{
++num_;
}
void Compose::TakeOnWeapon(Weapon* weapon)
{
#if 0
std::set<int>* buffs = mt::Grasp::GetBuffs(owner_->AsHuman()->meta->id(),
owner_->GetBattleContext()->GetHeroLevel(),
weapon->meta->id());
@ -59,4 +64,5 @@ void Compose::TakeOnWeapon(Weapon* weapon)
hold_buffs_.push_back(owner_->TryAddBuff(owner_, buff_id, nullptr));
}
}
#endif
}

View File

@ -16,8 +16,10 @@ class Compose
void Clear();
void TakeOnWeapon(Weapon* weapon);
void IncNum();
private:
Creature* owner_ = nullptr;
int num_ = 0;
std::vector<int> hold_buffs_;
};

View File

@ -97,6 +97,8 @@ namespace mt
int move_step_len = 80;
int box_open_delay = 0;
int compose_mode = 1;
};
static void StaticPostInit();
static const S& s() { return s_; };