diff --git a/src/servers/sapphire_zone/Zone/Land.cpp b/src/servers/sapphire_zone/Zone/Land.cpp index 47f53701..44828849 100644 --- a/src/servers/sapphire_zone/Zone/Land.cpp +++ b/src/servers/sapphire_zone/Zone/Land.cpp @@ -31,10 +31,10 @@ Core::Land::Land( uint16_t zoneId, uint8_t wardNum, uint8_t landId, uint32_t lan m_wardNum( wardNum ), m_landId( landId ), m_currentPrice( 0 ), + m_minPrice( 0 ), m_nextDrop( 0 ), m_landSetId( landSetId ), - m_landInfo( info ), - m_devaluationTime( 0 ) + m_landInfo( info ) { memset( &m_land, 0x00, sizeof( LandStruct ) ); load(); @@ -238,7 +238,7 @@ uint32_t Core::Land::getMaxItems() uint32_t Core::Land::getDevaluationTime() { - return m_devaluationTime; + return m_nextDrop - Util::getTimeSeconds(); } void Core::Land::init() @@ -280,7 +280,6 @@ void Core::Land::Update( uint32_t currTime ) m_nextDrop = currTime + 21600; m_currentPrice = ( m_currentPrice / 100 ) * 99.58; } - m_devaluationTime = m_nextDrop - currTime; UpdateDatabase(); } } \ No newline at end of file diff --git a/src/servers/sapphire_zone/Zone/Land.h b/src/servers/sapphire_zone/Zone/Land.h index 3add13d1..cc1b6ac5 100644 --- a/src/servers/sapphire_zone/Zone/Land.h +++ b/src/servers/sapphire_zone/Zone/Land.h @@ -79,7 +79,6 @@ namespace Core //price uint32_t m_initPrice; uint32_t m_nextDrop; - uint32_t m_devaluationTime; uint32_t m_currentPrice; uint32_t m_minPrice; };