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

XFESpaceNinjaServer

A simple server for a small space ninja game

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

XFEstudio/XFESpaceNinjaServer

feat: Nights of Naberus (#2817)

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

94263593
Gian <gianplu55@gmail.com>
提交于

代码差异

11 个文件 +48 -0
Modified config-vanilla.json +1 -0
@@ -38,6 +38,7 @@
38 38 "anniversary": null,
39 39 "hallowedNightmares": false,
40 40 "hallowedNightmaresRewardsOverride": 0,
41 "naberusNightsOverride": null,
41 42 "proxyRebellion": false,
42 43 "proxyRebellionRewardsOverride": 0,
43 44 "galleonOfGhouls": 0,
Modified src/services/configService.ts +1 -0
@@ -48,6 +48,7 @@ export interface IConfig {
48 48 anniversary?: number;
49 49 hallowedNightmares?: boolean;
50 50 hallowedNightmaresRewardsOverride?: number;
51 naberusNightsOverride?: boolean;
51 52 proxyRebellion?: boolean;
52 53 proxyRebellionRewardsOverride?: number;
53 54 galleonOfGhouls?: number;
Modified src/services/worldStateService.ts +31 -0
@@ -2504,6 +2504,37 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
2504 2504 BonusReward: { items: ["/Lotus/StoreItems/Upgrades/Skins/Clan/BountyHunterBadgeItem"] }
2505 2505 });
2506 2506 }
2507
2508 const isOctober = date.getUTCMonth() == 9; // October = month index 9
2509 if (config.worldState?.naberusNightsOverride ?? isOctober) {
2510 worldState.Goals.push({
2511 _id: { $oid: "66fd602de1778d583419e8e7" },
2512 Activation: {
2513 $date: {
2514 $numberLong: config.worldState?.naberusNightsOverride
2515 ? "1727881200000"
2516 : Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), 1).toString()
2517 }
2518 },
2519 Expiry: {
2520 $date: {
2521 $numberLong: config.worldState?.naberusNightsOverride
2522 ? "2000000000000"
2523 : Date.UTC(date.getUTCFullYear(), date.getUTCMonth() + 1, 1).toString()
2524 }
2525 },
2526 Count: 0,
2527 Goal: 0,
2528 Success: 0,
2529 Personal: true,
2530 Desc: "/Lotus/Language/Events/HalloweenNaberusName",
2531 ToolTip: "/Lotus/Language/Events/HalloweenNaberusDesc",
2532 Icon: "/Lotus/Interface/Icons/JackOLanternColour.png",
2533 Tag: "DeimosHalloween",
2534 Node: "DeimosHub"
2535 });
2536 }
2537
2507 2538 if (config.worldState?.bellyOfTheBeast) {
2508 2539 worldState.Goals.push({
2509 2540 _id: { $oid: "67a5035c2a198564d62e165e" },
Modified static/webui/index.html +8 -0
@@ -1207,6 +1207,14 @@
1207 1207 </select>
1208 1208 </div>
1209 1209 </div>
1210 <div class="form-group mt-2">
1211 <label class="form-label" for="worldState.naberusNightsOverride" data-loc="worldState_naberusNights"></label>
1212 <select class="form-control" id="worldState.naberusNightsOverride" data-default="null">
1213 <option value="null" data-loc="normal"></option>
1214 <option value="true" data-loc="enabled"></option>
1215 <option value="false" data-loc="disabled"></option>
1216 </select>
1217 </div>
1210 1218 <div class="form-group mt-2 d-flex gap-2">
1211 1219 <div class="flex-fill">
1212 1220 <label class="form-label" for="worldState.proxyRebellion" data-loc="worldState_proxyRebellion"></label>
Modified static/webui/translations/de.js +1 -0
@@ -284,6 +284,7 @@ dict = {
284 284 worldState_hallowedFlame: `Geweihte Flamme`,
285 285 worldState_hallowedNightmares: `Geweihte Albträume`,
286 286 worldState_hallowedNightmaresRewards: `[UNTRANSLATED] Hallowed Nightmares Rewards`,
287 worldState_naberusNights: `[UNTRANSLATED] Nights of Naberus`,
287 288 worldState_proxyRebellion: `Proxy-Rebellion`,
288 289 worldState_proxyRebellionRewards: `[UNTRANSLATED] Proxy Rebellion Rewards`,
289 290 worldState_bellyOfTheBeast: `Das Innere der Bestie`,
Modified static/webui/translations/en.js +1 -0
@@ -283,6 +283,7 @@ dict = {
283 283 worldState_hallowedFlame: `Hallowed Flame`,
284 284 worldState_hallowedNightmares: `Hallowed Nightmares`,
285 285 worldState_hallowedNightmaresRewards: `Hallowed Nightmares Rewards`,
286 worldState_naberusNights: `Nights of Naberus`,
286 287 worldState_proxyRebellion: `Proxy Rebellion`,
287 288 worldState_proxyRebellionRewards: `Proxy Rebellion Rewards`,
288 289 worldState_bellyOfTheBeast: `Belly of the Beast`,
Modified static/webui/translations/es.js +1 -0
@@ -284,6 +284,7 @@ dict = {
284 284 worldState_hallowedFlame: `Llama Sagrada`,
285 285 worldState_hallowedNightmares: `Pesadillas Sagradas`,
286 286 worldState_hallowedNightmaresRewards: `Recompensas de Pesadillas Sagradas`,
287 worldState_naberusNights: `Noches de Naberus`,
287 288 worldState_proxyRebellion: `Rebelión Proxy`,
288 289 worldState_proxyRebellionRewards: `Recompensas de Rebelión Proxy`,
289 290 worldState_bellyOfTheBeast: `Vientre de la Bestia`,
Modified static/webui/translations/fr.js +1 -0
@@ -284,6 +284,7 @@ dict = {
284 284 worldState_hallowedFlame: `Flamme Hantée`,
285 285 worldState_hallowedNightmares: `Cauchemars Hantés`,
286 286 worldState_hallowedNightmaresRewards: `Récompenses Flamme Hantée Cauchemar`,
287 worldState_naberusNights: `[UNTRANSLATED] Nights of Naberus`,
287 288 worldState_proxyRebellion: `Rébellion Proxy`,
288 289 worldState_proxyRebellionRewards: `Récompenses Rébellion Proxy`,
289 290 worldState_bellyOfTheBeast: `Ventre de la Bête`,
Modified static/webui/translations/ru.js +1 -0
@@ -284,6 +284,7 @@ dict = {
284 284 worldState_hallowedFlame: `Священное пламя`,
285 285 worldState_hallowedNightmares: `Священные кошмары`,
286 286 worldState_hallowedNightmaresRewards: `Награды Священных кошмаров`,
287 worldState_naberusNights: `[UNTRANSLATED] Nights of Naberus`,
287 288 worldState_proxyRebellion: `Восстание роботов`,
288 289 worldState_proxyRebellionRewards: `Награды Восстания роботов`,
289 290 worldState_bellyOfTheBeast: `Чрево зверя`,
Modified static/webui/translations/uk.js +1 -0
@@ -284,6 +284,7 @@ dict = {
284 284 worldState_hallowedFlame: `Священне полум'я`,
285 285 worldState_hallowedNightmares: `Священні жахіття`,
286 286 worldState_hallowedNightmaresRewards: `Нагороди Священних жахіть`,
287 worldState_naberusNights: `[UNTRANSLATED] Nights of Naberus`,
287 288 worldState_proxyRebellion: `Повстання роботів`,
288 289 worldState_proxyRebellionRewards: `Нагороди Повстання роботів`,
289 290 worldState_bellyOfTheBeast: `У лігві звіра`,
Modified static/webui/translations/zh.js +1 -0
@@ -284,6 +284,7 @@ dict = {
284 284 worldState_hallowedFlame: `万圣之焰`,
285 285 worldState_hallowedNightmares: `万圣噩梦`,
286 286 worldState_hallowedNightmaresRewards: `万圣噩梦奖励设置`,
287 worldState_naberusNights: `[UNTRANSLATED] Nights of Naberus`,
287 288 worldState_proxyRebellion: `机械叛乱`,
288 289 worldState_proxyRebellionRewards: `机械叛乱奖励设置`,
289 290 worldState_bellyOfTheBeast: `兽之腹`,