From 2e892e272f7aea0a7ffbae81e43731c6b20119e6 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 04 八月 2025 10:46:12 +0800
Subject: [PATCH] 121 【武将】武将系统-服务端(竞技场支持进攻、防守阵容)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_MainLevel.py | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_MainLevel.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_MainLevel.py
index bae12fc..72f075a 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_MainLevel.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_MainLevel.py
@@ -28,6 +28,8 @@
import TurnAttack
import ItemCommon
import NPCCommon
+import ChEquip
+
import random
def OnFBPlayerOnLogin(curPlayer):
@@ -73,7 +75,7 @@
def __doCostZhanchui(curPlayer, atkObj, curSkill):
## 扣除战锤消耗
costZhanchui = 0
- isXP = SkillCommon.isXPSkill(curSkill)
+ isXP = SkillCommon.isAngerSkill(curSkill)
turnBattleType = atkObj.GetDictByKey(ChConfig.Def_Obj_Dict_TurnBattleType)
if isXP:
costZhanchui = IpyGameDataPY.GetFuncCfg("ZhanchuiCost", 2)
@@ -81,7 +83,7 @@
costZhanchui = IpyGameDataPY.GetFuncCfg("ZhanchuiCost", 3)
elif turnBattleType == ChConfig.TurnBattleType_AtkBack:
costZhanchui = IpyGameDataPY.GetFuncCfg("ZhanchuiCost", 4)
- elif SkillCommon.isTurnNormalAtkSkill(curSkill):
+ elif SkillCommon.isTurnNormalSkill(curSkill):
costZhanchui = IpyGameDataPY.GetFuncCfg("ZhanchuiCost", 1)
if costZhanchui <= 0:
@@ -222,7 +224,7 @@
itemColor = GameWorld.GetResultByRandomList(colorRateList)
if not itemColor:
continue
- equipIDList = NPCCommon.__GetEquipIDList(0, color=itemColor, findType="MainEquipDrop")
+ equipIDList = NPCCommon.__GetEquipIDList(0, color=itemColor, placeList=ChConfig.Def_MainEquipPlaces, findType="MainEquipDrop")
if not equipIDList:
continue
randEquipID = random.choice(equipIDList)
@@ -319,7 +321,7 @@
__doDecomposeMainEquip(curPlayer, decomposeIndexList)
# 刷属性
-
+ ChEquip.RefreshRoleEquipAttr(curPlayer)
return
def __doDecomposeMainEquip(curPlayer, itemIndexList):
--
Gitblit v1.8.0