This commit is contained in:
aozhiwei 2020-07-31 20:55:31 +08:00
parent 73df9239c4
commit 95a619d5b1

View File

@ -75,7 +75,12 @@ void Bullet::OnHit(std::set<Entity*>& objects)
player->stats.damage_amount_out += finaly_dmg;
hum->DecHP(finaly_dmg, player->GetEntityUniId(), player->name, gun_meta->i->id());
#ifdef DEBUG
player->SendDebugMsg(a8::Format("bullet atk:%f", {GetAtk()}));
player->SendDebugMsg(a8::Format("bullet weapon_id:%d atk:%f",
{
gun_meta->i->id(),
GetAtk()
})
);
#endif
}
}
@ -103,7 +108,12 @@ void Bullet::OnHit(std::set<Entity*>& objects)
}
obstacle->BroadcastFullState(room);
#ifdef DEBUG
player->SendDebugMsg(a8::Format("bullet atk:%f", {GetAtk()}));
player->SendDebugMsg(a8::Format("bullet weapon_id:%d atk:%f",
{
gun_meta->i->id(),
GetAtk()
})
);
#endif
}
}