From 24db0bdc5fe4544dd7694faa8816f5eaa0afd780 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 15 十一月 2021 12:49:17 +0800
Subject: [PATCH] 9351 【BT3】【BT4】【BT5】【bt3_1.102.1】【gt_1.102.1】【主干】副本扫荡后不能完成任务(增加直接给嗨点)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py | 3 +++
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFairyCeremony.py | 9 +++++++++
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py
index fe590e0..a335929 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py
@@ -31,6 +31,7 @@
import ChPyNetSendPack
import NetPackCommon
import Operate_EquipStone
+import PlayerFairyCeremony
import PlayerMagicWeapon
import IpyGameDataPY
import DataRecordPack
@@ -1058,6 +1059,8 @@
PlayerControl.GiveMoney(curPlayer, IPY_GameWorld.TYPE_Price_Gold_Money, itemCount, moneyEventName, addDict)
elif itemID == ChConfig.Def_ItemID_FuncSysPrivilege:
PlayerControl.GiveMoney(curPlayer, ShareDefine.TYPE_Price_FuncSysPrivilege, itemCount)
+ elif itemID == ChConfig.Def_ItemID_FCPartyPoint:
+ PlayerFairyCeremony.AddFCPartyPoint(curPlayer, itemCount)
return True
def __CrossServerPutInItem(self, packIndex, tagItem, event=["", False, {}]):
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFairyCeremony.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFairyCeremony.py
index b6ba5d3..3ea742c 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFairyCeremony.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFairyCeremony.py
@@ -228,9 +228,18 @@
addPoint = (newCnt - curCnt) * singlePoint
curPoint = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_FCPartyCurPoint)
PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_FCPartyCurPoint, curPoint + addPoint)
+ PlayerControl.NotifyCode(curPlayer, "AddFCPartyPoint", [addPoint])
SyncFCPartyInfo(curPlayer, [actionID])
return
+def AddFCPartyPoint(curPlayer, addPoint):
+ ## 直接增加嗨点
+ curPoint = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_FCPartyCurPoint)
+ PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_FCPartyCurPoint, curPoint + addPoint)
+ PlayerControl.NotifyCode(curPlayer, "AddFCPartyPoint", [addPoint])
+ SyncFCPartyInfo(curPlayer)
+ return
+
def GetFCPartyAward(curPlayer, index):
## 全民来嗨领奖
worldLvNum = __GetFCWorldLVIndex(curPlayer, Def_FC_Party)
--
Gitblit v1.8.0