装备:修复淬火查询品相bug
This commit is contained in:
@@ -489,7 +489,7 @@ export class EquipHandler {
|
||||
if (!dicGoods) return resResult(STATUS.DIC_DATA_NOT_FOUND);
|
||||
let dicQuench = gameData.quenchByQuality.get(dicGoods.quality)?.get(grade);
|
||||
console.log(dicQuench, dicGoods.quality, grade)
|
||||
if (!dicQuench) return resResult(STATUS.DIC_DATA_NOT_FOUND);
|
||||
if (!dicQuench) return resResult(STATUS.EQUIP_QUENCH_MAX);
|
||||
|
||||
let logs: QuenchLogParam[] = [], times = 0;
|
||||
while(
|
||||
|
||||
@@ -730,10 +730,11 @@ export function getDicSuitByTypeAndLv(suitType: number, starLevel: number) {
|
||||
}
|
||||
|
||||
export function getQuenchGradeByValue(quality: number, value: number) {
|
||||
|
||||
let dicQuench = gameData.quenchByQuality.get(quality)||[];
|
||||
let grade = 0;
|
||||
for(let [_grade, { singleRatioMin, singleRatioMax }] of dicQuench) {
|
||||
if(value >= singleRatioMin && value < singleRatioMax ) {
|
||||
if((value >= singleRatioMin && value < singleRatioMax) || (value == singleRatioMin && value == singleRatioMax) ) {
|
||||
grade = _grade;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -904,7 +904,7 @@ export async function accomplishTask(serverId: number, roleId: string, taskType:
|
||||
*
|
||||
*/
|
||||
|
||||
export function isComplete(roleId: string, taskType: TASK_TYPE, taskParam: string, count: number, activityId: number, paramObj?: any, recordData?: any): any {
|
||||
export function isComplete(_roleId: string, taskType: TASK_TYPE, taskParam: string, count: number, _activityId: number, paramObj?: any, recordData?: any): any {
|
||||
// console.log('达成任务标准', roleId, taskType, taskParam, count, activityId, paramObj)
|
||||
let param = splitString(taskParam, '&');
|
||||
let addCount: number = 0; // 条件是否满足
|
||||
|
||||
Reference in New Issue
Block a user