| | |
| | | if not onlinePlayerIDDict:
|
| | | return
|
| | |
|
| | | guradID = cityWall.GetCurGuardID()
|
| | | if cityWall.IsGuardNPC(guradID):
|
| | | curGuard = cityWall.guardNPC
|
| | | else:
|
| | | curGuard = zone.GetZoneJoinMember(guradID)
|
| | | guardHP, guradHPMax = 0, 0
|
| | | if curGuard:
|
| | | guardHP, guradHPMax = curGuard.hp, curGuard.hpMax
|
| | | clientPack = ChPyNetSendPack.tagGCFamilyGCZBatCityInfo()
|
| | | clientPack.CityID = cityID
|
| | | clientPack.CityLV = cityWall.cityLV
|
| | | clientPack.FamilyID = cityWall.familyID
|
| | | clientPack.GuardID = cityWall.GetCurGuardID()
|
| | | clientPack.HP = cityWall.hp % ChConfig.Def_PerPointValue
|
| | | clientPack.HPEx = cityWall.hp / ChConfig.Def_PerPointValue
|
| | | clientPack.HPMax = cityWall.hpMax % ChConfig.Def_PerPointValue
|
| | | clientPack.HPMaxEx = cityWall.hpMax / ChConfig.Def_PerPointValue
|
| | | clientPack.GuardID = guradID
|
| | | clientPack.HP = guardHP % ChConfig.Def_PerPointValue
|
| | | clientPack.HPEx = guardHP / ChConfig.Def_PerPointValue
|
| | | clientPack.HPMax = guradHPMax % ChConfig.Def_PerPointValue
|
| | | clientPack.HPMaxEx = guradHPMax / ChConfig.Def_PerPointValue
|
| | | clientPack.AtkPlayerID = atkPlayerID
|
| | | clientPack.AtkRet = atkRet
|
| | | clientPack.KillCnt = killCnt
|