mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-25 11:07:45 +00:00
minor update
This commit is contained in:
parent
35721ed30f
commit
fa5a972b38
2 changed files with 4 additions and 4 deletions
|
@ -1634,7 +1634,7 @@ Sapphire::Inventory::HousingItemPtr Sapphire::World::Manager::HousingMgr::getHou
|
||||||
return Inventory::make_HousingItem( tmpItem->getUId(), tmpItem->getId() );
|
return Inventory::make_HousingItem( tmpItem->getUId(), tmpItem->getId() );
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sapphire::World::Manager::HousingMgr::editAppearance( bool isInterior, Sapphire::Entity::Player& player, const Common::LandIdent& landIdent, std::vector< uint16_t > containerList, std::vector< uint8_t> slotList, uint8_t removeFlag )
|
void Sapphire::World::Manager::HousingMgr::editAppearance( bool isInterior, Sapphire::Entity::Player& player, const Common::LandIdent landIdent, std::vector< uint16_t > containerList, std::vector< uint8_t> slotList, uint8_t removeFlag )
|
||||||
{
|
{
|
||||||
auto landSetId = toLandSetId( static_cast< uint16_t >( landIdent.territoryTypeId ), static_cast< uint8_t >( landIdent.wardNum ) );
|
auto landSetId = toLandSetId( static_cast< uint16_t >( landIdent.territoryTypeId ), static_cast< uint8_t >( landIdent.wardNum ) );
|
||||||
auto terri = getHousingZoneByLandSetId( landSetId );
|
auto terri = getHousingZoneByLandSetId( landSetId );
|
||||||
|
@ -1665,7 +1665,7 @@ void Sapphire::World::Manager::HousingMgr::editAppearance( bool isInterior, Sapp
|
||||||
if( oldItem )
|
if( oldItem )
|
||||||
{
|
{
|
||||||
housingContainer->removeItem( i );
|
housingContainer->removeItem( i );
|
||||||
invMgr.removeItemFromHousingContainer( land->getLandIdent(), housingContainer->getId(), i );
|
invMgr.removeItemFromHousingContainer( landIdent, housingContainer->getId(), i );
|
||||||
player.addItem( oldItem, false, false, false );
|
player.addItem( oldItem, false, false, false );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1684,7 +1684,7 @@ void Sapphire::World::Manager::HousingMgr::editAppearance( bool isInterior, Sapp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
invMgr.sendInventoryContainer( player, housingContainer );
|
invMgr.sendInventoryContainer( player, housingContainer );
|
||||||
invMgr.saveHousingContainer( land->getLandIdent(), housingContainer );
|
invMgr.saveHousingContainer( landIdent, housingContainer );
|
||||||
updateHouseModels( land->getHouse() );
|
updateHouseModels( land->getHouse() );
|
||||||
if( !isInterior )
|
if( !isInterior )
|
||||||
{
|
{
|
||||||
|
|
|
@ -181,7 +181,7 @@ namespace Sapphire::World::Manager
|
||||||
|
|
||||||
bool hasPermission( Entity::Player& player, Land& land, uint32_t permission );
|
bool hasPermission( Entity::Player& player, Land& land, uint32_t permission );
|
||||||
|
|
||||||
void editAppearance( bool isInterior, Sapphire::Entity::Player& player, const Common::LandIdent& landIdent, std::vector< uint16_t > containerList, std::vector< uint8_t > slotList, uint8_t removeFlag );
|
void editAppearance( bool isInterior, Sapphire::Entity::Player& player, const Common::LandIdent landIdent, std::vector< uint16_t > containerList, std::vector< uint8_t > slotList, uint8_t removeFlag );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue