This commit is contained in:
aozhiwei 2023-01-01 15:46:33 +08:00
parent 67ef21a34e
commit 00affa6a3c

View File

@ -235,17 +235,8 @@ void Bullet::ProcBomb()
if (sender.Get() && sender.Get()->IsHuman()) {
sender.Get()->AsHuman()->stats.IncWeaponUseTimes(gun_meta->id(), 1);
}
#if 1
AddGunBuff();
ProcSmokeBomb();
#else
a8::Vec2 bomb_pos = GetPos();
float time_addition = 0;
if (IsCurrWeapon() && sender.Get()) {
time_addition += sender.Get()->GetAbility()->GetAttrAbs(kHAT_WeaponExplosionContinueTime);
}
room->frame_event.AddSmoke(this, meta->id(), bomb_pos, time_addition);
#endif
}
break;
case IS_POSION_GAS_BOMB: