6349 【后端】【2.0】boss掉血根据人数加快
| | |
| | | return
|
| | |
|
| | | buffType = SkillCommon.GetBuffType(skillBuff)
|
| | | BuffSkill.DoAddBuff(curPlayer, buffType, skillBuff, tick)
|
| | | |
| | | gameFB.SetPlayerGameFBDict(ownerID, key, encourageLV+1)
|
| | | gameFB.SetPlayerGameFBDict(ownerID, encourageCntKey, encourageCnt+1)
|
| | | #GameWorld.Log("FbEncourageBuff encourage nextLV=%s success" % encourageLV)
|
| | |
| | | continue
|
| | | if player.GetFamilyID() != ownerID:
|
| | | continue
|
| | | BuffSkill.DoAddBuff(player, buffType, skillBuff, tick)
|
| | | PlayerControl.NotifyCode(player, "AllianceBossText2", [curPlayer.GetName(), encourageLV+1])
|
| | | SendFBEncourageInfo(player, encourageLV+1, ownerID)
|
| | | if player.GetID() == curPlayer.GetID():
|
| | |
| | | EventShell.EventRespons_FBEncourage(curPlayer, curMapID)
|
| | |
|
| | | else:
|
| | | BuffSkill.DoAddBuff(curPlayer, buffType, skillBuff, tick)
|
| | | PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_628920", [(encourageLV+1)*addHurtNum])
|
| | | SendFBEncourageInfo(curPlayer, encourageLV+1, ownerID)
|
| | | #成就
|
| | |
| | | (
|
| | | Def_BossTime, #BOSS时间
|
| | | Def_LeaveTime, #离开时间
|
| | | ) = range(2)
|
| | | Def_HPSpeed, #掉血速度公式
|
| | | ) = range(3)
|
| | |
|
| | | #当前副本地图的状态
|
| | | (
|
| | |
| | | if lineID < 0:
|
| | | return
|
| | |
|
| | | curSpeed = int(min(1 + 0.08 * (playerCnt - 1), 1.8) * 1000)
|
| | | |
| | | curSpeed = eval(FBCommon.GetFBLineStepTime(ChConfig.Def_FBMapID_AllFamilyBoss, lineID)[Def_HPSpeed])
|
| | | gameWorld.SetGameWorldDict(FBDict_Speed, curSpeed)
|
| | | if not gameWorld.GetGameWorldDictByKey(FBDict_IsReduceing):
|
| | | return
|