revert change to skipClanKeyCrafting cheat
All checks were successful
Build / build (pull_request) Successful in 1m58s

This commit is contained in:
AMelonInsideLemon 2025-09-08 04:49:13 +02:00
parent d3bdf7fa7d
commit 210dcee384
8 changed files with 14 additions and 17 deletions

View File

@ -14,6 +14,7 @@
"unlockAllFlavourItems": false, "unlockAllFlavourItems": false,
"unlockAllSkins": false, "unlockAllSkins": false,
"fullyStockedVendors": false, "fullyStockedVendors": false,
"skipClanKeyCrafting": false,
"spoofMasteryRank": -1, "spoofMasteryRank": -1,
"relicRewardItemCountMultiplier": 1, "relicRewardItemCountMultiplier": 1,
"nightwaveStandingMultiplier": 1, "nightwaveStandingMultiplier": 1,

View File

@ -47,10 +47,11 @@ export const confirmGuildInvitationGetController: RequestHandler = async (req, r
// Update inventory of new member // Update inventory of new member
const inventory = await getInventory(account._id.toString(), "GuildId LevelKeys Recipes"); const inventory = await getInventory(account._id.toString(), "GuildId LevelKeys Recipes");
inventory.GuildId = new Types.ObjectId(req.query.clanId as string); inventory.GuildId = new Types.ObjectId(req.query.clanId as string);
const guild = (await Guild.findById(req.query.clanId as string))!; giveClanKey(inventory, inventoryChanges);
giveClanKey(inventory, guild, inventoryChanges);
await inventory.save(); await inventory.save();
const guild = (await Guild.findById(req.query.clanId as string))!;
// Add join to clan log // Add join to clan log
guild.RosterActivity ??= []; guild.RosterActivity ??= [];
guild.RosterActivity.push({ guild.RosterActivity.push({
@ -96,7 +97,7 @@ export const confirmGuildInvitationPostController: RequestHandler = async (req,
// Update inventory of new member // Update inventory of new member
const inventory = await getInventory(guildMember.accountId.toString(), "GuildId LevelKeys Recipes"); const inventory = await getInventory(guildMember.accountId.toString(), "GuildId LevelKeys Recipes");
inventory.GuildId = new Types.ObjectId(req.query.clanId as string); inventory.GuildId = new Types.ObjectId(req.query.clanId as string);
giveClanKey(inventory, guild); giveClanKey(inventory);
await inventory.save(); await inventory.save();
// Add join to clan log // Add join to clan log

View File

@ -30,7 +30,7 @@ export const createGuildController: RequestHandler = async (req, res) => {
const inventory = await getInventory(account._id.toString(), "GuildId LevelKeys Recipes"); const inventory = await getInventory(account._id.toString(), "GuildId LevelKeys Recipes");
inventory.GuildId = guild._id; inventory.GuildId = guild._id;
const inventoryChanges: IInventoryChanges = {}; const inventoryChanges: IInventoryChanges = {};
giveClanKey(inventory, guild, inventoryChanges); giveClanKey(inventory, inventoryChanges);
await inventory.save(); await inventory.save();
res.json({ res.json({

View File

@ -202,7 +202,6 @@ goalProgressSchema.set("toJSON", {
const guildSchema = new Schema<IGuildDatabase>( const guildSchema = new Schema<IGuildDatabase>(
{ {
// SNS guild cheats // SNS guild cheats
skipClanKeyCrafting: Boolean,
noDojoRoomBuildStage: Boolean, noDojoRoomBuildStage: Boolean,
noDojoDecoBuildStage: Boolean, noDojoDecoBuildStage: Boolean,
fastDojoRoomDestruction: Boolean, fastDojoRoomDestruction: Boolean,

View File

@ -24,6 +24,7 @@ export interface IConfig {
unlockAllFlavourItems?: boolean; unlockAllFlavourItems?: boolean;
unlockAllSkins?: boolean; unlockAllSkins?: boolean;
fullyStockedVendors?: boolean; fullyStockedVendors?: boolean;
skipClanKeyCrafting?: boolean;
spoofMasteryRank?: number; spoofMasteryRank?: number;
relicRewardItemCountMultiplier?: number; relicRewardItemCountMultiplier?: number;
nightwaveStandingMultiplier?: number; nightwaveStandingMultiplier?: number;
@ -120,7 +121,6 @@ export const configRemovedOptionsKeys = [
"flawlessRelicsAlwaysGiveSilverReward", "flawlessRelicsAlwaysGiveSilverReward",
"radiantRelicsAlwaysGiveGoldReward", "radiantRelicsAlwaysGiveGoldReward",
"disableDailyTribute", "disableDailyTribute",
"skipClanKeyCrafting",
"noDojoRoomBuildStage", "noDojoRoomBuildStage",
"noDojoDecoBuildStage", "noDojoDecoBuildStage",
"fastDojoRoomDestruction", "fastDojoRoomDestruction",

View File

@ -27,6 +27,7 @@ import type { Types } from "mongoose";
import type { IDojoBuild, IDojoResearch } from "warframe-public-export-plus"; import type { IDojoBuild, IDojoResearch } from "warframe-public-export-plus";
import { ExportDojoRecipes, ExportResources } from "warframe-public-export-plus"; import { ExportDojoRecipes, ExportResources } from "warframe-public-export-plus";
import { logger } from "../utils/logger.ts"; import { logger } from "../utils/logger.ts";
import { config } from "./configService.ts";
import { getRandomInt } from "./rngService.ts"; import { getRandomInt } from "./rngService.ts";
import { Inbox } from "../models/inboxModel.ts"; import { Inbox } from "../models/inboxModel.ts";
import type { IFusionTreasure } from "../types/inventoryTypes/inventoryTypes.ts"; import type { IFusionTreasure } from "../types/inventoryTypes/inventoryTypes.ts";
@ -688,12 +689,8 @@ export const checkClanAscensionHasRequiredContributors = async (guild: TGuildDat
} }
}; };
export const giveClanKey = ( export const giveClanKey = (inventory: TInventoryDatabaseDocument, inventoryChanges?: IInventoryChanges): void => {
inventory: TInventoryDatabaseDocument, if (config.skipClanKeyCrafting) {
guild: TGuildDatabaseDocument,
inventoryChanges?: IInventoryChanges
): void => {
if (guild.skipClanKeyCrafting) {
const levelKeyChanges = [ const levelKeyChanges = [
{ {
ItemType: "/Lotus/Types/Keys/DojoKey", ItemType: "/Lotus/Types/Keys/DojoKey",

View File

@ -33,7 +33,6 @@ export interface IGuildClient {
} }
// Fields specific to SNS // Fields specific to SNS
export interface IGuildCheats { export interface IGuildCheats {
skipClanKeyCrafting?: boolean;
noDojoRoomBuildStage?: boolean; noDojoRoomBuildStage?: boolean;
noDojoDecoBuildStage?: boolean; noDojoDecoBuildStage?: boolean;
fastDojoRoomDestruction?: boolean; fastDojoRoomDestruction?: boolean;

View File

@ -611,10 +611,6 @@
<input class="form-check-input" type="checkbox" id="fastClanAscension" /> <input class="form-check-input" type="checkbox" id="fastClanAscension" />
<label class="form-check-label" for="fastClanAscension" data-loc="cheats_fastClanAscension"></label> <label class="form-check-label" for="fastClanAscension" data-loc="cheats_fastClanAscension"></label>
</div> </div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="skipClanKeyCrafting" />
<label class="form-check-label" for="skipClanKeyCrafting" data-loc="cheats_skipClanKeyCrafting"></label>
</div>
</div> </div>
</div> </div>
</div> </div>
@ -999,6 +995,10 @@
<input class="form-check-input" type="checkbox" id="fullyStockedVendors" /> <input class="form-check-input" type="checkbox" id="fullyStockedVendors" />
<label class="form-check-label" for="fullyStockedVendors" data-loc="cheats_fullyStockedVendors"></label> <label class="form-check-label" for="fullyStockedVendors" data-loc="cheats_fullyStockedVendors"></label>
</div> </div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="skipClanKeyCrafting" />
<label class="form-check-label" for="skipClanKeyCrafting" data-loc="cheats_skipClanKeyCrafting"></label>
</div>
<form class="form-group mt-2" onsubmit="doSaveConfigInt('spoofMasteryRank'); return false;"> <form class="form-group mt-2" onsubmit="doSaveConfigInt('spoofMasteryRank'); return false;">
<label class="form-label" for="spoofMasteryRank" data-loc="cheats_spoofMasteryRank"></label> <label class="form-label" for="spoofMasteryRank" data-loc="cheats_spoofMasteryRank"></label>
<div class="input-group"> <div class="input-group">