| | |
| | | import EventReport
|
| | | import PlayerGoldGift
|
| | | import PlayerMagicWeapon
|
| | | import ChPlayer
|
| | |
|
| | | #---副本配置对应key值---
|
| | | (
|
| | |
| | | playerManager = GameWorld.GetMapCopyPlayerManager()
|
| | | if playerManager.GetPlayerCount() > 0:
|
| | | curPlayer = playerManager.GetPlayerByIndex(0)
|
| | | if curPlayer.GetHP() <=0:
|
| | | ChPlayer.PlayerRebornByType(curPlayer, ChConfig.rebornType_System, tick)
|
| | | else:
|
| | | curPlayer.SetHP(curPlayer.GetMaxHP())
|
| | | DoFBHelp(curPlayer, tick)
|
| | |
|
| | | FBCommon.SetFBStep(FB_Step_Fighting, tick)
|
| | |
| | | if isPass:
|
| | | EventReport.WriteEvent_FB(curPlayer, ChConfig.Def_FBMapID_MagicWeapon, 0, ChConfig.CME_Log_End, 0, 1)
|
| | |
|
| | | if lineID == IpyGameDataPY.GetFuncCfg('FirstGoldTryItem', 3):
|
| | | if not isPass:
|
| | | #副本指定线路失败了,进入首充试用引导
|
| | | if not curPlayer.GetChangeCoinPointTotal() and not curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_FirstGoldTry):
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_FirstGoldTry, 1)
|
| | | PlayerGoldGift.Sync_FirstGoldInfo(curPlayer)
|
| | | else:
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_FirstGoldTry, 0)
|
| | | # if lineID == IpyGameDataPY.GetFuncCfg('FirstGoldTryItem', 3):
|
| | | # if not isPass:
|
| | | # #副本指定线路失败了,进入首充试用引导
|
| | | # if not curPlayer.GetChangeCoinPointTotal() and not curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_FirstGoldTry):
|
| | | # PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_FirstGoldTry, 1)
|
| | | # PlayerGoldGift.Sync_FirstGoldInfo(curPlayer)
|
| | | # else:
|
| | | # PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_FirstGoldTry, 0)
|
| | | return
|
| | |
|
| | |
|