🐞 fix(重阳集会): 修改消耗说明
This commit is contained in:
@@ -110,7 +110,7 @@ export class ChongYangHandler {
|
|||||||
if (dayIndex > playerData.dayIndexUnlock) return resResult(STATUS.ACTIVITY_CHONGYANG_LOCK);
|
if (dayIndex > playerData.dayIndexUnlock) return resResult(STATUS.ACTIVITY_CHONGYANG_LOCK);
|
||||||
|
|
||||||
// 扣材料
|
// 扣材料
|
||||||
let costResult = await handleCost(roleId, sid, stringToConsumeParam(scene.buyCost), ITEM_CHANGE_REASON.ACT_ENTERTAIN_BUY_COST);
|
let costResult = await handleCost(roleId, sid, stringToConsumeParam(scene.buyCost), ITEM_CHANGE_REASON.CHONGYANG_COST);
|
||||||
if (!costResult) return resResult(STATUS.ROLE_MATERIAL_NOT_ENOUGH);
|
if (!costResult) return resResult(STATUS.ROLE_MATERIAL_NOT_ENOUGH);
|
||||||
// 保存数据
|
// 保存数据
|
||||||
let playerRecord = await ActivityChongYangRecModel.buyCnt(serverId, activityId, playerData.roundIndex, roleId, { dayIndex, buyCnt: count }, scene.isPushBuyRecord);
|
let playerRecord = await ActivityChongYangRecModel.buyCnt(serverId, activityId, playerData.roundIndex, roleId, { dayIndex, buyCnt: count }, scene.isPushBuyRecord);
|
||||||
|
|||||||
@@ -1279,6 +1279,7 @@ export enum ITEM_CHANGE_REASON {
|
|||||||
RECEIVE_ROUGE_SCORE_REWARD = 203, // 领取积分奖励
|
RECEIVE_ROUGE_SCORE_REWARD = 203, // 领取积分奖励
|
||||||
REBORN_COST = 204, // 重生优化,传承
|
REBORN_COST = 204, // 重生优化,传承
|
||||||
CHONGYANG_REWARD = 205, // 重阳集会
|
CHONGYANG_REWARD = 205, // 重阳集会
|
||||||
|
CHONGYANG_COST = 206, // 重阳集会购买消耗
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum TA_EVENT {
|
export enum TA_EVENT {
|
||||||
|
|||||||
Reference in New Issue
Block a user