mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-02 08:57:44 +00:00
Style;
This commit is contained in:
parent
d7c97491c3
commit
75149960b0
2 changed files with 10 additions and 10 deletions
|
@ -27,7 +27,7 @@ Core::Item::Item( uint64_t uId, uint32_t catalogId, uint64_t model1, uint64_t mo
|
|||
auto itemInfo = g_exdData.getItemInfo( catalogId );
|
||||
m_delayMs = itemInfo->delayMs;
|
||||
m_physicalDmg = itemInfo->physical_damage;
|
||||
m_autoAttackDmg = float(m_physicalDmg * m_delayMs) / 3000;
|
||||
m_autoAttackDmg = float( m_physicalDmg * m_delayMs ) / 3000;
|
||||
}
|
||||
|
||||
Core::Item::~Item()
|
||||
|
|
|
@ -796,31 +796,31 @@ void Core::Network::GameConnection::actionHandler( Core::Network::Packets::GameP
|
|||
|
||||
switch( commandId )
|
||||
{
|
||||
case 0x01:
|
||||
case 0x01: // Toggle sheathe
|
||||
{
|
||||
if (param11 == 1)
|
||||
pPlayer->setStance(Entity::Actor::Stance::Active);
|
||||
if ( param11 == 1 )
|
||||
pPlayer->setStance( Entity::Actor::Stance::Active );
|
||||
else
|
||||
{
|
||||
pPlayer->setStance(Entity::Actor::Stance::Passive);
|
||||
pPlayer->setAutoattack(false);
|
||||
pPlayer->setStance( Entity::Actor::Stance::Passive );
|
||||
pPlayer->setAutoattack( false );
|
||||
}
|
||||
|
||||
pPlayer->sendToInRangeSet( ActorControlPacket142( pPlayer->getId(), 0, param11, 1 ) );
|
||||
|
||||
break;
|
||||
}
|
||||
case 0x02:
|
||||
case 0x02: // Toggle auto-attack
|
||||
{
|
||||
if (param11 == 1)
|
||||
if ( param11 == 1 )
|
||||
{
|
||||
pPlayer->setAutoattack( true );
|
||||
pPlayer->setStance(Entity::Actor::Stance::Active);
|
||||
pPlayer->setStance( Entity::Actor::Stance::Active );
|
||||
}
|
||||
else
|
||||
pPlayer->setAutoattack( false );
|
||||
|
||||
pPlayer->sendToInRangeSet(ActorControlPacket142(pPlayer->getId(), 1, param11, 1));
|
||||
pPlayer->sendToInRangeSet( ActorControlPacket142( pPlayer->getId(), 1, param11, 1 ) );
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue