Files
2022-10-26 12:25:11 +08:00

34 lines
1.0 KiB
C++

#include "stdafx.h"
#include "PVPFormula.h"
//---------------------------------------------------------------------------------
// PVP Score, Point °ø½Ä
//---------------------------------------------------------------------------------
DWORD CalcPVPPoint( DWORD MaxKillSeries, DWORD TotalKill, DWORD TotalDie )
{
if( TotalKill+TotalDie == 0 ) return 0;
return (DWORD)(MaxKillSeries*2+TotalKill*(1+
TotalKill/(TotalKill+TotalDie) //< ½Â·ü
));
}
DWORD CalcPVPScore( LEVELTYPE CharLV, INT LVInterval )
{
INT score = 0;
if( 10 <= CharLV && CharLV < 30 )
score = (INT)(16+LVInterval*16/8);
else if( 30 <= CharLV && CharLV < 70 )
score = (INT)(16+LVInterval*21/11);
else if( 70 <= CharLV && CharLV < 100 )
score = (INT)(16+LVInterval*26/16);
else // ±×¿Ü´Â ÀÓ½Ã
score = (INT)(16+LVInterval*16/8);
return (score<0?0:(DWORD)score);
}
//---------------------------------------------------------------------------------
//---------------------------------------------------------------------------------