返回提交历史
Modified
config.json.example
+1
-0
Modified
src/controllers/api/inventoryController.ts
+4
-0
Modified
src/services/configService.ts
+1
-0
Modified
src/services/inventoryService.ts
+3
-1
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/zh.js
+1
-0
XFEstudio/XFESpaceNinjaServer
feat: noDailyFocusLimit cheat (#1661)
Closes #1641 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1661 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
3d1b009b
代码差异
11 个文件
+19
-1
@@ -29,6 +29,7 @@
29
29
"unlockExilusEverywhere": false,
30
30
"unlockArcanesEverywhere": false,
31
31
"noDailyStandingLimits": false,
32
"noDailyFocusLimit": false,
32
33
"noArgonCrystalDecay": false,
33
34
"noMasteryRankUpCooldown": false,
34
35
"noVendorPurchaseLimits": true,
@@ -258,6 +258,10 @@ export const getInventoryResponse = async (
258
258
}
259
259
}
260
260
261
if (config.noDailyFocusLimit) {
262
inventoryResponse.DailyFocus = Math.max(999_999, 250000 + inventoryResponse.PlayerLevel * 5000);
263
}
264
261
265
if (inventoryResponse.InfestedFoundry) {
262
266
applyCheatsToInfestedFoundry(inventoryResponse.InfestedFoundry);
263
267
}
@@ -35,6 +35,7 @@ interface IConfig {
35
35
unlockExilusEverywhere?: boolean;
36
36
unlockArcanesEverywhere?: boolean;
37
37
noDailyStandingLimits?: boolean;
38
noDailyFocusLimit?: boolean;
38
39
noArgonCrystalDecay?: boolean;
39
40
noMasteryRankUpCooldown?: boolean;
40
41
noVendorPurchaseLimits?: boolean;
@@ -1372,7 +1372,9 @@ export const addFocusXpIncreases = (inventory: TInventoryDatabaseDocument, focus
1372
1372
inventory.FocusXP.AP_POWER += focusXpPlus[FocusType.AP_POWER];
1373
1373
inventory.FocusXP.AP_WARD += focusXpPlus[FocusType.AP_WARD];
1374
1374
1375
inventory.DailyFocus -= focusXpPlus.reduce((a, b) => a + b, 0);
1375
if (!config.noDailyFocusLimit) {
1376
inventory.DailyFocus -= focusXpPlus.reduce((a, b) => a + b, 0);
1377
}
1376
1378
};
1377
1379
1378
1380
export const addLoreFragmentScans = (inventory: TInventoryDatabaseDocument, arr: ILoreFragmentScan[]): void => {
@@ -595,6 +595,10 @@
595
595
<input class="form-check-input" type="checkbox" id="noDailyStandingLimits" />
596
596
<label class="form-check-label" for="noDailyStandingLimits" data-loc="cheats_noDailyStandingLimits"></label>
597
597
</div>
598
<div class="form-check">
599
<input class="form-check-input" type="checkbox" id="noDailyFocusLimit" />
600
<label class="form-check-label" for="noDailyFocusLimit" data-loc="cheats_noDailyFocusLimit"></label>
601
</div>
598
602
<div class="form-check">
599
603
<input class="form-check-input" type="checkbox" id="noArgonCrystalDecay" />
600
604
<label class="form-check-label" for="noArgonCrystalDecay" data-loc="cheats_noArgonCrystalDecay"></label>
@@ -134,6 +134,7 @@ dict = {
134
134
cheats_unlockExilusEverywhere: `Exilus-Adapter überall`,
135
135
cheats_unlockArcanesEverywhere: `Arkana-Adapter überall`,
136
136
cheats_noDailyStandingLimits: `Kein tägliches Ansehenslimit`,
137
cheats_noDailyFocusLimit: `[UNTRANSLATED] No Daily Focus Limits`,
137
138
cheats_noArgonCrystalDecay: `Argon-Kristalle verschwinden niemals`,
138
139
cheats_noMasteryRankUpCooldown: `Keine Wartezeit beim Meisterschaftsrangaufstieg`,
139
140
cheats_noVendorPurchaseLimits: `Keine Kaufbeschränkungen bei Händlern`,
@@ -133,6 +133,7 @@ dict = {
133
133
cheats_unlockExilusEverywhere: `Exilus Adapters Everywhere`,
134
134
cheats_unlockArcanesEverywhere: `Arcane Adapters Everywhere`,
135
135
cheats_noDailyStandingLimits: `No Daily Standing Limits`,
136
cheats_noDailyFocusLimit: `No Daily Focus Limit`,
136
137
cheats_noArgonCrystalDecay: `No Argon Crystal Decay`,
137
138
cheats_noMasteryRankUpCooldown: `No Mastery Rank Up Cooldown`,
138
139
cheats_noVendorPurchaseLimits: `No Vendor Purchase Limits`,
@@ -134,6 +134,7 @@ dict = {
134
134
cheats_unlockExilusEverywhere: `Adaptadores Exilus en todas partes`,
135
135
cheats_unlockArcanesEverywhere: `Adaptadores de Arcanos en todas partes`,
136
136
cheats_noDailyStandingLimits: `Sin límite diario de reputación`,
137
cheats_noDailyFocusLimit: `[UNTRANSLATED] No Daily Focus Limits`,
137
138
cheats_noArgonCrystalDecay: `Sin descomposición de cristal de Argón`,
138
139
cheats_noMasteryRankUpCooldown: `Sin tiempo de espera para rango de maestría`,
139
140
cheats_noVendorPurchaseLimits: `Sin límite de compras de vendedores`,
@@ -134,6 +134,7 @@ dict = {
134
134
cheats_unlockExilusEverywhere: `Adaptateurs Exilus partout`,
135
135
cheats_unlockArcanesEverywhere: `Adaptateur d'Arcanes partout`,
136
136
cheats_noDailyStandingLimits: `Pas de limite de réputation journalière`,
137
cheats_noDailyFocusLimit: `[UNTRANSLATED] No Daily Focus Limits`,
137
138
cheats_noArgonCrystalDecay: `[UNTRANSLATED] No Argon Crystal Decay`,
138
139
cheats_noMasteryRankUpCooldown: `[UNTRANSLATED] No Mastery Rank Up Cooldown`,
139
140
cheats_noVendorPurchaseLimits: `[UNTRANSLATED] No Vendor Purchase Limits`,
@@ -134,6 +134,7 @@ dict = {
134
134
cheats_unlockExilusEverywhere: `Адаптеры Эксилус везде`,
135
135
cheats_unlockArcanesEverywhere: `Адаптеры для мистификаторов везде`,
136
136
cheats_noDailyStandingLimits: `Без ежедневных ограничений репутации`,
137
cheats_noDailyFocusLimit: `[UNTRANSLATED] No Daily Focus Limits`,
137
138
cheats_noArgonCrystalDecay: `Без распада аргоновых кристаллов`,
138
139
cheats_noMasteryRankUpCooldown: `Повышение ранга мастерства без кулдауна`,
139
140
cheats_noVendorPurchaseLimits: `Отсутствие лимитов на покупки у вендоров`,
@@ -134,6 +134,7 @@ dict = {
134
134
cheats_unlockExilusEverywhere: `全物品自带适配器`,
135
135
cheats_unlockArcanesEverywhere: `全物品自带赋能适配器`,
136
136
cheats_noDailyStandingLimits: `无每日声望限制`,
137
cheats_noDailyFocusLimit: `[UNTRANSLATED] No Daily Focus Limits`,
137
138
cheats_noArgonCrystalDecay: `[UNTRANSLATED] No Argon Crystal Decay`,
138
139
cheats_noMasteryRankUpCooldown: `[UNTRANSLATED] No Mastery Rank Up Cooldown`,
139
140
cheats_noVendorPurchaseLimits: `[UNTRANSLATED] No Vendor Purchase Limits`,