mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 22:57:45 +00:00
Merge pull request #436 from NotAdam/housing
Fix ward info issue, some cleanup
This commit is contained in:
commit
e5d7ffdb77
4 changed files with 12 additions and 9 deletions
|
@ -19,12 +19,6 @@ MODIFY COLUMN UPDATE_DATE DATETIME NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURR
|
||||||
ALTER TABLE charainfosearch
|
ALTER TABLE charainfosearch
|
||||||
MODIFY COLUMN UPDATE_DATE DATETIME NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
|
MODIFY COLUMN UPDATE_DATE DATETIME NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
|
||||||
|
|
||||||
ALTER TABLE charaitemcrystal
|
|
||||||
MODIFY COLUMN UPDATE_DATE DATETIME NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
|
|
||||||
|
|
||||||
ALTER TABLE charaitemcurrency
|
|
||||||
MODIFY COLUMN UPDATE_DATE DATETIME NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
|
|
||||||
|
|
||||||
ALTER TABLE charaitemgearset
|
ALTER TABLE charaitemgearset
|
||||||
MODIFY COLUMN UPDATE_DATE DATETIME NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
|
MODIFY COLUMN UPDATE_DATE DATETIME NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -240,8 +240,13 @@ void Core::HousingMgr::sendWardLandInfo( Entity::Player& player, uint8_t wardId,
|
||||||
|
|
||||||
auto& entry = wardInfoPacket->data().houseInfoEntry[ i ];
|
auto& entry = wardInfoPacket->data().houseInfoEntry[ i ];
|
||||||
|
|
||||||
|
// retail always sends the house price in this packet, even after the house has been sold
|
||||||
|
// so I guess we do the same
|
||||||
entry.housePrice = land->getCurrentPrice();
|
entry.housePrice = land->getCurrentPrice();
|
||||||
|
|
||||||
|
if( land->getState() == Common::HouseState::forSale )
|
||||||
|
continue;
|
||||||
|
|
||||||
switch( land->getLandType() )
|
switch( land->getLandType() )
|
||||||
{
|
{
|
||||||
case LandType::FreeCompany:
|
case LandType::FreeCompany:
|
||||||
|
|
|
@ -413,6 +413,10 @@ bool Core::TerritoryMgr::movePlayer( ZonePtr pZone, Core::Entity::PlayerPtr pPla
|
||||||
if( pHousing )
|
if( pHousing )
|
||||||
pPlayer->setTerritoryId( pHousing->getLandSetId() );
|
pPlayer->setTerritoryId( pHousing->getLandSetId() );
|
||||||
}
|
}
|
||||||
|
else if( isInstanceContentTerritory( pZone->getTerritoryTypeId() ) )
|
||||||
|
{
|
||||||
|
pPlayer->setTerritoryId( pZone->getGuId() );
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pPlayer->setTerritoryId( 0 );
|
pPlayer->setTerritoryId( 0 );
|
||||||
|
|
Loading…
Add table
Reference in a new issue