From 8360d6939fd74122fd17a75000b3f7c75ea9412a Mon Sep 17 00:00:00 2001 From: Tr0n Date: Tue, 9 Apr 2024 16:53:37 +0200 Subject: [PATCH] set damage penalty on foreign empire maps to constant 9% --- src/game/src/char_battle.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/game/src/char_battle.cpp b/src/game/src/char_battle.cpp index 8ff1404..a7979cb 100644 --- a/src/game/src/char_battle.cpp +++ b/src/game/src/char_battle.cpp @@ -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; }