forked from metin2/server
1
0
Fork 0

set damage penalty on foreign empire maps to constant 9%

This commit is contained in:
Tr0n 2024-04-09 16:53:37 +02:00
parent 1e362d8507
commit 8360d6939f
No known key found for this signature in database
1 changed files with 1 additions and 10 deletions

View File

@ -2040,16 +2040,7 @@ bool CHARACTER::Damage(LPCHARACTER pAttacker, int dam, EDamageType type) // retu
// 다른 제국 사람인 경우 데미지 10% 감소
if (iEmpire && iMapEmpire && iEmpire != iMapEmpire)
{
int percent = 10;
if (184 <= lMapIndex && lMapIndex <= 189)
{
percent = 9;
}
else
{
percent = 9;
}
const int percent = 9;
dam = dam * percent / 10;
}