10019 【砍树】回合战斗(回合战斗Msg补发玩家ModelMark信息)
| | |
| | | |
| | | def GetPlayerFactionInfoByCache(playerID): |
| | | ## 根据玩家缓存数据获取对阵玩家阵营信息字典 |
| | | _, PlusDict = PlayerViewCacheTube.GetPlayerPropPlusDictByID(playerID, True) # 从缓存中获取,强刷一次最新属性 |
| | | PropDict, PlusDict = PlayerViewCacheTube.GetPlayerPropPlusDictByID(playerID, True) # 从缓存中获取,强刷一次最新属性 |
| | | skillIDList = [] |
| | | SkillInfo = PlusDict.get("SkillInfo", {}) |
| | | for _, skillLVDict in SkillInfo.items(): |
| | |
| | | if not skillData: |
| | | continue |
| | | skillIDList.append(skillID) |
| | | return {"playerID":playerID, "pet":PlusDict.get("Pet"), "skillIDList":skillIDList} |
| | | return {"playerID":playerID, "pet":PlusDict.get("Pet"), "skillIDList":skillIDList, "ModelMark":PropDict.get("ModelMark", 0)} |
| | | |
| | | def ProcessAutoTurnFight(mapID, funcLineID, tagType, tagID, factionInfoA, factionInfoB, tick, syncPlayer=None, isSavePlayback=False): |
| | | ''' 处理自动回合战斗过程,仅做战斗流程处理,不做及其他功能逻辑 |
| | |
| | | npcID = ChConfig.Def_NPCID_PVP |
| | | mainObj = NPCCommon.SummonMapNpc(npcID, posX, posY, sightLevel=sightLevel, mirrorPlayerID=playerID, skillIDList=skillIDList, skillIDExList=skillIDExList) |
| | | factionSyncInfo["playerID"] = playerID |
| | | factionSyncInfo["ModelMark"] = objInfo.get("ModelMark", 0) |
| | | elif npcID: |
| | | mainObj = NPCCommon.SummonMapNpc(npcID, posX, posY, sightLevel=sightLevel, skillIDList=skillIDList, skillIDExList=skillIDExList) |
| | | factionSyncInfo["npcID"] = npcID |