전역 하드코드 이벤트를 동적 변경 영역으로 이동 (#230)

기존에 작성해두었던 EventHandler 시스템으로 하드코드 이벤트 이동
- 매달
  - 보급선 설정
  - 전쟁 단기 수입 설정
  - 부대장 부여
- 1월
  - 유산 포인트 계산
  - 도시 인구 변화
  - 수입
  - 관직 제한 해제
  - 재난
  - 상인
  - 새해 알림
  - 특기 부여
- 4월
  - 관직 제한 해제
  - 재난
- 7월
  - 유산 포인트 계산
  - 도시 인구 변화
  - 수입
  - 관직 제한 해제
  - 재난
  - 상인
- 10월
  - 관직 제한 해제
  - 재난
- 천통 시
  - 유산 포인트 계산

Reviewed-on: https://storage.hided.net/gitea/devsam/core/pulls/230
This commit was merged in pull request #230.
This commit is contained in:
2023-03-12 17:14:49 +09:00
parent 4901a2d384
commit d17b2518df
22 changed files with 1120 additions and 595 deletions
+50
View File
@@ -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"],
]
];
}