1
0
forked from metin2/server

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

View File

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