feat: clan tiers #1378
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user