mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-01 16:37:45 +00:00
cleanup some unneeded log output
This commit is contained in:
parent
f9abeee2f7
commit
7ecbbd07c7
4 changed files with 6 additions and 24 deletions
|
@ -12,13 +12,6 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
void onCastFinish( Sapphire::Action::Action& currentAction ) override
|
||||
{
|
||||
auto source = currentAction.getSourceChara();
|
||||
if( auto player = source->getAsPlayer() )
|
||||
player->sendDebug( "cast finished" );
|
||||
}
|
||||
|
||||
void onCharaHit( Sapphire::Action::Action& currentAction, Sapphire::Entity::Chara& hitActor ) override
|
||||
{
|
||||
currentAction.damageTarget( 150, hitActor );
|
||||
|
|
|
@ -172,10 +172,6 @@ void Sapphire::Action::Action::castStart()
|
|||
m_startTime = Util::getTimeMs();
|
||||
|
||||
auto player = m_pSource->getAsPlayer();
|
||||
if( player )
|
||||
{
|
||||
player->sendDebug( "castStart()" );
|
||||
}
|
||||
|
||||
if( hasCastTime() )
|
||||
{
|
||||
|
@ -233,8 +229,6 @@ void Sapphire::Action::Action::castInterrupt()
|
|||
// reset state flag
|
||||
//player->unsetStateFlag( PlayerStateFlag::Occupied1 );
|
||||
player->unsetStateFlag( PlayerStateFlag::Casting );
|
||||
|
||||
player->sendDebug( "castInterrupt()" );
|
||||
}
|
||||
|
||||
if( hasCastTime() )
|
||||
|
@ -261,9 +255,6 @@ void Sapphire::Action::Action::castFinish()
|
|||
|
||||
auto pScriptMgr = m_pFw->get< Scripting::ScriptMgr >();
|
||||
|
||||
auto pPlayer = m_pSource->getAsPlayer();
|
||||
pPlayer->sendDebug( "castFinish()" );
|
||||
|
||||
if( hasCastTime() )
|
||||
{
|
||||
/*auto control = ActorControlPacket143( m_pTarget->getId(), ActorControlType::Unk7,
|
||||
|
@ -280,9 +271,9 @@ void Sapphire::Action::Action::castFinish()
|
|||
// todo: calculate final hit targets and call onCharaHit in action script
|
||||
pScriptMgr->onCharaHit( *this, *m_pTarget );
|
||||
}
|
||||
else
|
||||
else if( auto player = m_pSource->getAsPlayer() )
|
||||
{
|
||||
pScriptMgr->onEObjHit( *pPlayer, m_targetId );
|
||||
pScriptMgr->onEObjHit( *player, m_targetId );
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -372,7 +363,7 @@ void Sapphire::Action::Action::damageTarget( uint32_t potency, Entity::Chara& ch
|
|||
chara.takeDamage( potency );
|
||||
|
||||
if( auto player = m_pSource->getAsPlayer() )
|
||||
player->sendDebug( "hit actorId#{0} for damage: {1}", chara.getId(), potency );
|
||||
player->sendDebug( "hit actorId#{0} for potency: {1}", chara.getId(), potency );
|
||||
|
||||
m_effects[ EffectPacketIdentity::DamageEffect ].m_entries.emplace_back( entry );
|
||||
|
||||
|
|
|
@ -31,8 +31,6 @@ void World::Manager::ActionMgr::handleAoEPlayerAction( Entity::Player& player, u
|
|||
void World::Manager::ActionMgr::handleTargetedPlayerAction( Entity::Player& player, uint32_t actionId,
|
||||
Data::ActionPtr actionData, uint64_t targetId )
|
||||
{
|
||||
player.sendDebug( "got act: {0}", actionData->name );
|
||||
|
||||
auto action = Action::make_Action( player.getAsPlayer(), actionId, actionData, framework() );
|
||||
|
||||
if( targetId != player.getId() )
|
||||
|
|
|
@ -27,7 +27,7 @@ void Sapphire::Network::GameConnection::actionHandler( FrameworkPtr pFw,
|
|||
const auto itemSourceSlot = packet.data().itemSourceSlot;
|
||||
const auto itemSourceContainer = packet.data().itemSourceContainer;
|
||||
|
||||
player.sendDebug( "Skill type: {0}, sequence: {1}, actionId: {2}, targetId: {3}", type, sequence, actionId, targetId );
|
||||
// player.sendDebug( "Skill type: {0}, sequence: {1}, actionId: {2}, targetId: {3}", type, sequence, actionId, targetId );
|
||||
|
||||
auto exdData = m_pFw->get< Data::ExdDataGenerated >();
|
||||
assert( exdData );
|
||||
|
@ -99,8 +99,8 @@ void Sapphire::Network::GameConnection::aoeActionHandler( FrameworkPtr pFw,
|
|||
return;
|
||||
}
|
||||
|
||||
player.sendDebug( "Skill type: {0}, sequence: {1}, actionId: {2}, x:{3}, y:{4}, z:{5}",
|
||||
type, sequence, actionId, pos.x, pos.y, pos.z );
|
||||
// player.sendDebug( "Skill type: {0}, sequence: {1}, actionId: {2}, x:{3}, y:{4}, z:{5}",
|
||||
// type, sequence, actionId, pos.x, pos.y, pos.z );
|
||||
|
||||
auto exdData = m_pFw->get< Data::ExdDataGenerated >();
|
||||
assert( exdData );
|
||||
|
|
Loading…
Add table
Reference in a new issue