1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-26 22:37:45 +00:00

Style fixes

This commit is contained in:
Mordred Admin 2018-07-27 08:10:55 +02:00
parent 056f26959a
commit 3650102807

View file

@ -231,7 +231,7 @@ void Core::Entity::Player::addCurrency( CurrencyType type, uint32_t amount )
uint32_t currentAmount = currItem->getStackSize(); uint32_t currentAmount = currItem->getStackSize();
currItem->setStackSize( currentAmount + amount ); currItem->setStackSize( currentAmount + amount );
writeItem(currItem); writeItem( currItem );
updateContainer( Currency, slot, currItem ); updateContainer( Currency, slot, currItem );
@ -255,7 +255,7 @@ void Core::Entity::Player::removeCurrency( Common::CurrencyType type, uint32_t a
currItem->setStackSize( 0 ); currItem->setStackSize( 0 );
else else
currItem->setStackSize( currentAmount - amount ); currItem->setStackSize( currentAmount - amount );
writeItem(currItem); writeItem( currItem );
auto invUpdate = boost::make_shared< UpdateInventorySlotPacket >( getId(), auto invUpdate = boost::make_shared< UpdateInventorySlotPacket >( getId(),
static_cast< uint8_t >( type ) - 1, static_cast< uint8_t >( type ) - 1,
@ -280,7 +280,7 @@ void Core::Entity::Player::addCrystal( Common::CrystalType type, uint32_t amount
currItem->setStackSize( currentAmount + amount ); currItem->setStackSize( currentAmount + amount );
writeItem(currItem); writeItem( currItem );
writeInventory( Crystal ); writeInventory( Crystal );
@ -307,7 +307,7 @@ void Core::Entity::Player::removeCrystal( Common::CrystalType type, uint32_t amo
else else
currItem->setStackSize( currentAmount - amount ); currItem->setStackSize( currentAmount - amount );
writeItem(currItem); writeItem( currItem );
auto invUpdate = boost::make_shared< UpdateInventorySlotPacket >( getId(), auto invUpdate = boost::make_shared< UpdateInventorySlotPacket >( getId(),
static_cast< uint8_t >( type ) - 1, static_cast< uint8_t >( type ) - 1,
@ -639,7 +639,7 @@ void Core::Entity::Player::splitItem( uint16_t fromInventoryId, uint8_t fromSlot
updateContainer( fromInventoryId, fromSlotId, fromItem ); updateContainer( fromInventoryId, fromSlotId, fromItem );
updateContainer( toInventoryId, toSlot, newItem ); updateContainer( toInventoryId, toSlot, newItem );
writeItem(fromItem); writeItem( fromItem );
} }
void Core::Entity::Player::mergeItem( uint16_t fromInventoryId, uint8_t fromSlotId, void Core::Entity::Player::mergeItem( uint16_t fromInventoryId, uint8_t fromSlotId,
@ -666,12 +666,12 @@ void Core::Entity::Player::mergeItem( uint16_t fromInventoryId, uint8_t fromSlot
else else
{ {
fromItem->setStackSize( stackOverflow ); fromItem->setStackSize( stackOverflow );
writeItem(fromItem); writeItem( fromItem );
} }
toItem->setStackSize( stackSize ); toItem->setStackSize( stackSize );
writeItem(toItem); writeItem( toItem );
updateContainer( fromInventoryId, fromSlotId, fromItem ); updateContainer( fromInventoryId, fromSlotId, fromItem );
updateContainer( toInventoryId, toSlot, toItem ); updateContainer( toInventoryId, toSlot, toItem );