1
This commit is contained in:
parent
fe0f6bfc85
commit
d779c11d0f
@ -462,13 +462,20 @@ void Skill::ProcJYFH()
|
||||
{
|
||||
owner->GetTrigger()->AddListener
|
||||
(
|
||||
kRescueEvent,
|
||||
[] (const std::vector<std::any>& params)
|
||||
kStartRescueEvent,
|
||||
[this] (const std::vector<std::any>& params)
|
||||
{
|
||||
owner->GetTrigger()->AddListener
|
||||
(
|
||||
kEndRescueEvent,
|
||||
[this] (const std::vector<std::any>& params)
|
||||
{
|
||||
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
void Skill::ProcFH()
|
||||
{
|
||||
|
@ -337,3 +337,18 @@ int SkillHelper::GetYlzRecoverHp(Creature* sender, Creature* target, const MetaD
|
||||
(1 + target->GetBattleContext()->GetExtRecoverHp());
|
||||
return hp;
|
||||
}
|
||||
|
||||
int SkillHelper::GetJyfhBuffId(const MetaData::Skill* skill_meta)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int SkillHelper::GetJyfhBuffTime(const MetaData::Skill* skill_meta)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int SkillHelper::GetJyfhDmgRuduce(const MetaData::Skill* skill_meta)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -39,6 +39,10 @@ class SkillHelper
|
||||
//医疗站
|
||||
static int GetYlzRange(const MetaData::Skill* skill_meta);
|
||||
static int GetYlzRecoverHp(Creature* sender, Creature* target, const MetaData::Skill* skill_meta);
|
||||
//救援防护
|
||||
static int GetJyfhBuffId(const MetaData::Skill* skill_meta);
|
||||
static int GetJyfhBuffTime(const MetaData::Skill* skill_meta);
|
||||
static int GetJyfhDmgRuduce(const MetaData::Skill* skill_meta);
|
||||
|
||||
static void ProcBulletHitBuff(Bullet* bullet, Creature* c, int buff_uniid);
|
||||
static bool ProcBulletDmg(Bullet* bullet, Creature* target, float& finaly_dmg);
|
||||
|
@ -434,9 +434,14 @@ void Trigger::ShieldDestory()
|
||||
DispatchEvent(kShieldDestoryEvent, {});
|
||||
}
|
||||
|
||||
void Trigger::Rescue(Human* target)
|
||||
void Trigger::StartRescue(Human* target)
|
||||
{
|
||||
DispatchEvent(kRescueEvent, {target});
|
||||
DispatchEvent(kStartRescueEvent, {target});
|
||||
}
|
||||
|
||||
void Trigger::EndRescue(Human* target)
|
||||
{
|
||||
DispatchEvent(kEndRescueEvent, {target});
|
||||
}
|
||||
|
||||
void Trigger::YsBuffRemove(Buff* buff)
|
||||
|
@ -27,9 +27,10 @@ enum EventId_e
|
||||
kDieEvent,
|
||||
kShieldDestoryEvent,
|
||||
kFlyHookPullEvent,
|
||||
kRescueEvent,
|
||||
kBulletHitEvent,
|
||||
kYsRemoveEvent
|
||||
kYsRemoveEvent,
|
||||
kStartRescueEvent,
|
||||
kEndRescueEvent,
|
||||
};
|
||||
|
||||
class Weapon;
|
||||
@ -58,7 +59,8 @@ public:
|
||||
void DeactiveBuff(MetaData::Buff* buff_meta);
|
||||
void BulletHit(Bullet* bullet, Creature* target);
|
||||
void ShieldDestory();
|
||||
void Rescue(Human* target);
|
||||
void StartRescue(Human* target);
|
||||
void EndRescue(Human* target);
|
||||
void YsBuffRemove(Buff* buff);
|
||||
|
||||
std::weak_ptr<EventHandlerPtr> AddListener(int event_id, CommonCbProc cb);
|
||||
|
Loading…
x
Reference in New Issue
Block a user