feat: clan tiers #1378

Merged
Sainan merged 7 commits from guild-tiers into main 2025-03-30 09:58:52 -07:00
Showing only changes of commit 51f8b4f6e8 - Show all commits

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);
}
};