返回提交历史
Modified
config.json.example
+1
-0
Modified
src/controllers/api/loginRewardsController.ts
+2
-1
Modified
src/services/configService.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/zh.js
+1
-0
XFEstudio/XFESpaceNinjaServer
feat: disableDailyTribute config (#2338)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2338 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
5a7caa5b
代码差异
10 个文件
+14
-1
@@ -58,6 +58,7 @@
58
58
"fastClanAscension": false,
59
59
"missionsCanGiveAllRelics": false,
60
60
"unlockAllSimarisResearchEntries": false,
61
"disableDailyTribute": false,
61
62
"spoofMasteryRank": -1,
62
63
"nightwaveStandingMultiplier": 1,
63
64
"unfaithfulBugFixes": {
@@ -8,6 +8,7 @@ import {
8
8
setAccountGotLoginRewardToday
9
9
} from "@/src/services/loginRewardService";
10
10
import { getInventory } from "@/src/services/inventoryService";
11
import { config } from "@/src/services/configService";
11
12
12
13
export const loginRewardsController: RequestHandler = async (req, res) => {
13
14
const account = await getAccountForRequest(req);
@@ -15,7 +16,7 @@ export const loginRewardsController: RequestHandler = async (req, res) => {
15
16
const isMilestoneDay = account.LoginDays == 5 || account.LoginDays % 50 == 0;
16
17
const nextMilestoneDay = account.LoginDays < 5 ? 5 : (Math.trunc(account.LoginDays / 50) + 1) * 50;
17
18
18
if (today == account.LastLoginRewardDate) {
19
if (today == account.LastLoginRewardDate || config.disableDailyTribute) {
19
20
res.json({
20
21
DailyTributeInfo: {
21
22
IsMilestoneDay: isMilestoneDay,
@@ -65,6 +65,7 @@ export interface IConfig {
65
65
fastClanAscension?: boolean;
66
66
missionsCanGiveAllRelics?: boolean;
67
67
unlockAllSimarisResearchEntries?: boolean;
68
disableDailyTribute?: boolean;
68
69
spoofMasteryRank?: number;
69
70
nightwaveStandingMultiplier?: number;
70
71
unfaithfulBugFixes?: {
@@ -768,6 +768,10 @@
768
768
<input class="form-check-input" type="checkbox" id="unlockAllSimarisResearchEntries" />
769
769
<label class="form-check-label" for="unlockAllSimarisResearchEntries" data-loc="cheats_unlockAllSimarisResearchEntries"></label>
770
770
</div>
771
<div class="form-check">
772
<input class="form-check-input" type="checkbox" id="disableDailyTribute" />
773
<label class="form-check-label" for="disableDailyTribute" data-loc="cheats_disableDailyTribute"></label>
774
</div>
771
775
<form class="form-group mt-2" onsubmit="doSaveConfigInt('spoofMasteryRank'); return false;">
772
776
<label class="form-label" for="spoofMasteryRank" data-loc="cheats_spoofMasteryRank"></label>
773
777
<div class="input-group">
@@ -175,6 +175,7 @@ dict = {
175
175
cheats_fastClanAscension: `Schneller Clan-Aufstieg`,
176
176
cheats_missionsCanGiveAllRelics: `[UNTRANSLATED] Missions Can Give All Relics`,
177
177
cheats_unlockAllSimarisResearchEntries: `[UNTRANSLATED] Unlock All Simaris Research Entries`,
178
cheats_disableDailyTribute: `[UNTRANSLATED] Disable Daily Tribute`,
178
179
cheats_spoofMasteryRank: `Gefälschter Meisterschaftsrang (-1 zum deaktivieren)`,
179
180
cheats_nightwaveStandingMultiplier: `[UNTRANSLATED] Nightwave Standing Multiplier`,
180
181
cheats_save: `[UNTRANSLATED] Save`,
@@ -174,6 +174,7 @@ dict = {
174
174
cheats_fastClanAscension: `Fast Clan Ascension`,
175
175
cheats_missionsCanGiveAllRelics: `Missions Can Give All Relics`,
176
176
cheats_unlockAllSimarisResearchEntries: `Unlock All Simaris Research Entries`,
177
cheats_disableDailyTribute: `Disable Daily Tribute`,
177
178
cheats_spoofMasteryRank: `Spoofed Mastery Rank (-1 to disable)`,
178
179
cheats_nightwaveStandingMultiplier: `Nightwave Standing Multiplier`,
179
180
cheats_save: `Save`,
@@ -175,6 +175,7 @@ dict = {
175
175
cheats_fastClanAscension: `Ascenso rápido del clan`,
176
176
cheats_missionsCanGiveAllRelics: `Las misiones pueden otorgar todas las reliquias`,
177
177
cheats_unlockAllSimarisResearchEntries: `Desbloquear todas las entradas de investigación de Simaris`,
178
cheats_disableDailyTribute: `[UNTRANSLATED] Disable Daily Tribute`,
178
179
cheats_spoofMasteryRank: `Rango de maestría simulado (-1 para desactivar)`,
179
180
cheats_nightwaveStandingMultiplier: `Multiplicador de Reputación de Onda Nocturna`,
180
181
cheats_save: `Guardar`,
@@ -175,6 +175,7 @@ dict = {
175
175
cheats_fastClanAscension: `Ascension de clan rapide`,
176
176
cheats_missionsCanGiveAllRelics: `Les missions donnent toutes les reliques`,
177
177
cheats_unlockAllSimarisResearchEntries: `Débloquer toute les recherches chez Simaris`,
178
cheats_disableDailyTribute: `[UNTRANSLATED] Disable Daily Tribute`,
178
179
cheats_spoofMasteryRank: `Rang de maîtrise personnalisé (-1 pour désactiver)`,
179
180
cheats_nightwaveStandingMultiplier: `Multiplicateur de réputation d'Ondes Nocturnes`,
180
181
cheats_save: `Sauvegarder`,
@@ -175,6 +175,7 @@ dict = {
175
175
cheats_fastClanAscension: `Мгновенное Вознесение Клана`,
176
176
cheats_missionsCanGiveAllRelics: `[UNTRANSLATED] Missions Can Give All Relics`,
177
177
cheats_unlockAllSimarisResearchEntries: `[UNTRANSLATED] Unlock All Simaris Research Entries`,
178
cheats_disableDailyTribute: `[UNTRANSLATED] Disable Daily Tribute`,
178
179
cheats_spoofMasteryRank: `Подделанный ранг мастерства (-1 для отключения)`,
179
180
cheats_nightwaveStandingMultiplier: `[UNTRANSLATED] Nightwave Standing Multiplier`,
180
181
cheats_save: `[UNTRANSLATED] Save`,
@@ -175,6 +175,7 @@ dict = {
175
175
cheats_fastClanAscension: `快速升级氏族`,
176
176
cheats_missionsCanGiveAllRelics: `任务可获取所有遗物`,
177
177
cheats_unlockAllSimarisResearchEntries: `解锁所有Simaris研究条目`,
178
cheats_disableDailyTribute: `[UNTRANSLATED] Disable Daily Tribute`,
178
179
cheats_spoofMasteryRank: `伪造精通段位(-1为禁用)`,
179
180
cheats_nightwaveStandingMultiplier: `午夜电波声望倍率`,
180
181
cheats_save: `保存`,