10019 【砍树】回合战斗(更新玩家地图缓存错误问题;限制不能与自己PK)
| | |
| | | |
| | | def DoTrunFightVSPlayer(curPlayer, tagPlayerID, callData, PropDict): |
| | | mapID, funcLineID = callData |
| | | if PropDict: |
| | | if PropDict and curPlayer.GetPlayerID() != tagPlayerID: |
| | | tick = GameWorld.GetGameWorld().GetTick() |
| | | DoTrunFight(curPlayer, mapID, funcLineID, tagPlayerID, tick) |
| | | SyncTurnFightState(curPlayer, mapID, funcLineID, tagPlayerID, FightState_Over) |
| | |
| | | #魂石、丹药使用个数
|
| | | curPlayerPlusDict["Fruit"] = PlayerAttrFruit.GetAttrFruitEatCntDict(curPlayer)
|
| | |
|
| | | PyGameData.g_playerViewCache[curPlayer.GePlayerID()] = {"PropData":curPlayerPropDict, "PlusData":curPlayerPlusDict}
|
| | | playerID = curPlayer.GetPlayerID()
|
| | | PyGameData.g_playerViewCache[playerID] = {"PropData":curPlayerPropDict, "PlusData":curPlayerPlusDict}
|
| | | return
|
| | |
|
| | | def GetPlayerPropPlusCache(curPlayer):
|
| | | #玩家属性缓存
|
| | | UpdPlayerPropPlusCache(curPlayer)
|
| | | return GetPlayerPropPlusCacheByID(curPlayer.GePlayerID())
|
| | | return GetPlayerPropPlusCacheByID(curPlayer.GetPlayerID())
|
| | |
|
| | | def GetPlayerPropPlusCacheByID(playerID):
|
| | | #玩家属性缓存
|