XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

XFEstudio/SpaceNinjaServer

chore: add minBuildVersion to some event messages (#4058)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/4058 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

a1a29b05
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

2 个文件 +12 -4
Modified src/constants/gameToBuildVersion.ts +1 -0
@@ -6,6 +6,7 @@ const gameToBuildVersion = {
6 6 "39.1.0": "2025.08.26.09.49",
7 7 "39.0.0": "2025.06.23.11.39",
8 8 "38.6.0": "2025.05.20.10.18",
9 "38.5.11": "2025.04.15.15.16",
9 10 "38.5.0": "2025.03.18.09.51",
10 11 "38.0.8": "2025.02.05.11.19",
11 12 "37.0.0": "2024.09.30.16.56",
Modified src/controllers/api/inboxController.ts +11 -4
@@ -191,7 +191,11 @@ const createNewEventMessages = async (account: TAccountDocument): Promise<void>
191 191 Tag: baroNode
192 192 }
193 193 ],
194 date: new Date(baroActualStart)
194 date: new Date(baroActualStart),
195 minBuildVersion:
196 evilBaroStage > 0
197 ? buildVersionToInt(gameToBuildVersion["40.0.0"])
198 : buildVersionToInt(gameToBuildVersion["18.18.0"]) // Baro was introduced in U15.6. Unclear when exactly this inbox message was introduced, tho.
195 199 });
196 200 }
197 201 if (Date.now() >= prevBaroEnd && account.LatestEventMessageDate.getTime() < prevBaroEnd && evilBaroStage == 4) {
@@ -205,7 +209,8 @@ const createNewEventMessages = async (account: TAccountDocument): Promise<void>
205 209 endDate: new Date(baroActualStart),
206 210 att: ["/Lotus/Types/StoreItems/AvatarImages/ImageBaroKiteerEvil"],
207 211 CrossPlatform: true,
208 date: new Date(prevBaroEnd)
212 date: new Date(prevBaroEnd),
213 minBuildVersion: buildVersionToInt(gameToBuildVersion["40.0.0"])
209 214 });
210 215 }
211 216
@@ -255,7 +260,8 @@ const createNewEventMessages = async (account: TAccountDocument): Promise<void>
255 260 transmission: "/Lotus/Sounds/Dialog/GalleonOfGhouls/DGhoulsWeekOneInbox0010VayHek",
256 261 att: ["/Lotus/Upgrades/Skins/Events/OgrisOldSchool"],
257 262 startDate: new Date(),
258 goalTag: "GalleonRobbery"
263 goalTag: "GalleonRobbery",
264 minBuildVersion: buildVersionToInt(gameToBuildVersion["38.5.11"])
259 265 });
260 266 }
261 267 if (config.worldState?.bloodOfPerita && !account.receivedEventMessage_bloodOfPerita) {
@@ -267,7 +273,8 @@ const createNewEventMessages = async (account: TAccountDocument): Promise<void>
267 273 icon: "/Lotus/Interface/Icons/Npcs/Roathe.png",
268 274 startDate: new Date(),
269 275 transmission: "/Lotus/Sounds/Dialog/Tau/RoatheEventOutroInbox/DRoatheEventIntroInbox0010Roathe",
270 QuestReq: "/Lotus/Types/Keys/TauPrequel/TauPrequelQuestKeyChain"
276 QuestReq: "/Lotus/Types/Keys/TauPrequel/TauPrequelQuestKeyChain",
277 minBuildVersion: buildVersionToInt(gameToBuildVersion["41.0.0"])
271 278 });
272 279 }
273 280 if (config.worldState?.longShadow && !account.receivedEventMessage_longShadow) {