feat: noDojoRoomBuildStage cheat
All checks were successful
Build / build (22) (push) Successful in 36s
Build / build (18) (pull_request) Successful in 39s
Build / build (22) (pull_request) Successful in 51s
Build / build (20) (pull_request) Successful in 1m1s
Build / build (20) (push) Successful in 51s
Build / build (18) (push) Successful in 1m5s
All checks were successful
Build / build (22) (push) Successful in 36s
Build / build (18) (pull_request) Successful in 39s
Build / build (22) (pull_request) Successful in 51s
Build / build (20) (pull_request) Successful in 1m1s
Build / build (20) (push) Successful in 51s
Build / build (18) (push) Successful in 1m5s
This commit is contained in:
parent
fa793e49ca
commit
b1c6f63652
@ -32,6 +32,7 @@
|
|||||||
"unlockArcanesEverywhere": true,
|
"unlockArcanesEverywhere": true,
|
||||||
"noDailyStandingLimits": true,
|
"noDailyStandingLimits": true,
|
||||||
"instantResourceExtractorDrones": false,
|
"instantResourceExtractorDrones": false,
|
||||||
|
"noDojoRoomBuildStage": true,
|
||||||
"noDojoResearchCosts": true,
|
"noDojoResearchCosts": true,
|
||||||
"noDojoResearchTime": true,
|
"noDojoResearchTime": true,
|
||||||
"spoofMasteryRank": -1
|
"spoofMasteryRank": -1
|
||||||
|
@ -3,6 +3,7 @@ import { IDojoComponentClient } from "@/src/types/guildTypes";
|
|||||||
import { getDojoClient, getGuildForRequest } from "@/src/services/guildService";
|
import { getDojoClient, getGuildForRequest } from "@/src/services/guildService";
|
||||||
import { Types } from "mongoose";
|
import { Types } from "mongoose";
|
||||||
import { ExportDojoRecipes } from "warframe-public-export-plus";
|
import { ExportDojoRecipes } from "warframe-public-export-plus";
|
||||||
|
import { config } from "@/src/services/configService";
|
||||||
|
|
||||||
interface IStartDojoRecipeRequest {
|
interface IStartDojoRecipeRequest {
|
||||||
PlacedComponent: IDojoComponentClient;
|
PlacedComponent: IDojoComponentClient;
|
||||||
@ -20,6 +21,8 @@ export const startDojoRecipeController: RequestHandler = async (req, res) => {
|
|||||||
guild.DojoEnergy += room.energy;
|
guild.DojoEnergy += room.energy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const component =
|
||||||
|
guild.DojoComponents[
|
||||||
guild.DojoComponents.push({
|
guild.DojoComponents.push({
|
||||||
_id: new Types.ObjectId(),
|
_id: new Types.ObjectId(),
|
||||||
pf: request.PlacedComponent.pf,
|
pf: request.PlacedComponent.pf,
|
||||||
@ -27,7 +30,11 @@ export const startDojoRecipeController: RequestHandler = async (req, res) => {
|
|||||||
pi: new Types.ObjectId(request.PlacedComponent.pi!.$oid),
|
pi: new Types.ObjectId(request.PlacedComponent.pi!.$oid),
|
||||||
op: request.PlacedComponent.op,
|
op: request.PlacedComponent.op,
|
||||||
pp: request.PlacedComponent.pp
|
pp: request.PlacedComponent.pp
|
||||||
});
|
}) - 1
|
||||||
|
];
|
||||||
|
if (config.noDojoRoomBuildStage) {
|
||||||
|
component.CompletionTime = new Date(Date.now());
|
||||||
|
}
|
||||||
await guild.save();
|
await guild.save();
|
||||||
res.json(getDojoClient(guild, 0));
|
res.json(getDojoClient(guild, 0));
|
||||||
};
|
};
|
||||||
|
@ -58,6 +58,7 @@ interface IConfig {
|
|||||||
unlockArcanesEverywhere?: boolean;
|
unlockArcanesEverywhere?: boolean;
|
||||||
noDailyStandingLimits?: boolean;
|
noDailyStandingLimits?: boolean;
|
||||||
instantResourceExtractorDrones?: boolean;
|
instantResourceExtractorDrones?: boolean;
|
||||||
|
noDojoRoomBuildStage?: boolean;
|
||||||
noDojoResearchCosts?: boolean;
|
noDojoResearchCosts?: boolean;
|
||||||
noDojoResearchTime?: boolean;
|
noDojoResearchTime?: boolean;
|
||||||
spoofMasteryRank?: number;
|
spoofMasteryRank?: number;
|
||||||
|
@ -521,6 +521,10 @@
|
|||||||
<input class="form-check-input" type="checkbox" id="instantResourceExtractorDrones" />
|
<input class="form-check-input" type="checkbox" id="instantResourceExtractorDrones" />
|
||||||
<label class="form-check-label" for="instantResourceExtractorDrones" data-loc="cheats_instantResourceExtractorDrones"></label>
|
<label class="form-check-label" for="instantResourceExtractorDrones" data-loc="cheats_instantResourceExtractorDrones"></label>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-check">
|
||||||
|
<input class="form-check-input" type="checkbox" id="noDojoRoomBuildStage" />
|
||||||
|
<label class="form-check-label" for="noDojoRoomBuildStage" data-loc="cheats_noDojoRoomBuildStage"></label>
|
||||||
|
</div>
|
||||||
<div class="form-check">
|
<div class="form-check">
|
||||||
<input class="form-check-input" type="checkbox" id="noDojoResearchCosts" />
|
<input class="form-check-input" type="checkbox" id="noDojoResearchCosts" />
|
||||||
<label class="form-check-label" for="noDojoResearchCosts" data-loc="cheats_noDojoResearchCosts"></label>
|
<label class="form-check-label" for="noDojoResearchCosts" data-loc="cheats_noDojoResearchCosts"></label>
|
||||||
|
@ -112,6 +112,7 @@ dict = {
|
|||||||
cheats_unlockArcanesEverywhere: `Arcane Adapters Everywhere`,
|
cheats_unlockArcanesEverywhere: `Arcane Adapters Everywhere`,
|
||||||
cheats_noDailyStandingLimits: `No Daily Standing Limits`,
|
cheats_noDailyStandingLimits: `No Daily Standing Limits`,
|
||||||
cheats_instantResourceExtractorDrones: `Instant Resource Extractor Drones`,
|
cheats_instantResourceExtractorDrones: `Instant Resource Extractor Drones`,
|
||||||
|
cheats_noDojoRoomBuildStage: `No Dojo Room Build Stage`,
|
||||||
cheats_noDojoResearchCosts: `No Dojo Research Costs`,
|
cheats_noDojoResearchCosts: `No Dojo Research Costs`,
|
||||||
cheats_noDojoResearchTime: `No Dojo Research Time`,
|
cheats_noDojoResearchTime: `No Dojo Research Time`,
|
||||||
cheats_spoofMasteryRank: `Spoofed Mastery Rank (-1 to disable)`,
|
cheats_spoofMasteryRank: `Spoofed Mastery Rank (-1 to disable)`,
|
||||||
|
@ -113,6 +113,7 @@ dict = {
|
|||||||
cheats_unlockArcanesEverywhere: `Адаптеры для мистификаторов везде`,
|
cheats_unlockArcanesEverywhere: `Адаптеры для мистификаторов везде`,
|
||||||
cheats_noDailyStandingLimits: `Без ежедневных ограничений репутации`,
|
cheats_noDailyStandingLimits: `Без ежедневных ограничений репутации`,
|
||||||
cheats_instantResourceExtractorDrones: `[UNTRANSLATED] Instant Resource Extractor Drones`,
|
cheats_instantResourceExtractorDrones: `[UNTRANSLATED] Instant Resource Extractor Drones`,
|
||||||
|
cheats_noDojoRoomBuildStage: `[UNTRANSLATED] No Dojo Room Build Stage`,
|
||||||
cheats_noDojoResearchCosts: `[UNTRANSLATED] No Dojo Research Costs`,
|
cheats_noDojoResearchCosts: `[UNTRANSLATED] No Dojo Research Costs`,
|
||||||
cheats_noDojoResearchTime: `[UNTRANSLATED] No Dojo Research Time`,
|
cheats_noDojoResearchTime: `[UNTRANSLATED] No Dojo Research Time`,
|
||||||
cheats_spoofMasteryRank: `Подделанный ранг мастерства (-1 для отключения)`,
|
cheats_spoofMasteryRank: `Подделанный ранг мастерства (-1 для отключения)`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user