From 53922384947b977ae1e7d640d462f6512e6bbaf8 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期五, 31 八月 2018 17:19:29 +0800
Subject: [PATCH] fix:3094 【后端】仙盟兽粮,修改为可手动捐献
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamily.py | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamily.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamily.py
index 37d76f5..771b91a 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamily.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamily.py
@@ -676,20 +676,21 @@
if item.GetType() != ChConfig.Def_ItemType_FamilyBossFood:
continue
addActiveValue = item.GetEffectByIndex(0).GetEffectValue(0)
- if not addActiveValue:
- continue
+# if not addActiveValue:
+# continue
itemCnt = item.GetCount()
totalAddActiveValue += addActiveValue * itemCnt
- delItemList.append(item, itemCnt)
+ delItemList.append([item, itemCnt])
totalCnt += itemCnt
- if not totalAddActiveValue:
+ if not totalCnt:
GameWorld.DebugLog('背包里没有可捐献的物品')
return
for eatItem, delCnt in delItemList:
ItemCommon.DelItem(curPlayer, eatItem, delCnt, False)
#累加个人活跃度/贡献度
- AddPlayerFamilyActiveValue(curPlayer, totalAddActiveValue, True, ShareDefine.Def_AddFAVReason_FamilyDonateItem)
+ if totalAddActiveValue:
+ AddPlayerFamilyActiveValue(curPlayer, totalAddActiveValue, True, ShareDefine.Def_AddFAVReason_FamilyDonateItem)
AddFamilyBossFood(curPlayer, totalCnt, ShareDefine.Def_AddFAVReason_FamilyDonateItem)
GameWorld.DebugLog(' 捐献仙盟兽粮 totalCnt=%s,totalAddActiveValue=%s'%(totalCnt,totalAddActiveValue))
return
--
Gitblit v1.8.0