|
|
|
@ -11423,7 +11423,7 @@ void CCharacter::setBerserkFlag(bool isBerserk)
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
sint8 percentTmp = sint8( (100.0 * ( target->getPhysScores()._PhysicalScores[ SCORES::hit_points ].Current ) ) / ( target->getPhysScores()._PhysicalScores[ SCORES::hit_points ].Max ) );
|
|
|
|
|
sint8 percentTmp = sint8( (127.0 * ( target->getPhysScores()._PhysicalScores[ SCORES::hit_points ].Current ) ) / ( target->getPhysScores()._PhysicalScores[ SCORES::hit_points ].Max ) );
|
|
|
|
|
if( percentTmp < 0 )
|
|
|
|
|
percent = 0;
|
|
|
|
|
else
|
|
|
|
@ -14846,16 +14846,12 @@ void CCharacter::addRoomAccessToPlayer(const NLMISC::CEntityId &id)
|
|
|
|
|
//--------------------------------------------------------------
|
|
|
|
|
void CCharacter::addPlayerToFriendList(const NLMISC::CEntityId &id)
|
|
|
|
|
{
|
|
|
|
|
/*// if player not found
|
|
|
|
|
if (id == CEntityId::Unknown || PlayerManager.getChar(id)==NULL)
|
|
|
|
|
// if player not found
|
|
|
|
|
if (id == CEntityId::Unknown)
|
|
|
|
|
{
|
|
|
|
|
if ( ! (IShardUnifierEvent::getInstance() && IShardUnifierEvent::getInstance()->isCharacterOnlineAbroad(id)))
|
|
|
|
|
{
|
|
|
|
|
// player not found => message
|
|
|
|
|
PHRASE_UTILITIES::sendDynamicSystemMessage( _EntityRowId, "OPERATION_OFFLINE");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}*/
|
|
|
|
|
PHRASE_UTILITIES::sendDynamicSystemMessage( _EntityRowId, "OPERATION_OFFLINE");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// check not already in list
|
|
|
|
|
const uint size = (uint)_FriendsList.size();
|
|
|
|
@ -14923,15 +14919,11 @@ void CCharacter::addPlayerToFriendList(const NLMISC::CEntityId &id)
|
|
|
|
|
void CCharacter::addPlayerToLeagueList(const NLMISC::CEntityId &id)
|
|
|
|
|
{
|
|
|
|
|
// if player not found
|
|
|
|
|
/*if (id == CEntityId::Unknown || PlayerManager.getChar(id)==NULL)
|
|
|
|
|
if (id == CEntityId::Unknown)
|
|
|
|
|
{
|
|
|
|
|
if ( ! (IShardUnifierEvent::getInstance() && IShardUnifierEvent::getInstance()->isCharacterOnlineAbroad(id)))
|
|
|
|
|
{
|
|
|
|
|
// player not found => message
|
|
|
|
|
PHRASE_UTILITIES::sendDynamicSystemMessage( _EntityRowId, "OPERATION_OFFLINE");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}*/
|
|
|
|
|
PHRASE_UTILITIES::sendDynamicSystemMessage( _EntityRowId, "OPERATION_OFFLINE");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// check not already in list
|
|
|
|
|
const uint size = _LeagueList.size();
|
|
|
|
@ -14972,7 +14964,7 @@ void CCharacter::addPlayerToLeagueList(const NLMISC::CEntityId &id)
|
|
|
|
|
|
|
|
|
|
if ( ! GenericMsgManager.pushNameToStream( "TEAM:CONTACT_CREATE", bms) )
|
|
|
|
|
{
|
|
|
|
|
nlwarning("<CEntityBase::addPlayerToFriendList> Msg name TEAM:CONTACT_CREATE not found");
|
|
|
|
|
nlwarning("<CEntityBase::addPlayerToLeagueList> Msg name TEAM:CONTACT_CREATE not found");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|