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