From f198885f31c9c7eb19eb28adce562e39e64d581c Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 18 七月 2025 16:23:11 +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