don't set ActiveDojoColorResearch if noDojoResearchCosts is enabled
All checks were successful
Build / build (22) (push) Successful in 45s
Build / build (20) (push) Successful in 1m7s
Build / build (18) (push) Successful in 1m0s
Build / build (18) (pull_request) Successful in 46s
Build / build (20) (pull_request) Successful in 1m7s
Build / build (22) (pull_request) Successful in 56s

This commit is contained in:
Sainan 2025-03-14 15:34:54 +01:00
parent e73c6e40eb
commit 6f1e3c469f

View File

@ -76,11 +76,12 @@ export const guildTechController: RequestHandler = async (req, res) => {
setTechLogState(guild, techProject.ItemType, 5); setTechLogState(guild, techProject.ItemType, 5);
if (config.noDojoResearchCosts) { if (config.noDojoResearchCosts) {
processFundedProject(guild, techProject, recipe); processFundedProject(guild, techProject, recipe);
} } else {
}
if (data.RecipeType.substring(0, 39) == "/Lotus/Types/Items/Research/DojoColors/") { if (data.RecipeType.substring(0, 39) == "/Lotus/Types/Items/Research/DojoColors/") {
guild.ActiveDojoColorResearch = data.RecipeType; guild.ActiveDojoColorResearch = data.RecipeType;
} }
}
}
await guild.save(); await guild.save();
res.end(); res.end();
} else if (data.Action == "Contribute") { } else if (data.Action == "Contribute") {