| | |
| | | npcCnt += totalMaxCnt
|
| | | NPCCustomRefresh.ProcessAllNPCRefresh(tick) # 立即出发一次标识点刷新
|
| | | gameFB.SetGameFBDict(FBPlayerDict_RemainNPCCnt, npcCnt)
|
| | | |
| | | GameWorld.DebugLog('设置开始刷怪 remainNPCCnt=%s'%npcCnt)
|
| | | # 副本开始
|
| | | FBCommon.SetFBStep(FB_Step_Fighting, tick)
|
| | | FBCommon.Sync_Player_TimeTick(IPY_GameWorld.tttTowerTake, stepTimeCfg[Def_FightTime] * 1000)
|
| | |
| | | return False
|
| | | return True
|
| | |
|
| | | def __OnKillNPC(attacker, curNPC, tick):
|
| | | def __OnKillNPC(curNPC, tick):
|
| | | gameFB = GameWorld.GetGameFB()
|
| | | npcid = curNPC.GetNPCID()
|
| | | npcCfg = GetIceLodeNPCCfg()
|
| | |
| | |
|
| | | remainNPCCnt = max(0, gameFB.GetGameFBDictByKey(FBPlayerDict_RemainNPCCnt) - 1)
|
| | | gameFB.SetGameFBDict(FBPlayerDict_RemainNPCCnt, remainNPCCnt)
|
| | | |
| | | GameWorld.DebugLog('__OnKillNPC remainNPCCnt=%s'%remainNPCCnt)
|
| | | if remainNPCCnt <=0 or npcid in IpyGameDataPY.GetFuncEvalCfg('IceLodeSpecial'):
|
| | | __DoIceLodeOver(True)
|
| | | return
|
| | |
|
| | | def DoFB_Npc_KillNPC(attacker, curNPC, tick):
|
| | | __OnKillNPC(attacker, curNPC, tick)
|
| | | def DoFB_NPCDead(curNPC):
|
| | | __OnKillNPC(curNPC, GameWorld.GetGameWorld().GetTick())
|
| | | return
|
| | |
|
| | | #def DoFB_Npc_KillNPC(attacker, curNPC, tick):
|
| | | # GameWorld.Log('__OnKillNPC 1111111111')
|
| | | # __OnKillNPC(attacker, curNPC, tick)
|
| | | # return
|
| | |
|
| | | ## 执行副本杀怪逻辑
|
| | | # @param curPlayer 杀怪的人
|
| | | # @param curNPC 被杀的怪
|
| | | # @param tick 当前时间
|
| | | # @return None
|
| | | def DoFB_Player_KillNPC(curPlayer, curNPC, tick):
|
| | | __OnKillNPC(curPlayer, curNPC, tick)
|
| | | |
| | | #def DoFB_Player_KillNPC(curPlayer, curNPC, tick):
|
| | | # GameWorld.Log('__OnKillNPC 2222222222')
|
| | | # __OnKillNPC(curPlayer, curNPC, tick)
|
| | | # |
| | |
|
| | | # addPoint = GetPointByNPCID(npcid)
|
| | | # if not addPoint:
|
| | |
| | | GameWorld.DebugLog("冰晶矿脉扫荡仙玉不足!costGold=%s" % (costMoney))
|
| | | return
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_IceLodeHasSweep, 1)
|
| | | |
| | | SyncIceLoddInfo(curPlayer)
|
| | | return True
|
| | |
|
| | | ## 扫荡结果
|