10033 【后端】仙树升级系统及砍树产出规则(仙树等级前后端统一:从1开始,1代表1级;)
| | |
| | | Def_PDict_CustomAwardGetState = "CustomAwardGetState_%s" # 是否已领取,参数(key编号)
|
| | |
|
| | | #仙树
|
| | | Def_PDict_TreeLV = "TreeLV" # 仙树等级
|
| | | Def_PDict_TreeLV = "TreeLV" # 仙树等级,从1开始,代表1级
|
| | | Def_PDict_TreeLVUPState = "TreeLVUPState" # 仙树升级状态;0-未升级;1-升级中
|
| | | Def_PDict_TreeLVUPRemainTime = "TreeLVUPRemainTime" # 仙树升级剩余时间,秒
|
| | | Def_PDict_TreeLVUPRefreshTime = "TreeLVUPRefreshTime" # 仙树升级上次刷新时间戳
|
| | |
| | | import time
|
| | |
|
| | | def OnPlayerLogin(curPlayer):
|
| | | treeLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_TreeLV)
|
| | | if not treeLV:
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_TreeLV, 1)
|
| | | RefreshTreeLVUPTime(curPlayer)
|
| | | SyncTreeInfo(curPlayer)
|
| | | return
|