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