From 8145e33b8bac3d5852d08e3de8128ae8db3a6d4c Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期五, 01 二月 2019 14:07:52 +0800
Subject: [PATCH] 6188 【后端】【1.5.200】诛仙塔爬塔补偿
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerRefineStove.py | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerRefineStove.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerRefineStove.py
index 9a4d58e..f5661e8 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerRefineStove.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerRefineStove.py
@@ -30,6 +30,8 @@
import EventShell
import PlayerActivity
import PlayerFairyCeremony
+import PlayerNewFairyCeremony
+import PlayerVip
import copy
@@ -197,7 +199,12 @@
GameWorld.DebugLog("更新炼丹产出特殊物品次数: makeItemID=%s,outputCount=%s" % (makeItemID, outputCount), playerID)
#给物品
- ItemControler.GivePlayerItem(curPlayer, makeItemID, itemCount, delItemHasBind, [IPY_GameWorld.rptItem],
+ notBindItemList = IpyGameDataPY.GetFuncEvalCfg("SpecialAlchemy", 4) # 固定不绑定的物品
+ if makeItemID in notBindItemList:
+ makeItemBind = False
+ else:
+ makeItemBind = delItemHasBind
+ ItemControler.GivePlayerItem(curPlayer, makeItemID, itemCount, makeItemBind, [IPY_GameWorld.rptItem],
event=[ChConfig.ItemGive_Refine, False, {}])
Sycn_AlchemyMsg(curPlayer, makeItemID)
@@ -219,6 +226,7 @@
costItemCnt = sum(needMaterialDict.values())
PlayerActivity.AddDailyActionFinishCnt(curPlayer, ShareDefine.DailyActionID_RefineStove, costItemCnt)
PlayerFairyCeremony.AddFCPartyActionCnt(curPlayer, ChConfig.Def_PPAct_RefineStove, 1)
+ PlayerNewFairyCeremony.AddFCPartyActionCnt(curPlayer, ChConfig.Def_PPAct_RefineStove, 1)
return
def __GetAlchemyUpItemID(itemID, alchemyLV, alchemyUpCfg):
@@ -304,8 +312,9 @@
def CalcStoveAttr(curPlayer):
# 果实加成
allAttrYaoList = [{} for _ in range(4)]
- PlayerAttrFruit.CalcAttrFruitAddAtrr(curPlayer, allAttrYaoList, ShareDefine.Def_AttrFruitFunc_Stove)
+ fightPowerEx = PlayerAttrFruit.CalcAttrFruitAddAtrr(curPlayer, allAttrYaoList, ShareDefine.Def_AttrFruitFunc_Stove)
PlayerControl.SetCalcAttrListValue(curPlayer, ChConfig.Def_CalcAttrFunc_StoveYao, allAttrYaoList)
+ curPlayer.SetDict(ChConfig.Def_PlayerKey_MFPEx % ShareDefine.Def_MFPType_StoveYao, fightPowerEx)
allAttrList = [{} for _ in range(4)]
alchemyLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_AlchemyLV)
@@ -350,8 +359,8 @@
def PlayerPrayElixir(index, clientPack, tick):
curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
prayCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_AlchemyPrayCnt)
- limitCnt = IpyGameDataPY.GetFuncCfg('GodAlchemy', 3)
- if limitCnt and prayCnt >= limitCnt:
+ limitCnt = PlayerVip.GetPrivilegeValue(curPlayer, ChConfig.VIPPrivilege_PrayElixir)
+ if prayCnt >= limitCnt:
GameWorld.DebugLog('今日祈福丹药次数已满!prayCnt=%s'%prayCnt)
return
packSpace = ItemCommon.GetItemPackSpace(curPlayer, IPY_GameWorld.rptItem, 1)
--
Gitblit v1.8.0