feat: clan polychrome research #1177

Merged
Sainan merged 10 commits from clan-polychrome into main 2025-03-16 04:32:12 -07:00
Showing only changes of commit 2572b665a6 - Show all commits

View File

@ -195,6 +195,11 @@ export const guildTechController: RequestHandler = async (req, res) => {
await guild.save();
await removePigmentsFromGuildMembers(guild._id);
res.end();
} else if (data.Action == "Unpause") {
const project = guild.TechProjects!.find(x => x.ItemType == data.RecipeType)!;
project.State = 0;
await guild.save();
res.end();
} else {
throw new Error(`unknown guildTech action: ${data.Action}`);
}
@ -243,7 +248,7 @@ type TGuildTechRequest =
| IGuildTechContributeRequest;
interface IGuildTechBasicRequest {
Action: "Start" | "Fabricate" | "Pause";
Action: "Start" | "Fabricate" | "Pause" | "Unpause";
Mode: "Guild";
RecipeType: string;
}