From 38faab6f38e5de566e6029431cfc4a3f65a6f16c Mon Sep 17 00:00:00 2001 From: MindL0ve Date: Sun, 1 Feb 2026 00:15:44 +0300 Subject: [PATCH] Removed distribution_test_server --- src/game/char_battle.cpp | 6 +----- src/game/char_item.cpp | 15 --------------- src/game/config.cpp | 7 ------- src/game/config.h | 1 - 4 files changed, 1 insertion(+), 28 deletions(-) diff --git a/src/game/char_battle.cpp b/src/game/char_battle.cpp index e94c383..ce993b9 100644 --- a/src/game/char_battle.cpp +++ b/src/game/char_battle.cpp @@ -535,7 +535,7 @@ bool CHARACTER::IsDead() const return false; } -#define GetGoldMultipler() (distribution_test_server ? 3 : 1) +#define GetGoldMultipler() (1) void CHARACTER::RewardGold(LPCHARACTER pkAttacker) { @@ -2464,10 +2464,6 @@ static void GiveExp(LPCHARACTER from, LPCHARACTER to, int iExp) // 레벨차 경험치 가감비율 iExp = CALCULATE_VALUE_LVDELTA(to->GetLevel(), from->GetLevel(), iExp); - // 외부 테스트 서버 경험치 3배 보너스 - if (distribution_test_server) - iExp *= 3; - int iBaseExp = iExp; // 점술, 회사 경험치 이벤트 적용 diff --git a/src/game/char_item.cpp b/src/game/char_item.cpp index a7e1b7b..bd657dc 100644 --- a/src/game/char_item.cpp +++ b/src/game/char_item.cpp @@ -2157,13 +2157,6 @@ bool CHARACTER::UseItemEx(LPITEM item, TItemPos DestCell) int iReadDelay = number(SKILLBOOK_DELAY_MIN, SKILLBOOK_DELAY_MAX); - if (distribution_test_server) - iReadDelay /= 3; - - //한국 본섭의 경우에는 시간을 24시간 고정 - if (LC_IsKorea()) - iReadDelay = 86400; - SetSkillNextReadTime(dwVnum, get_global_time() + iReadDelay); } } @@ -3082,7 +3075,6 @@ bool CHARACTER::UseItemEx(LPITEM item, TItemPos DestCell) ITEM_MANAGER::instance().RemoveItem(item); int iReadDelay = number(SKILLBOOK_DELAY_MIN, SKILLBOOK_DELAY_MAX); - if (distribution_test_server) iReadDelay /= 3; SetSkillNextReadTime(SKILL_LEADERSHIP, get_global_time() + iReadDelay); } @@ -3124,7 +3116,6 @@ bool CHARACTER::UseItemEx(LPITEM item, TItemPos DestCell) ITEM_MANAGER::instance().RemoveItem(item); int iReadDelay = number(SKILLBOOK_DELAY_MIN, SKILLBOOK_DELAY_MAX); - if (distribution_test_server) iReadDelay /= 3; SetSkillNextReadTime(SKILL_COMBO, get_global_time() + iReadDelay); } @@ -3153,7 +3144,6 @@ bool CHARACTER::UseItemEx(LPITEM item, TItemPos DestCell) ITEM_MANAGER::instance().RemoveItem(item); int iReadDelay = number(SKILLBOOK_DELAY_MIN, SKILLBOOK_DELAY_MAX); - if (distribution_test_server) iReadDelay /= 3; SetSkillNextReadTime(dwSkillVnum, get_global_time() + iReadDelay); } @@ -3182,7 +3172,6 @@ bool CHARACTER::UseItemEx(LPITEM item, TItemPos DestCell) ITEM_MANAGER::instance().RemoveItem(item); int iReadDelay = number(SKILLBOOK_DELAY_MIN, SKILLBOOK_DELAY_MAX); - if (distribution_test_server) iReadDelay /= 3; SetSkillNextReadTime(dwSkillVnum, get_global_time() + iReadDelay); } @@ -3255,7 +3244,6 @@ bool CHARACTER::UseItemEx(LPITEM item, TItemPos DestCell) ITEM_MANAGER::instance().RemoveItem(item); int iReadDelay = number(SKILLBOOK_DELAY_MIN, SKILLBOOK_DELAY_MAX); - if (distribution_test_server) iReadDelay /= 3; SetSkillNextReadTime(dwSkillVnum, get_global_time() + iReadDelay); } @@ -3286,7 +3274,6 @@ bool CHARACTER::UseItemEx(LPITEM item, TItemPos DestCell) ITEM_MANAGER::instance().RemoveItem(item); int iReadDelay = number(SKILLBOOK_DELAY_MIN, SKILLBOOK_DELAY_MAX); - if (distribution_test_server) iReadDelay /= 3; SetSkillNextReadTime(dwSkillVnum, get_global_time() + iReadDelay); @@ -3328,7 +3315,6 @@ bool CHARACTER::UseItemEx(LPITEM item, TItemPos DestCell) ITEM_MANAGER::instance().RemoveItem(item); int iReadDelay = number(SKILLBOOK_DELAY_MIN, SKILLBOOK_DELAY_MAX); - if (distribution_test_server) iReadDelay /= 3; SetSkillNextReadTime(dwSkillVnum, get_global_time() + iReadDelay); } @@ -3383,7 +3369,6 @@ bool CHARACTER::UseItemEx(LPITEM item, TItemPos DestCell) PointChange(POINT_HORSE_SKILL, 1); int iReadDelay = number(SKILLBOOK_DELAY_MIN, SKILLBOOK_DELAY_MAX); - if (distribution_test_server) iReadDelay /= 3; if (!test_server) SetSkillNextReadTime(dwSkillVnum, get_global_time() + iReadDelay); diff --git a/src/game/config.cpp b/src/game/config.cpp index 3596533..fc2e102 100644 --- a/src/game/config.cpp +++ b/src/game/config.cpp @@ -37,7 +37,6 @@ DWORD g_dwTrafficProfileFlushCycle = 3600; // END_OF_TRAFFIC_PROFILER int test_server = 0; -bool distribution_test_server = false; bool china_event_server = false; bool guild_mark_server = true; BYTE guild_mark_min_level = 3; @@ -586,12 +585,6 @@ void config_init(const string& st_localeServiceName) continue; } - TOKEN("distribution_test_server") - { - str_to_number(distribution_test_server, value_string); - continue; - } - TOKEN("china_event_server") { str_to_number(china_event_server, value_string); diff --git a/src/game/config.h b/src/game/config.h index 50c6b00..3d5978c 100644 --- a/src/game/config.h +++ b/src/game/config.h @@ -23,7 +23,6 @@ extern int ping_event_second_cycle; extern int test_server; extern bool guild_mark_server; extern BYTE guild_mark_min_level; -extern bool distribution_test_server; extern bool china_event_server; extern bool g_bNoMoreClient;