This commit is contained in:
aozhiwei 2022-09-01 17:25:38 +08:00
parent f552b264d9
commit 050ecbc684
4 changed files with 14 additions and 5 deletions

View File

@ -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
{ {

View File

@ -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);

View File

@ -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;

View File

@ -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
} }
} }