This commit is contained in:
aozhiwei 2023-03-10 19:03:57 +08:00
parent d29aa9f5bd
commit cfc8789c70
4 changed files with 6 additions and 4 deletions

View File

@ -26,11 +26,13 @@ void BatchAddBuff::Activate()
if (rnd < std::get<1>(items[0])){
const mt::Buff* buff_meta = mt::Buff::GetById(std::get<0>(items[0]));
if (buff_meta) {
#if 0
a8::XPrintf("BatchAddBuff:%d %s\n",
{
buff_meta->buff_id(),
buff_meta->name()
});
#endif
owner->AddBuff(caster_.Get(), buff_meta, skill_meta);
}
}

View File

@ -324,7 +324,7 @@ int Creature::AddBuff(Creature* caster,
if (!buff->meta->only_server()) {
room->frame_event.AddBuff(GetWeakPtrRef(), buff.get());
}
#ifdef DEBUG
#ifdef DEBUG1
{
SendDebugMsg(a8::Format("添加buff_id:%d effect:%d %s params:%d,%d,%d,%d,%d uniid:%d dur:%d",
{

View File

@ -861,7 +861,7 @@ void Player::_CMMove(f8::MsgHdr& hdr, const cs::CMMove& msg)
}
}
}
#ifdef DEBUG
#ifdef DEBUG1
a8::XPrintf("attack_dir:%f,%f,%f cli_dir:%f,%f,%f\n",
{
GetAttackDir().x,

View File

@ -219,7 +219,7 @@ static void InternalCreateBullet(BulletInfo& bullet_info)
#ifdef DEBUG1
a8::XPrintf("CreateBullet uniid:%d frameno:%d\n", {bullet_uniid, c->room->GetFrameNo()});
#endif
#ifdef DEBUG
#ifdef DEBUG1
if (c->IsPlayer()) {
a8::XPrintf("bullet_born_pos:%f,%f,%f bullet_dir:%f,%f,%f pos:%f,%f,%f\n",
{
@ -453,7 +453,7 @@ void InternalShot(Creature* c,
bullet_born_offset = glm::vec3(v.z *10*1, v.y, v.x*10*-1);
bullet_born_pos = c->GetPos().ToGlmVec3() + bullet_born_offset;
if (c->IsPlayer() || c->IsCar()) {
#ifdef DEBUG
#ifdef DEBUG1
a8::XPrintf("idx:%d offset:%f,%f,%f angle:%f old_angle:%f angle_xyz:%f,%f,%f %f %f gun_muzzle_position:%f,%f,%f pos:%f,%f,%f gun_id:%d t:%d\n",
{
bulletIdx,