| | |
| | | NetPackCommon.SendFakePack(curPlayer, clientPack)
|
| | | return
|
| | |
|
| | | #// B3 19 提升魅力等级 #tagCGCharmLVUp
|
| | | #
|
| | | #struct tagCGCharmLVUp
|
| | | #{
|
| | | # tagHead Head;
|
| | | #};
|
| | | def OnCharmLVUp(index, clientData, tick):
|
| | | curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index) |
| | | playerID = curPlayer.GetPlayerID()
|
| | | |
| | | totalCharm = 0
|
| | | charmValueRecMgr = PyDataManager.GetDBPyCharmValueRecManager()
|
| | | if playerID in charmValueRecMgr.charmTotalDict:
|
| | | recTypeValueDict = charmValueRecMgr.charmTotalDict.get(playerID, {})
|
| | | totalCharm = recTypeValueDict.get(CharmValueRecType_Total, 0)
|
| | | |
| | | PlayerControl.MapServer_QueryPlayer_DoLogic(curPlayer, "Charm", ["CharmLVUp", totalCharm], curPlayer.GetID())
|
| | | return
|
| | |
|
| | | def GMClearCharm():
|
| | | ## GM清空魅力
|