任务:升品次数

This commit is contained in:
luying
2022-05-19 10:02:06 +08:00
parent 124cf176d6
commit 9cf8995547
3 changed files with 8 additions and 4 deletions
+2 -2
View File
@@ -276,14 +276,14 @@ export async function checkTaskInEquipStarUp(serverId: number, roleId: string, s
}
}
export async function checkTaskInEquipQualityUp(serverId: number, roleId: string, sid: string, oldEplace: EPlace[], newEplace: EPlace[], ePlaceId: number, hid: number, isUpQuality: boolean) {
export async function checkTaskInEquipQualityUp(serverId: number, roleId: string, sid: string, oldEplace: EPlace[], newEplace: EPlace[], ePlaceId: number, hid: number, isUpQuality: boolean, count: number) {
let task = new CheckTask(serverId, roleId);
if(isUpQuality) {
let { oldEquip, newEquip } = getEquipById(oldEplace, newEplace, ePlaceId);
task.setParam(TASK_TYPE.EQUIP_QUALITY_UP, { hid, ePlaceId });
task.setParam(TASK_TYPE.EQUIP_QUALITY_UP_TO, { oldEquip, newEquip })
}
task.setParam(TASK_TYPE.EQUIP_QUALITY_UP_CNT, {});
task.setParam(TASK_TYPE.EQUIP_QUALITY_UP_CNT, { count });
await task.saveAndPush(sid);
}