From 63fd1becb78338747b1a803daa10724b43bf9071 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 25 一月 2024 16:34:16 +0800
Subject: [PATCH] 10121 【后端】越南本地化需求-点赞好评分享奖励(增加点赞奖励)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py | 7 +++++++
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py | 5 ++++-
2 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
index 0a1c69e..995c3cf 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
@@ -3626,6 +3626,7 @@
Def_PDict_GameNoticeAwardState = "GameNoticeAwardState" # 玩法前瞻游戏领奖记录
Def_PDict_ShareGameAwardState = "ShareGameAwardState" # 每日分享游戏领奖记录
Def_PDict_GoodGameAwardState = "GoodGameAwardState" # 游戏好评领奖记录
+Def_PDict_LikeGameAwardState = "LikeGameAwardState" # 游戏点赞领奖记录
Def_PDict_EquipViewCacheState = "EquipViewCacheState" # 本次上线是否同步过装备缓存
Def_PDict_DayOnlineTime = "OnlineTime" # 当日在线时长
Def_PDict_OnlineStartTick = "OnlineStartTime" # 在线计算时间
@@ -5832,7 +5833,9 @@
Def_RewardType_FamilyBossHurt, #仙盟boss伤害奖励 63
Def_RewardType_DailyPackBuyGift, #打包直购礼包奖励 64
Def_RewardType_Zhanling, #战令奖励 65
-)= range(66)
+Def_RewardType_Task, #任务奖励 66
+Def_RewardType_LikeGame, #游戏点赞 67
+)= range(68)
#boss复活相关活动定义
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
index ec120ad..3ae59fa 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
@@ -934,6 +934,10 @@
goodGameAwardState = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_GoodGameAwardState)
if goodGameAwardState:
Sync_RewardGetRecordInfo(curPlayer, ChConfig.Def_RewardType_GoodGame, goodGameAwardState)
+ #游戏点赞奖励
+ likeGameAwardState = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_LikeGameAwardState)
+ if likeGameAwardState:
+ Sync_RewardGetRecordInfo(curPlayer, ChConfig.Def_RewardType_LikeGame, likeGameAwardState)
curPlayer.SetState(0) # 脱机挂恢复为正常上线
curPlayer.SetFacePic(0) # 通知数据库是否保存还是下线,做一次恢复,1为保存 0为正常下线
@@ -5712,6 +5716,9 @@
#游戏好评奖励35
elif rewardType == ChConfig.Def_RewardType_GoodGame:
OnGiveAwardByClient(curPlayer, rewardType, ChConfig.Def_PDict_GoodGameAwardState, IpyGameDataPY.GetFuncEvalCfg("GoodGameReward", 1))
+ #游戏点赞奖励67
+ elif rewardType == ChConfig.Def_RewardType_LikeGame:
+ OnGiveAwardByClient(curPlayer, rewardType, ChConfig.Def_PDict_LikeGameAwardState, IpyGameDataPY.GetFuncEvalCfg("GoodGameReward", 4))
return
## 领取创角奖励
--
Gitblit v1.8.0