This commit is contained in:
aozhiwei 2023-02-13 11:41:52 +08:00
parent eb6bfc3ab6
commit ec2235ca91

View File

@ -6,6 +6,8 @@
#include "mt/Equip.h"
#include "mt/Buff.h"
#include "mt/Hero.h"
#include "mt/Map.h"
std::set<int> SelfChecker::used_buffs;
@ -54,6 +56,34 @@ void SelfChecker::Init()
}
break;
}
for (auto& tuple : meta->_power_charge) {
SelfChecker::AddBuff(std::get<2>(tuple));
}
if (meta->_car_active_buff_id) {
SelfChecker::AddBuff(meta->_car_active_buff_id);
}
if (meta->_car_deactive_buff_id) {
SelfChecker::AddBuff(meta->_car_deactive_buff_id);
}
for (int buff_id : meta->_hit_buff_list) {
SelfChecker::AddBuff(buff_id);
}
});
mt::Hero::Traverse
(
[] (const mt::Hero* meta, bool& stop)
{
for (int buff_id : meta->_init_buffs) {
SelfChecker::AddBuff(buff_id);
}
});
mt::Map::Traverse
(
[] (const mt::Map* meta, bool& stop)
{
for (int buff_id : meta->buff_list) {
SelfChecker::AddBuff(buff_id);
}
});
mt::Buff::Traverse
(