forked from metin2/server
set damage penalty on foreign empire maps to constant 9%
This commit is contained in:
parent
1e362d8507
commit
8360d6939f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue