| | |
| | | def GetChatBubbleBox(curPlayer): return curPlayer.GetExAttr10()
|
| | | def SetChatBubbleBox(curPlayer, value): return curPlayer.SetExAttr10(value, False, True)
|
| | |
|
| | | ##伴侣ID
|
| | | def GetCoupleID(curPlayer): return curPlayer.GetExAttr11()
|
| | | def SetCoupleID(curPlayer, coupleID): return curPlayer.SetExAttr11(coupleID, False, False)
|
| | | ##伴侣
|
| | | def GetCoupleID(curPlayer):
|
| | | coupleInfo = GetCoupleInfo(curPlayer.GetPlayerID())
|
| | | return coupleInfo[0] if coupleInfo else 0
|
| | | def GetCoupleName(curPlayer):
|
| | | coupleInfo = GetCoupleInfo(curPlayer.GetPlayerID())
|
| | | return coupleInfo[1] if coupleInfo else ""
|
| | | def GetCoupleJob(curPlayer):
|
| | | coupleInfo = GetCoupleInfo(curPlayer.GetPlayerID())
|
| | | return coupleInfo[2] if coupleInfo else 1
|
| | | def GetBridePriceMaxID(curPlayer):
|
| | | coupleInfo = GetCoupleInfo(curPlayer.GetPlayerID())
|
| | | return coupleInfo[3] if coupleInfo else 0
|
| | | def GetCoupleInfo(playerID):
|
| | | if playerID not in PyGameData.g_coupleInfo:
|
| | | return
|
| | | return PyGameData.g_coupleInfo[playerID]
|
| | | def SetCoupleInfo(playerID, coupleInfo):
|
| | | if not coupleInfo:
|
| | | PyGameData.g_coupleInfo.pop(playerID, None)
|
| | | else:
|
| | | PyGameData.g_coupleInfo[playerID] = coupleInfo
|
| | | return
|
| | |
|
| | | ## 玩家所属服务器组ID
|
| | | def GetPlayerServerGroupID(curPlayer): return curPlayer.GetExAttr13()
|