返回提交历史
Modified
src/controllers/api/inventoryController.ts
+7
-0
Modified
src/models/inventoryModels/inventoryModel.ts
+1
-0
Modified
src/types/inventoryTypes/inventoryTypes.ts
+1
-0
Modified
static/fixed_responses/allDialogue.json
+5
-0
Added
static/fixed_responses/allPopups.json
+27
-0
Modified
static/webui/index.html
+4
-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: skipAllPopups cheat & update skipAllDialogue (#3035)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3035 Reviewed-by: Sainan <63328889+sainan@users.noreply.github.com> Co-authored-by: Animan8000 <animan8000@noreply.localhost> Co-committed-by: Animan8000 <animan8000@noreply.localhost>
de77c061
代码差异
13 个文件
+52
-0
@@ -4,6 +4,7 @@ import type { TInventoryDatabaseDocument } from "../../models/inventoryModels/in
4
4
import { Inventory } from "../../models/inventoryModels/inventoryModel.ts";
5
5
import { config } from "../../services/configService.ts";
6
6
import allDialogue from "../../../static/fixed_responses/allDialogue.json" with { type: "json" };
7
import allPopups from "../../../static/fixed_responses/allPopups.json" with { type: "json" };
7
8
import type { ILoadoutDatabase } from "../../types/saveLoadoutTypes.ts";
8
9
import type { IInventoryClient, IShipInventory } from "../../types/inventoryTypes/inventoryTypes.ts";
9
10
import { equipmentKeys } from "../../types/inventoryTypes/inventoryTypes.ts";
@@ -326,6 +327,12 @@ export const getInventoryResponse = async (
326
327
}
327
328
}
328
329
330
if (inventory.skipAllPopups) {
331
for (const str of allPopups) {
332
addString(inventoryResponse.NodeIntrosCompleted, str);
333
}
334
}
335
329
336
if (config.worldState?.baroTennoConRelay) {
330
337
[
331
338
"/Lotus/Types/Items/Events/TennoConRelay2022EarlyAccess",
@@ -1448,6 +1448,7 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
1448
1448
1449
1449
// SNS account cheats
1450
1450
skipAllDialogue: Boolean,
1451
skipAllPopups: Boolean,
1451
1452
dontSubtractPurchaseCreditCost: Boolean,
1452
1453
dontSubtractPurchasePlatinumCost: Boolean,
1453
1454
dontSubtractPurchaseItemCost: Boolean,
@@ -23,6 +23,7 @@ export type InventoryDatabaseEquipment = {
23
23
// Fields specific to SNS
24
24
export interface IAccountCheats {
25
25
skipAllDialogue?: boolean;
26
skipAllPopups?: boolean;
26
27
dontSubtractPurchaseCreditCost?: boolean;
27
28
dontSubtractPurchasePlatinumCost?: boolean;
28
29
dontSubtractPurchaseItemCost?: boolean;
@@ -1,4 +1,6 @@
1
1
[
2
"ArcaneWallConsole",
3
"CetusHub4",
2
4
"SolarisUnitedHub1",
3
5
"/Lotus/Language/SolarisVenus/FishmongerName",
4
6
"/Lotus/Language/SolarisVenus/ProspectorName",
@@ -12,6 +14,7 @@
12
14
"SaturnWolf3",
13
15
"SaturnWolf4",
14
16
"SaturnWolf5",
17
"SyndicateFirstPledge",
15
18
"ConclaveSyndicate",
16
19
"ArbitersSyndicate",
17
20
"LibrarySyndicate",
@@ -117,6 +120,7 @@
117
120
"/Lotus/Language/EntratiLab/EntratiGeneral/Fibonacci",
118
121
"/Lotus/Language/EntratiLab/EntratiGeneral/BirdThree",
119
122
"/Lotus/Language/Zariman/Quinn",
123
"/Lotus/Language/EntratiLab/EntratiGeneral/Tagfer",
120
124
"/Lotus/Language/EntratiLab/EntratiGeneral/TagferFirstRank1",
121
125
"VoidVaultIntro",
122
126
"PurchasePlatformLockedNotificationSeen",
@@ -137,6 +141,7 @@
137
141
"EntratiLabConquestHardModeUnlocked",
138
142
"/Lotus/Language/Npcs/KonzuPostNewWar",
139
143
"/Lotus/Language/SolarisVenus/EudicoPostNewWar",
144
"/Lotus/Language/FiveFates/KoumeiStatueHubName",
140
145
"/Lotus/Language/NokkoColony/NokkoVendorName",
141
146
"NokkoVisions_FirstVisit"
142
147
]
@@ -0,0 +1,27 @@
1
[
2
"RailjackPlexusTutorial",
3
"RailjackIntrinsicsTutorial",
4
"RailjackDryDockTutorial",
5
"RailjackStarchartTutorial",
6
"NPE_poponce_ayatans",
7
"NPE_poponce_sellmodinfo",
8
"NPE_poponce_transmuteinfo",
9
"MarketOpened",
10
"PrimeTokensTutorial",
11
"WelcomeScreen_Undermind",
12
"WelcomeScreen_Jade",
13
"WelcomeScreen_Isleweaver",
14
"WelcomeScreen_Techrot",
15
"WelcomeScreen_1999",
16
"WelcomeScreen_Koumei",
17
"WelcomeScreen_Dante",
18
"WelcomeScreen_Whispers",
19
"WelcomeScreen_Dagath",
20
"WelcomeScreen_Kullervo",
21
"EpisodeIntro_RadioLegionIntermission14Syndicate",
22
"EpisodeIntro_RadioLegionIntermission13Syndicate",
23
"EpisodeIntro_RadioLegionIntermission12Syndicate",
24
"EpisodeIntro_RadioLegionIntermission11Syndicate",
25
"EpisodeIntro_RadioLegionIntermission10Syndicate",
26
"EpisodeIntro_RadioLegionIntermission9Syndicate"
27
]
@@ -960,6 +960,10 @@
960
960
<input class="form-check-input" type="checkbox" id="skipAllDialogue" />
961
961
<label class="form-check-label" for="skipAllDialogue" data-loc="cheats_skipAllDialogue"></label>
962
962
</div>
963
<div class="form-check">
964
<input class="form-check-input" type="checkbox" id="skipAllPopups" />
965
<label class="form-check-label" for="skipAllPopups" data-loc="cheats_skipAllPopups"></label>
966
</div>
963
967
<div class="form-check">
964
968
<input class="form-check-input" type="checkbox" id="dontSubtractPurchaseCreditCost" />
965
969
<label class="form-check-label" for="dontSubtractPurchaseCreditCost" data-loc="cheats_dontSubtractPurchaseCreditCost"></label>
@@ -212,6 +212,7 @@ dict = {
212
212
cheats_server: `Server`,
213
213
cheats_skipTutorial: `Tutorial überspringen`,
214
214
cheats_skipAllDialogue: `Alle Dialoge überspringen`,
215
cheats_skipAllPopups: `Alle Popups überspringen`,
215
216
cheats_unlockAllScans: `Alle Scans freischalten`,
216
217
cheats_unlockSuccRelog: `Erfolgreich. Bitte beachte, dass du dich neu anmelden musst, damit der Client dies aktualisiert.`,
217
218
cheats_unlockAllMissions: `Alle Missionen freischalten`,
@@ -211,6 +211,7 @@ dict = {
211
211
cheats_server: `Server`,
212
212
cheats_skipTutorial: `Skip Tutorial`,
213
213
cheats_skipAllDialogue: `Skip All Dialogue`,
214
cheats_skipAllPopups: `Skip All Popups`,
214
215
cheats_unlockAllScans: `Unlock All Scans`,
215
216
cheats_unlockSuccRelog: `Success. Please note that you'll need to relog for the client to refresh this.`,
216
217
cheats_unlockAllMissions: `Unlock All Missions`,
@@ -212,6 +212,7 @@ dict = {
212
212
cheats_server: `Servidor`,
213
213
cheats_skipTutorial: `Omitir tutorial`,
214
214
cheats_skipAllDialogue: `Omitir todos los diálogos`,
215
cheats_skipAllPopups: `[UNTRANSLATED] Skip All Popups`,
215
216
cheats_unlockAllScans: `Desbloquear todos los escaneos`,
216
217
cheats_unlockSuccRelog: `Éxito. Ten en cuenta que deberás volver a iniciar sesión para que el cliente se actualice.`,
217
218
cheats_unlockAllMissions: `Desbloquear todas las misiones`,
@@ -212,6 +212,7 @@ dict = {
212
212
cheats_server: `Serveur`,
213
213
cheats_skipTutorial: `Passer le tutoriel`,
214
214
cheats_skipAllDialogue: `Passer les dialogues`,
215
cheats_skipAllPopups: `[UNTRANSLATED] Skip All Popups`,
215
216
cheats_unlockAllScans: `Débloquer tous les scans`,
216
217
cheats_unlockSuccRelog: `Succès. Une reconnexion est requise pour appliquer les changements.`,
217
218
cheats_unlockAllMissions: `Débloquer toutes les missions`,
@@ -212,6 +212,7 @@ dict = {
212
212
cheats_server: `Сервер`,
213
213
cheats_skipTutorial: `Пропустить обучение`,
214
214
cheats_skipAllDialogue: `Пропустить все диалоги`,
215
cheats_skipAllPopups: `[UNTRANSLATED] Skip All Popups`,
215
216
cheats_unlockAllScans: `Разблокировать все сканирования`,
216
217
cheats_unlockSuccRelog: `Успех. Вам необходимо повторно войти в игру, чтобы клиент обновил эту информацию.`,
217
218
cheats_unlockAllMissions: `Разблокировать все миссии`,
@@ -212,6 +212,7 @@ dict = {
212
212
cheats_server: `Сервер`,
213
213
cheats_skipTutorial: `Пропустити навчання`,
214
214
cheats_skipAllDialogue: `Пропустити всі діалоги`,
215
cheats_skipAllPopups: `[UNTRANSLATED] Skip All Popups`,
215
216
cheats_unlockAllScans: `Розблокувати всі сканування`,
216
217
cheats_unlockSuccRelog: `Успіх. Вам потрібно буде повторно увійти в гру, щоб клієнт оновив цю інформацію.`,
217
218
cheats_unlockAllMissions: `Розблокувати всі місії`,