|
|
@ -7936,13 +7936,11 @@ void CCharacter::endHarvest(bool sendCloseTempImpulsion)
|
|
|
|
_DepositSearchSkill = SKILLS::unknown;
|
|
|
|
_DepositSearchSkill = SKILLS::unknown;
|
|
|
|
_MpIndex = 0xff;
|
|
|
|
_MpIndex = 0xff;
|
|
|
|
_DepositHarvestInformation.DepositIndex = 0xffffffff;
|
|
|
|
_DepositHarvestInformation.DepositIndex = 0xffffffff;
|
|
|
|
|
|
|
|
bool sendCloseTemp = false;
|
|
|
|
|
|
|
|
|
|
|
|
if ( _DepositHarvestInformation.Sheet != CSheetId::Unknown/*_DepositHarvestInformation.EndCherchingTime != 0xffffffff && _DepositHarvestInformation.EndCherchingTime > CTickEventHandler::getGameCycle()*/ )
|
|
|
|
if ( _DepositHarvestInformation.Sheet != CSheetId::Unknown/*_DepositHarvestInformation.EndCherchingTime != 0xffffffff && _DepositHarvestInformation.EndCherchingTime > CTickEventHandler::getGameCycle()*/ )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if ( sendCloseTempImpulsion )
|
|
|
|
sendCloseTemp = true;
|
|
|
|
{
|
|
|
|
|
|
|
|
sendCloseTempInventoryImpulsion();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ( _MpSourceId != CEntityId::Unknown || _MpSourceSheetId != CSheetId::Unknown )
|
|
|
|
if ( _MpSourceId != CEntityId::Unknown || _MpSourceSheetId != CSheetId::Unknown )
|
|
|
@ -7953,8 +7951,7 @@ void CCharacter::endHarvest(bool sendCloseTempImpulsion)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
creature->resetHarvesterRowId();
|
|
|
|
creature->resetHarvesterRowId();
|
|
|
|
// only send interupt message if some rm remains on the corpse
|
|
|
|
// only send interupt message if some rm remains on the corpse
|
|
|
|
if ( sendCloseTempImpulsion )
|
|
|
|
sendCloseTemp = true;
|
|
|
|
sendCloseTempInventoryImpulsion();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// send end loot behaviour
|
|
|
|
// send end loot behaviour
|
|
|
@ -7967,6 +7964,11 @@ void CCharacter::endHarvest(bool sendCloseTempImpulsion)
|
|
|
|
|
|
|
|
|
|
|
|
clearHarvestDB();
|
|
|
|
clearHarvestDB();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (sendCloseTemp && sendCloseTempImpulsion)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
sendCloseTempInventoryImpulsion();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} // endHarvest //
|
|
|
|
} // endHarvest //
|
|
|
|
|
|
|
|
|
|
|
|
//-----------------------------------------------
|
|
|
|
//-----------------------------------------------
|
|
|
@ -14485,7 +14487,7 @@ void CCharacter::sendCloseTempInventoryImpulsion()
|
|
|
|
BOMB_IF(isRecursing,"CCharacter::sendCloseTempInventoryImpulsion is recursing!",return); // **** Temp Fix 2/4 **** //
|
|
|
|
BOMB_IF(isRecursing,"CCharacter::sendCloseTempInventoryImpulsion is recursing!",return); // **** Temp Fix 2/4 **** //
|
|
|
|
isRecursing= true; // **** Temp Fix 3/4 **** //
|
|
|
|
isRecursing= true; // **** Temp Fix 3/4 **** //
|
|
|
|
|
|
|
|
|
|
|
|
getAllTempInventoryItems(false);
|
|
|
|
getAllTempInventoryItems(); // false);
|
|
|
|
|
|
|
|
|
|
|
|
CMessage msgout( "IMPULSION_ID" );
|
|
|
|
CMessage msgout( "IMPULSION_ID" );
|
|
|
|
msgout.serial( _Id );
|
|
|
|
msgout.serial( _Id );
|
|
|
|