feat: implement incarnon genesis installation, challenges & skill tree #333

Merged
Sainan merged 3 commits from incarnon into main 2024-06-20 04:05:08 -07:00
Showing only changes of commit dcdf03c9ce - Show all commits

View File

@ -21,11 +21,13 @@ export const evolveWeaponController: RequestHandler = async (req, res) => {
item.SkillTree = "0";
inventory.EvolutionProgress ??= [];
inventory.EvolutionProgress.push({
Progress: 0,
Rank: 1,
ItemType: payload.EvoType
});
if (!inventory.EvolutionProgress.find(entry => entry.ItemType == payload.EvoType)) {
inventory.EvolutionProgress.push({
Progress: 0,
Rank: 1,
ItemType: payload.EvoType
});
}
await inventory.save();
res.end();