✨ feat(稷下学宫): 添加挑战关主动触发随机奖励接口
This commit is contained in:
@@ -859,12 +859,12 @@ export async function updateChalleng(dbRecord: RougelikeRecordType, roleId: stri
|
||||
challenge.status = 2;
|
||||
|
||||
//处理在挑战进度完成时再随机奖励
|
||||
const typeGradeData = gameData.rougeTypeGrade.get(type + '_' + grade);
|
||||
if (!typeGradeData) continue;
|
||||
const layerPlanData = gameData.rougeLayerPlan.get(typeGradeData.layerPlan + '_' + layer);
|
||||
if (!layerPlanData) continue;
|
||||
let result = await getLayerNodeReward(roleId, gameCode, authorType, nodeId, layerPlanData.rewardPlan, layer);
|
||||
rewards = result.rewards;
|
||||
// const typeGradeData = gameData.rougeTypeGrade.get(type + '_' + grade);
|
||||
// if (!typeGradeData) continue;
|
||||
// const layerPlanData = gameData.rougeLayerPlan.get(typeGradeData.layerPlan + '_' + layer);
|
||||
// if (!layerPlanData) continue;
|
||||
// let result = await getLayerNodeReward(roleId, gameCode, authorType, nodeId, layerPlanData.rewardPlan, layer);
|
||||
// rewards = result.rewards;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1004,7 +1004,12 @@ export function checkRouteParam(route: string, msg: any) {
|
||||
if (!checkNaturalStrings(gameCode, oldCharaCode, newCharaCode)) return false;
|
||||
break;
|
||||
}
|
||||
|
||||
case "battle.rougeHandler.challengeRandom":
|
||||
{
|
||||
let { detailCode } = msg;
|
||||
if (!checkNaturalStrings(detailCode)) return false;
|
||||
break;
|
||||
}
|
||||
case "battle.rougeHandler.unlockTech":
|
||||
{
|
||||
if (!checkNaturalNumbers(msg.techId)) return false;
|
||||
|
||||
Reference in New Issue
Block a user