返回提交历史
Modified
config.json.example
+1
-0
Modified
src/services/configService.ts
+1
-0
Modified
src/services/worldStateService.ts
+26
-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/SpaceNinjaServer
feat: worldState.tennoLiveRelay config (#2568)
Re #2531 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2568 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
0a28eab6
代码差异
10 个文件
+38
-0
@@ -70,6 +70,7 @@
70
70
"creditBoost": false,
71
71
"affinityBoost": false,
72
72
"resourceBoost": false,
73
"tennoLiveRelay": false,
73
74
"starDays": true,
74
75
"galleonOfGhouls": 0,
75
76
"eidolonOverride": "",
@@ -81,6 +81,7 @@ export interface IConfig {
81
81
creditBoost?: boolean;
82
82
affinityBoost?: boolean;
83
83
resourceBoost?: boolean;
84
tennoLiveRelay?: boolean;
84
85
starDays?: boolean;
85
86
galleonOfGhouls?: number;
86
87
eidolonOverride?: string;
@@ -1375,6 +1375,32 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
1375
1375
worldState.PVPChallengeInstances = [];
1376
1376
}
1377
1377
1378
if (config.worldState?.tennoLiveRelay) {
1379
worldState.Goals.push({
1380
_id: {
1381
$oid: "687bf9400000000000000000"
1382
},
1383
Activation: {
1384
$date: {
1385
$numberLong: "1752955200000"
1386
}
1387
},
1388
Expiry: {
1389
$date: {
1390
$numberLong: "2000000000000"
1391
}
1392
},
1393
Count: 0,
1394
Goal: 0,
1395
Success: 0,
1396
Personal: true,
1397
Desc: "/Lotus/Language/Locations/RelayStationTennoConB",
1398
ToolTip: "/Lotus/Language/Locations/RelayStationTennoConDescB",
1399
Icon: "/Lotus/Interface/Icons/Categories/IconTennoLive.png",
1400
Tag: "TennoConRelayB",
1401
Node: "TennoConBHUB6"
1402
});
1403
}
1378
1404
if (config.worldState?.starDays) {
1379
1405
worldState.Goals.push({
1380
1406
_id: { $oid: "67a4dcce2a198564d62e1647" },
@@ -925,6 +925,10 @@
925
925
<input class="form-check-input" type="checkbox" id="worldState.resourceBoost" />
926
926
<label class="form-check-label" for="worldState.resourceBoost" data-loc="worldState_resourceBoost"></label>
927
927
</div>
928
<div class="form-check">
929
<input class="form-check-input" type="checkbox" id="worldState.tennoLiveRelay" />
930
<label class="form-check-label" for="worldState.tennoLiveRelay" data-loc="worldState_tennoLiveRelay"></label>
931
</div>
928
932
<div class="form-check">
929
933
<input class="form-check-input" type="checkbox" id="worldState.starDays" />
930
934
<label class="form-check-label" for="worldState.starDays" data-loc="worldState_starDays"></label>
@@ -242,6 +242,7 @@ dict = {
242
242
worldState_creditBoost: `Event Booster: Credit`,
243
243
worldState_affinityBoost: `Event Booster: Erfahrung`,
244
244
worldState_resourceBoost: `Event Booster: Ressourcen`,
245
worldState_tennoLiveRelay: `[UNTRANSLATED] TennoLive Relay`,
245
246
worldState_starDays: `Sternen-Tage`,
246
247
worldState_galleonOfGhouls: `Galeone der Ghule`,
247
248
disabled: `Deaktiviert`,
@@ -241,6 +241,7 @@ dict = {
241
241
worldState_creditBoost: `Credit Boost`,
242
242
worldState_affinityBoost: `Affinity Boost`,
243
243
worldState_resourceBoost: `Resource Boost`,
244
worldState_tennoLiveRelay: `TennoLive Relay`,
244
245
worldState_starDays: `Star Days`,
245
246
worldState_galleonOfGhouls: `Galleon of Ghouls`,
246
247
disabled: `Disabled`,
@@ -242,6 +242,7 @@ dict = {
242
242
worldState_creditBoost: `Potenciador de Créditos`,
243
243
worldState_affinityBoost: `Potenciador de Afinidad`,
244
244
worldState_resourceBoost: `Potenciador de Recursos`,
245
worldState_tennoLiveRelay: `[UNTRANSLATED] TennoLive Relay`,
245
246
worldState_starDays: `Días estelares`,
246
247
worldState_galleonOfGhouls: `Galeón de Gules`,
247
248
disabled: `Desactivado`,
@@ -242,6 +242,7 @@ dict = {
242
242
worldState_creditBoost: `Booster de Crédit`,
243
243
worldState_affinityBoost: `Booster d'Affinité`,
244
244
worldState_resourceBoost: `Booster de Ressource`,
245
worldState_tennoLiveRelay: `[UNTRANSLATED] TennoLive Relay`,
245
246
worldState_starDays: `Jours Stellaires`,
246
247
worldState_galleonOfGhouls: `Galion des Goules`,
247
248
disabled: `Désactivé`,
@@ -242,6 +242,7 @@ dict = {
242
242
worldState_creditBoost: `[UNTRANSLATED] Credit Boost`,
243
243
worldState_affinityBoost: `[UNTRANSLATED] Affinity Boost`,
244
244
worldState_resourceBoost: `[UNTRANSLATED] Resource Boost`,
245
worldState_tennoLiveRelay: `[UNTRANSLATED] TennoLive Relay`,
245
246
worldState_starDays: `[UNTRANSLATED] Star Days`,
246
247
worldState_galleonOfGhouls: `[UNTRANSLATED] Galleon of Ghouls`,
247
248
disabled: `[UNTRANSLATED] Disabled`,
@@ -242,6 +242,7 @@ dict = {
242
242
worldState_creditBoost: `现金加成`,
243
243
worldState_affinityBoost: `经验加成`,
244
244
worldState_resourceBoost: `资源加成`,
245
worldState_tennoLiveRelay: `[UNTRANSLATED] TennoLive Relay`,
245
246
worldState_starDays: `活动:星日`,
246
247
worldState_galleonOfGhouls: `战术警报:尸鬼的帆船战舰`,
247
248
disabled: `关闭/取消配置`,