✨ feat(共鸣系统): 添加获取数据频率限制、修改上阵装备养成限制条件
This commit is contained in:
@@ -84,7 +84,21 @@ export class HeroHandler {
|
||||
if (jobStage) return resResult(STATUS.RESONANCE_PUT_POSITION_EXIST_JOBSTAGE);
|
||||
if (skins.find(cur => (cur?.usedTalentPoint || 0) > 0)) return resResult(STATUS.RESONANCE_PUT_POSITION_EXIST_TALENT);
|
||||
if (connections.length > 0) return resResult(STATUS.RESONANCE_PUT_POSITION_EXIST_CONNECT);
|
||||
if (ePlace.length > 0) return resResult(STATUS.RESONANCE_PUT_POSITION_EXIST_EQUIP); //TODO
|
||||
// if (ePlace.length > 0) return resResult(STATUS.RESONANCE_PUT_POSITION_EXIST_EQUIP);
|
||||
if (ePlace.length > 0) {
|
||||
for (let obj of ePlace) {
|
||||
let newEplace = await getInitEplace(obj.id, skinId);
|
||||
if (obj.lv != newEplace.lv || obj.quality != newEplace.quality || obj.qualityStage != newEplace.qualityStage ||
|
||||
obj.star != newEplace.star || obj.starStage != newEplace.starStage || obj.jewel != newEplace.jewel) {
|
||||
return resResult(STATUS.RESONANCE_PUT_POSITION_EXIST_EQUIP);
|
||||
}
|
||||
for (let st of obj.stones) {
|
||||
if (st.stone != (newEplace.stones.find(cur => cur.id == st.id)?.stone || 0)) {
|
||||
return resResult(STATUS.RESONANCE_PUT_POSITION_EXIST_EQUIP);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
let result = await ResonanceModel.updateByPosition(roleId, position, { hid, seqId, lv, exp, jobStage, skinId, skins, connections, ePlace, ce });
|
||||
if (!result) return resResult(STATUS.RESONANCE_PUT_POSITION_FAIL);
|
||||
|
||||
Reference in New Issue
Block a user