complete paused colour research less disruptively
All checks were successful
Build / build (18) (push) Successful in 43s
Build / build (20) (push) Successful in 1m15s
Build / build (18) (pull_request) Successful in 43s
Build / build (22) (push) Successful in 1m15s
Build / build (20) (pull_request) Successful in 1m16s
Build / build (22) (pull_request) Successful in 39s

This commit is contained in:
Sainan 2025-03-30 14:19:55 +02:00
parent a7f252468a
commit 51f8b4f6e8

View File

@ -414,12 +414,17 @@ export const processGuildTechProjectContributionsUpdate = async (
): Promise<void> => {
if (techProject.ReqCredits == 0 && !techProject.ReqItems.find(x => x.ItemCount > 0)) {
// This research is now fully funded.
const recipe = ExportDojoRecipes.research[techProject.ItemType];
processFundedGuildTechProject(guild, techProject, recipe);
if (techProject.ItemType.substring(0, 39) == "/Lotus/Types/Items/Research/DojoColors/") {
if (
techProject.State == 0 &&
techProject.ItemType.substring(0, 39) == "/Lotus/Types/Items/Research/DojoColors/"
) {
guild.ActiveDojoColorResearch = "";
await removePigmentsFromGuildMembers(guild._id);
}
const recipe = ExportDojoRecipes.research[techProject.ItemType];
processFundedGuildTechProject(guild, techProject, recipe);
}
};