返回提交历史
Modified
config-vanilla.json
+1
-0
Modified
src/models/inventoryModels/inventoryModel.ts
+0
-1
Modified
src/services/configService.ts
+2
-2
Modified
src/services/guildService.ts
+1
-1
Modified
src/types/inventoryTypes/inventoryTypes.ts
+0
-1
Modified
static/webui/index.html
+4
-4
XFEstudio/XFESpaceNinjaServer
chore: move skipClanKeyCrafting back to config.json (#2690)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2690 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
28b8fb3e
代码差异
6 个文件
+8
-9
@@ -22,6 +22,7 @@
22
22
"baroAlwaysAvailable": false,
23
23
"baroFullyStocked": false,
24
24
"unlockAllProfitTakerStages": false,
25
"skipClanKeyCrafting": false,
25
26
"noDojoRoomBuildStage": false,
26
27
"noDecoBuildStage": false,
27
28
"fastDojoRoomDestruction": false,
@@ -1451,7 +1451,6 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
1451
1451
noVendorPurchaseLimits: Boolean,
1452
1452
noDeathMarks: Boolean,
1453
1453
noKimCooldowns: Boolean,
1454
skipClanKeyCrafting: Boolean,
1455
1454
claimingBlueprintRefundsIngredients: Boolean,
1456
1455
instantResourceExtractorDrones: Boolean,
1457
1456
noResourceExtractorDronesDamage: Boolean,
@@ -30,6 +30,7 @@ export interface IConfig extends IConfigRemovedOptions {
30
30
baroAlwaysAvailable?: boolean;
31
31
baroFullyStocked?: boolean;
32
32
unlockAllProfitTakerStages?: boolean;
33
skipClanKeyCrafting?: boolean;
33
34
noDojoRoomBuildStage?: boolean;
34
35
noDojoDecoBuildStage?: boolean;
35
36
fastDojoRoomDestruction?: boolean;
@@ -119,8 +120,7 @@ export const configRemovedOptionsKeys = [
119
120
"syndicateMissionsRepeatable",
120
121
"instantFinishRivenChallenge",
121
122
"instantResourceExtractorDrones",
122
"noResourceExtractorDronesDamage",
123
"skipClanKeyCrafting"
123
"noResourceExtractorDronesDamage"
124
124
] as const;
125
125
126
126
type IConfigRemovedOptions = {
@@ -690,7 +690,7 @@ export const checkClanAscensionHasRequiredContributors = async (guild: TGuildDat
690
690
};
691
691
692
692
export const giveClanKey = (inventory: TInventoryDatabaseDocument, inventoryChanges?: IInventoryChanges): void => {
693
if (inventory.skipClanKeyCrafting) {
693
if (config.skipClanKeyCrafting) {
694
694
const levelKeyChanges = [
695
695
{
696
696
ItemType: "/Lotus/Types/Keys/DojoKey",
@@ -45,7 +45,6 @@ export interface IAccountCheats {
45
45
noVendorPurchaseLimits?: boolean;
46
46
noDeathMarks?: boolean;
47
47
noKimCooldowns?: boolean;
48
skipClanKeyCrafting?: boolean;
49
48
claimingBlueprintRefundsIngredients?: boolean;
50
49
instantResourceExtractorDrones?: boolean;
51
50
noResourceExtractorDronesDamage?: boolean;
@@ -703,6 +703,10 @@
703
703
<input class="form-check-input" type="checkbox" id="unlockAllProfitTakerStages" />
704
704
<label class="form-check-label" for="unlockAllProfitTakerStages" data-loc="cheats_unlockAllProfitTakerStages"></label>
705
705
</div>
706
<div class="form-check">
707
<input class="form-check-input" type="checkbox" id="skipClanKeyCrafting" />
708
<label class="form-check-label" for="skipClanKeyCrafting" data-loc="cheats_skipClanKeyCrafting"></label>
709
</div>
706
710
<div class="form-check">
707
711
<input class="form-check-input" type="checkbox" id="noDojoRoomBuildStage" />
708
712
<label class="form-check-label" for="noDojoRoomBuildStage" data-loc="cheats_noDojoRoomBuildStage"></label>
@@ -884,10 +888,6 @@
884
888
<input class="form-check-input" type="checkbox" id="instantResourceExtractorDrones" />
885
889
<label class="form-check-label" for="instantResourceExtractorDrones" data-loc="cheats_instantResourceExtractorDrones"></label>
886
890
</div>
887
<div class="form-check">
888
<input class="form-check-input" type="checkbox" id="skipClanKeyCrafting" />
889
<label class="form-check-label" for="skipClanKeyCrafting" data-loc="cheats_skipClanKeyCrafting"></label>
890
</div>
891
891
<div class="form-check">
892
892
<input class="form-check-input" type="checkbox" id="claimingBlueprintRefundsIngredients" />
893
893
<label class="form-check-label" for="claimingBlueprintRefundsIngredients" data-loc="cheats_claimingBlueprintRefundsIngredients"></label>