فهرست منبع

礼包修改弹窗

lt 3 روز پیش
والد
کامیت
856feddb48

+ 8 - 8
RO_Server_Trunk-branch_0.1.39/roserver/game/model/role_activity.go

@@ -2209,16 +2209,16 @@ func (this *RoleActivity) SuperChargeUnlockCheck(unlockType serverproto.UnlockCh
 		case serverproto.UnlockChargeType_UChargeType_PetShopCost: //宠物商店	分解石消耗数量
 		case serverproto.UnlockChargeType_UChargeType_PetShopCost: //宠物商店	分解石消耗数量
 			curVal = oldValue
 			curVal = oldValue
 		case serverproto.UnlockChargeType_UChargeType_DailyGift: //每日礼包弹窗
 		case serverproto.UnlockChargeType_UChargeType_DailyGift: //每日礼包弹窗
-			util.ErrorF("uid=%v dailyGift id=%v", this.role.GetUUid(), cfgData.Id)
+			util.ErrorF("uid=%v dailyGift id=%v val:%v level:%v", this.role.GetUUid(), cfgData.Id, val, this.role.GetRoleLevel())
 			if this.role.GetRoleLevel() >= val {
 			if this.role.GetRoleLevel() >= val {
 				//是否需要根据累计充值来触发
 				//是否需要根据累计充值来触发
-				if cfgData.Recharge > 0 {
-					rechargeTap := this.role.GetTotalRechargeTap()
-					if rechargeTap <= 0 || rechargeTap != cfgData.Recharge {
-						continue
-					}
-				}
-
+				//if cfgData.Recharge > 0 {
+				//	rechargeTap := this.role.GetTotalRechargeTap()
+				//	if rechargeTap <= 0 || rechargeTap != cfgData.Recharge {
+				//		continue
+				//	}
+				//}
+				//util.ErrorF("uid=%v dailyGift id=%v", this.role.GetUUid(), cfgData.Id)
 				//解锁特定超值礼包
 				//解锁特定超值礼包
 				unlockData := &serverproto.ActivitiesUnlockRechargeData{
 				unlockData := &serverproto.ActivitiesUnlockRechargeData{
 					ActivitiesId: cfgData.Id,
 					ActivitiesId: cfgData.Id,

+ 4 - 0
RO_Server_Trunk-branch_0.1.39/roserver/game/model/role_base.go

@@ -971,6 +971,10 @@ func (this *RoleBase) AddBaseExp(st AddItemST) int32 {
 
 
 		//判断等级相关的解锁信息,属性变化
 		//判断等级相关的解锁信息,属性变化
 		this.processLevelState(oldLevel, newLevel)
 		this.processLevelState(oldLevel, newLevel)
+		//达到10级立即弹出一次每日弹窗
+		if newLevel == 10 {
+			this.role.roleActivity.SuperChargeUnlockCheck(serverproto.UnlockChargeType_UChargeType_DailyGift, &SuperChargeUnlockST{oldValue: 0})
+		}
 	}
 	}
 
 
 	this.SetDirty(true)
 	this.SetDirty(true)