This commit is contained in:
aozhiwei 2023-06-07 14:04:05 +08:00
parent 68bb82977b
commit 7faf2e63ec
3 changed files with 12 additions and 6 deletions

View File

@ -111,7 +111,8 @@ namespace mt
abort();
}
#ifdef DEBUG
if (App::Instance()->instance_id == 6) {
if (App::Instance()->instance_id == 6 ||
App::Instance()->instance_id == 2) {
_float_cd = 6;
}
#endif

View File

@ -2184,11 +2184,7 @@ void Room::NotifyGameStart()
long long Room::GetGasInactiveTime()
{
#ifdef DEBUG
if (App::Instance()->instance_id == 2) {
return 30;
} else {
return 12;
}
#endif
if (IsPveRoom()) {
return 10;

View File

@ -163,6 +163,15 @@ static void InternalCreateBullet(BulletInfo& bullet_info)
if (c->downed) {
return;
}
#ifdef DEBUG
if (bullet_info.weapon_meta->id() == 60111) {
a8::XPrintf("create bullet %d %d\n",
{
bullet_info.bullet_idx,
bullet_info.delay_time
});
}
#endif
if (bullet_info.delay_time <= 0) {
if (c->GetCurrWeapon()->meta->bullet_consume_type() == kBulletConsumeMulti) {
if (c->GetCurrWeapon()->ammo <= 0) {