1
This commit is contained in:
parent
f552b264d9
commit
050ecbc684
@ -19,6 +19,7 @@ const int kVertigoBuffId = 7018;
|
|||||||
const int kPeaceModeBuffId = 7019;
|
const int kPeaceModeBuffId = 7019;
|
||||||
const int kPullToWalkableBuffId = 8003;
|
const int kPullToWalkableBuffId = 8003;
|
||||||
const int kDiveBuffId = 8054;
|
const int kDiveBuffId = 8054;
|
||||||
|
const int kInvincibleBuffId = 1005;
|
||||||
|
|
||||||
enum BuffEffectType_e
|
enum BuffEffectType_e
|
||||||
{
|
{
|
||||||
|
@ -220,6 +220,11 @@ void InternalShot(Creature* c,
|
|||||||
bullet_info.recoil_force = std::get<4>(tuple);
|
bullet_info.recoil_force = std::get<4>(tuple);
|
||||||
bullet_info.invincible_buff_uniid = invincible_buff_uniid;
|
bullet_info.invincible_buff_uniid = invincible_buff_uniid;
|
||||||
InternalCreateBullet(bullet_info);
|
InternalCreateBullet(bullet_info);
|
||||||
|
#ifdef DEBUG
|
||||||
|
if (c->IsPlayer()) {
|
||||||
|
printf("delay_time:%d\n", bullet_info.delay_time);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
c->GetTrigger()->Shot(weapon_meta);
|
c->GetTrigger()->Shot(weapon_meta);
|
||||||
|
@ -83,6 +83,11 @@ void FrameEvent::AddBullet(int bullet_uniid,
|
|||||||
a8::Vec2 dir,
|
a8::Vec2 dir,
|
||||||
float fly_distance)
|
float fly_distance)
|
||||||
{
|
{
|
||||||
|
#if DEBUG
|
||||||
|
if (sender.Get()->IsPlayer()) {
|
||||||
|
|
||||||
|
}
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
auto& tuple = a8::FastAppend(bullets_);
|
auto& tuple = a8::FastAppend(bullets_);
|
||||||
std::get<0>(tuple) = sender;
|
std::get<0>(tuple) = sender;
|
||||||
|
@ -1087,14 +1087,12 @@ void Player::_CMRevive(f8::MsgHdr& hdr, const cs::CMRevive& msg)
|
|||||||
hum->GetPos().y
|
hum->GetPos().y
|
||||||
});
|
});
|
||||||
#endif
|
#endif
|
||||||
#if 0
|
|
||||||
{
|
{
|
||||||
MetaData::Buff* buff_meta = MetaMgr::Instance()->GetBuff(kREVIVE_BUFF_ID);
|
int buff_uniid = TryAddBuff(this, kInvincibleBuffId);
|
||||||
if (buff_meta) {
|
if (buff_uniid) {
|
||||||
AddBuff(this, buff_meta, 1);
|
Buff* buff = GetBuffByUniId(buff_uniid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user