diff --git a/config.json.example b/config.json.example index db0f6d41..e94a441f 100644 --- a/config.json.example +++ b/config.json.example @@ -36,5 +36,6 @@ "fastDojoRoomDestruction": true, "noDojoResearchCosts": true, "noDojoResearchTime": true, + "fastClanAscension": true, "spoofMasteryRank": -1 } diff --git a/src/controllers/api/contributeGuildClassController.ts b/src/controllers/api/contributeGuildClassController.ts index 6a32ad11..d0c91539 100644 --- a/src/controllers/api/contributeGuildClassController.ts +++ b/src/controllers/api/contributeGuildClassController.ts @@ -1,6 +1,7 @@ import { toMongoDate } from "@/src/helpers/inventoryHelpers"; import { getJSONfromString } from "@/src/helpers/stringHelpers"; import { Guild } from "@/src/models/guildModel"; +import { config } from "@/src/services/configService"; import { getInventory } from "@/src/services/inventoryService"; import { getAccountIdForRequest } from "@/src/services/loginService"; import { RequestHandler } from "express"; @@ -27,7 +28,7 @@ export const contributeGuildClassController: RequestHandler = async (req, res) = if (guild.CeremonyContributors.length == payload.RequiredContributors) { guild.Class = guild.CeremonyClass!; guild.CeremonyClass = undefined; - guild.CeremonyResetDate = new Date(Date.now() + 72 * 3600_000); + guild.CeremonyResetDate = new Date(Date.now() + (config.fastClanAscension ? 5_000 : 72 * 3600_000)); } await guild.save(); diff --git a/src/services/configService.ts b/src/services/configService.ts index e1c79534..92c8c6a8 100644 --- a/src/services/configService.ts +++ b/src/services/configService.ts @@ -62,6 +62,7 @@ interface IConfig { fastDojoRoomDestruction?: boolean; noDojoResearchCosts?: boolean; noDojoResearchTime?: boolean; + fastClanAscension?: boolean; spoofMasteryRank?: number; } diff --git a/static/webui/index.html b/static/webui/index.html index a161bd0c..bb1c88df 100644 --- a/static/webui/index.html +++ b/static/webui/index.html @@ -537,6 +537,10 @@ +