返回提交历史
Modified
config-vanilla.json
+1
-0
Modified
src/services/configService.ts
+1
-0
Modified
src/services/worldStateService.ts
+31
-0
Modified
static/webui/index.html
+8
-0
Modified
static/webui/translations/de.js
+1
-0
Modified
static/webui/translations/en.js
+1
-0
Modified
static/webui/translations/es.js
+1
-0
Modified
static/webui/translations/fr.js
+1
-0
Modified
static/webui/translations/ru.js
+1
-0
Modified
static/webui/translations/uk.js
+1
-0
Modified
static/webui/translations/zh.js
+1
-0
XFEstudio/SpaceNinjaServer
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
代码差异
11 个文件
+48
-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,
@@ -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;
@@ -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" },
@@ -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>
@@ -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`,
@@ -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`,
@@ -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`,
@@ -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`,
@@ -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: `Чрево зверя`,
@@ -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: `У лігві звіра`,
@@ -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: `兽之腹`,