feat, refac: TurnExecutionHelper에 하드코딩된 함수를 이동
- GameConst에서 정의된 defaultEvent 사용 - runEventHandler() 작성 - 이와 관련한 호출을 모두 통합 - 이벤트 핸들러 호출 시 gameStor 캐시 초기화하지 않도록 변경
This commit is contained in:
@@ -414,6 +414,46 @@ class GameConstBase
|
||||
]
|
||||
];
|
||||
public static $defaultEvents = [
|
||||
[
|
||||
"pre_month", 9000,
|
||||
true,
|
||||
["UpdateCitySupply"],
|
||||
["ProcessWarIncome"]
|
||||
],
|
||||
[
|
||||
"month", 9000,
|
||||
["Date", "==", null, 1],
|
||||
["MergeInheritPointRank"],
|
||||
["ProcessSemiAnnual", "gold"],
|
||||
["ProcessIncome", "gold"],
|
||||
["ResetOfficerLock"],
|
||||
["RaiseDisaster"],
|
||||
["RandomizeCityTradeRate"],
|
||||
["NewYear"],
|
||||
["AssignGeneralSpeciality"],
|
||||
],
|
||||
[
|
||||
"month", 9000,
|
||||
["Date", "==", null, 4],
|
||||
["ResetOfficerLock"],
|
||||
["RaiseDisaster"],
|
||||
],
|
||||
[
|
||||
"month", 9000,
|
||||
["Date", "==", null, 7],
|
||||
["MergeInheritPointRank"],
|
||||
["ProcessSemiAnnual", "rice"],
|
||||
["ProcessIncome", "rice"],
|
||||
["ResetOfficerLock"],
|
||||
["RaiseDisaster"],
|
||||
["RandomizeCityTradeRate"],
|
||||
],
|
||||
[
|
||||
"month", 9000,
|
||||
["Date", "==", null, 10],
|
||||
["ResetOfficerLock"],
|
||||
["RaiseDisaster"],
|
||||
],
|
||||
[
|
||||
"month", 2000,
|
||||
["DateRelative", "==", 1, 1],
|
||||
@@ -446,5 +486,15 @@ class GameConstBase
|
||||
["AddGlobalBetray", 1, 1],
|
||||
["DeleteEvent"]
|
||||
],
|
||||
[
|
||||
"month", 1000,
|
||||
true,
|
||||
["ProvideNPCTroopLeader"]
|
||||
],
|
||||
[
|
||||
"united", 5000,
|
||||
true,
|
||||
["MergeInheritPointRank"],
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user