This commit is contained in:
aozhiwei 2024-03-06 19:46:04 +08:00
parent ec9aea5bc1
commit 0cb5ef7fcd
4 changed files with 0 additions and 22 deletions

View File

@ -41,7 +41,6 @@ void Buff::Init()
INIT_LIST_HEAD(&effect_entry); INIT_LIST_HEAD(&effect_entry);
INIT_LIST_HEAD(&depend_entry); INIT_LIST_HEAD(&depend_entry);
INIT_LIST_HEAD(&cond_entry); INIT_LIST_HEAD(&cond_entry);
INIT_LIST_HEAD(&break_skill_entry);
INIT_LIST_HEAD(&on_remove_contexts); INIT_LIST_HEAD(&on_remove_contexts);
for (int effect_id : meta->_effect_list) { for (int effect_id : meta->_effect_list) {
effect_list_.push_back(owner->AddEffect(effect_id)); effect_list_.push_back(owner->AddEffect(effect_id));
@ -61,9 +60,6 @@ void Buff::UnInit()
if (!list_empty(&cond_entry)) { if (!list_empty(&cond_entry)) {
list_del_init(&cond_entry); list_del_init(&cond_entry);
} }
if (!list_empty(&break_skill_entry)) {
list_del_init(&break_skill_entry);
}
while (!list_empty(&on_remove_contexts)) { while (!list_empty(&on_remove_contexts)) {
RemoveBuffCbConext* cb = list_last_entry(&on_remove_contexts, RemoveBuffCbConext* cb = list_last_entry(&on_remove_contexts,
RemoveBuffCbConext, RemoveBuffCbConext,

View File

@ -31,7 +31,6 @@ class Buff
list_head effect_entry; list_head effect_entry;
list_head depend_entry; list_head depend_entry;
list_head cond_entry; list_head cond_entry;
list_head break_skill_entry;
list_head on_remove_contexts; list_head on_remove_contexts;
a8::XTimerWp remover_timer; a8::XTimerWp remover_timer;
std::shared_ptr<a8::Args> init_args; std::shared_ptr<a8::Args> init_args;

View File

@ -54,7 +54,6 @@
Creature::Creature():MoveableEntity() Creature::Creature():MoveableEntity()
{ {
INIT_LIST_HEAD(&break_skill_buffs_);
weak_ptr_chunk_.Set(this); weak_ptr_chunk_.Set(this);
trigger_ = std::make_shared<Trigger>(this); trigger_ = std::make_shared<Trigger>(this);
trigger_->Init(); trigger_->Init();
@ -4130,16 +4129,3 @@ bool Creature::IsOb()
{ {
return a8::HasBitFlag(status, CS_IsOb); return a8::HasBitFlag(status, CS_IsOb);
} }
bool Creature::HasBreakSkillBuffs(Buff* buff)
{
if (list_empty(&break_skill_buffs_)) {
return false;
}
return false;
}
void Creature::TriggerBreakSkill(Buff* buff)
{
}

View File

@ -208,8 +208,6 @@ class Creature : public MoveableEntity
void RecalcBuffAttr(); void RecalcBuffAttr();
void RemoveBuffByEffectId(int buff_effect_id); void RemoveBuffByEffectId(int buff_effect_id);
void ClearBuffList(); void ClearBuffList();
bool HasBreakSkillBuffs(Buff* buff);
void TriggerBreakSkill(Buff* buff);
void TriggerBuff(Skill* skill, std::set<Creature*>& target_list, BuffTriggerType_e trigger_type); void TriggerBuff(Skill* skill, std::set<Creature*>& target_list, BuffTriggerType_e trigger_type);
Skill* GetSkill(int skill_id); Skill* GetSkill(int skill_id);
Skill* GetMainSkill(); Skill* GetMainSkill();
@ -482,7 +480,6 @@ private:
int follow_times_ = 0; int follow_times_ = 0;
std::map<int, int> buff_tags_; std::map<int, int> buff_tags_;
const mt::BattleHeroGrow* hero_grow_meta_ = nullptr; const mt::BattleHeroGrow* hero_grow_meta_ = nullptr;
list_head break_skill_buffs_;
int hero_level_ = 1; int hero_level_ = 1;
int hero_exp_ = 0; int hero_exp_ = 0;