返回提交历史
Modified
scripts/update-translations.cjs
+1
-1
Modified
src/models/inventoryModels/inventoryModel.ts
+1
-0
Modified
src/services/missionInventoryUpdateService.ts
+5
-0
Modified
src/types/inventoryTypes/inventoryTypes.ts
+1
-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/XFESpaceNinjaServer
feat: finishInvasionsInOneMission (#2715)
#2646 Co-authored-by: AlexisinGit <136088944+AlexisinGit@users.noreply.github.com> Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2715 Reviewed-by: Sainan <63328889+sainan@users.noreply.github.com> Co-authored-by: AlexisinGit <alexisingit@noreply.localhost> Co-committed-by: AlexisinGit <alexisingit@noreply.localhost>
9add016d
代码差异
12 个文件
+19
-1
@@ -31,7 +31,7 @@ fs.readdirSync("../static/webui/translations").forEach(file => {
31
31
const strings = extractStrings(line);
32
32
if (Object.keys(strings).length > 0) {
33
33
Object.entries(strings).forEach(([key, value]) => {
34
if (targetStrings.hasOwnProperty(key) && !targetStrings[key].startsWith("[UNTRANSLATED] ")) {
34
if (targetStrings.hasOwnProperty(key) && !targetStrings[key].startsWith("[UNTRANSLATED]")) {
35
35
fs.writeSync(fileHandle, ` ${key}: \`${targetStrings[key]}\`,\n`);
36
36
} else {
37
37
fs.writeSync(fileHandle, ` ${key}: \`[UNTRANSLATED] ${value}\`,\n`);
@@ -1435,6 +1435,7 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
1435
1435
dontSubtractPurchaseStandingCost: Boolean,
1436
1436
dontSubtractVoidTraces: Boolean,
1437
1437
dontSubtractConsumables: Boolean,
1438
finishInvasionsInOneMission: Boolean,
1438
1439
infiniteCredits: Boolean,
1439
1440
infinitePlatinum: Boolean,
1440
1441
infiniteEndo: Boolean,
@@ -775,6 +775,11 @@ export const addMissionInventoryUpdates = async (
775
775
}
776
776
case "InvasionProgress": {
777
777
for (const clientProgress of value) {
778
if (inventory.finishInvasionsInOneMission) {
779
clientProgress.Delta *= 3;
780
clientProgress.AttackerScore *= 3;
781
clientProgress.DefenderScore *= 3;
782
}
778
783
const dbProgress = inventory.QualifyingInvasions.find(x =>
779
784
x.invasionId.equals(clientProgress._id.$oid)
780
785
);
@@ -28,6 +28,7 @@ export interface IAccountCheats {
28
28
dontSubtractPurchaseStandingCost?: boolean;
29
29
dontSubtractVoidTraces?: boolean;
30
30
dontSubtractConsumables?: boolean;
31
finishInvasionsInOneMission?: boolean;
31
32
infiniteCredits?: boolean;
32
33
infinitePlatinum?: boolean;
33
34
infiniteEndo?: boolean;
@@ -783,6 +783,10 @@
783
783
<input class="form-check-input" type="checkbox" id="disableDailyTribute" />
784
784
<label class="form-check-label" for="disableDailyTribute" data-loc="cheats_disableDailyTribute"></label>
785
785
</div>
786
<div class="form-check">
787
<input class="form-check-input" type="checkbox" id="finishInvasionsInOneMission" />
788
<label class="form-check-label" for="finishInvasionsInOneMission" data-loc="cheats_finishInvasionsInOneMission"></label>
789
</div>
786
790
<div class="mt-2 mb-2 d-flex flex-wrap gap-2">
787
791
<button class="btn btn-primary" onclick="debounce(doUnlockAllMissions);" data-loc="cheats_unlockAllMissions"></button>
788
792
<button class="btn btn-primary" onclick="debounce(markAllAsRead);" data-loc="cheats_markAllAsRead"></button>
@@ -238,6 +238,7 @@ dict = {
238
238
cheats_changeSupportedSyndicate: `Unterstütztes Syndikat`,
239
239
cheats_changeButton: `Ändern`,
240
240
cheats_markAllAsRead: `Posteingang als gelesen markieren`,
241
cheats_finishInvasionsInOneMission: `[UNTRANSLATED] Finish Invasions in One Mission`,
241
242
242
243
worldState: `Weltstatus`,
243
244
worldState_creditBoost: `Event Booster: Credit`,
@@ -237,6 +237,7 @@ dict = {
237
237
cheats_changeSupportedSyndicate: `Supported syndicate`,
238
238
cheats_changeButton: `Change`,
239
239
cheats_markAllAsRead: `Mark Inbox As Read`,
240
cheats_finishInvasionsInOneMission: `Finish Invasions in One Mission`,
240
241
241
242
worldState: `World State`,
242
243
worldState_creditBoost: `Credit Boost`,
@@ -238,6 +238,7 @@ dict = {
238
238
cheats_changeSupportedSyndicate: `Sindicatos disponibles`,
239
239
cheats_changeButton: `Cambiar`,
240
240
cheats_markAllAsRead: `Marcar bandeja de entrada como leída`,
241
cheats_finishInvasionsInOneMission: `[UNTRANSLATED] Finish Invasions in One Mission`,
241
242
242
243
worldState: `Estado del mundo`,
243
244
worldState_creditBoost: `Potenciador de Créditos`,
@@ -238,6 +238,7 @@ dict = {
238
238
cheats_changeSupportedSyndicate: `Allégeance`,
239
239
cheats_changeButton: `Changer`,
240
240
cheats_markAllAsRead: `Marquer la boîte de réception comme lue`,
241
cheats_finishInvasionsInOneMission: `[UNTRANSLATED] Finish Invasions in One Mission`,
241
242
242
243
worldState: `Carte Solaire`,
243
244
worldState_creditBoost: `Booster de Crédit`,
@@ -238,6 +238,7 @@ dict = {
238
238
cheats_changeSupportedSyndicate: `Поддерживаемый синдикат`,
239
239
cheats_changeButton: `Изменить`,
240
240
cheats_markAllAsRead: `Пометить все входящие как прочитанные`,
241
cheats_finishInvasionsInOneMission: `[UNTRANSLATED] Finish Invasions in One Mission`,
241
242
242
243
worldState: `Состояние мира`,
243
244
worldState_creditBoost: `Глобальный бустер Кредитов`,
@@ -238,6 +238,7 @@ dict = {
238
238
cheats_changeSupportedSyndicate: `Підтримуваний синдикат`,
239
239
cheats_changeButton: `Змінити`,
240
240
cheats_markAllAsRead: `Помітити всі вхідні як прочитані`,
241
cheats_finishInvasionsInOneMission: `[UNTRANSLATED] Finish Invasions in One Mission`,
241
242
242
243
worldState: `Стан світу`,
243
244
worldState_creditBoost: `Глобальне посилення Кредитів`,
@@ -238,6 +238,7 @@ dict = {
238
238
cheats_changeSupportedSyndicate: `支持的集团`,
239
239
cheats_changeButton: `更改`,
240
240
cheats_markAllAsRead: `收件箱全部标记为已读`,
241
cheats_finishInvasionsInOneMission: `一场任务完成整场入侵`,
241
242
242
243
worldState: `世界状态配置`,
243
244
worldState_creditBoost: `现金加成`,