|  |  |  | 
|---|
|  |  |  | #时间相差过大,可能因网络引起,拉回 | 
|---|
|  |  |  | GameWorld.DebugLog("PlayerMoveCheckClientWorldTick -- 服务器tick %s-客户端%s时间相差过大,可能因网络引起,拉回" % ( | 
|---|
|  |  |  | gameWorldTick, clientWorldTick), curPlayer.GetID()) | 
|---|
|  |  |  | curPlayer.Sync_ClientTick() | 
|---|
|  |  |  | return False | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if gameWorldTick - curPlayer.GetDictByKey("CheckTick") > 60000: | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | curBourseMoney = GetMoney(curPlayer, ShareDefine.TYPE_Price_BourseMoney) | 
|---|
|  |  |  | updBourseMoney = curBourseMoney | 
|---|
|  |  |  | #当是交易所扣费时,则必定扣除交易额度 | 
|---|
|  |  |  | if costType == ChConfig.Def_Cost_BourseBuy: | 
|---|
|  |  |  | #当是交易所扣费、钻石红包时,则必定扣除交易额度 | 
|---|
|  |  |  | if costType in ChConfig.UnUseInner_CostType: | 
|---|
|  |  |  | updBourseMoney = max(0, curBourseMoney - price) | 
|---|
|  |  |  | #其他如果当前金子比交易额度还少,则强制调整交易额度为当前金子数(这种情况一般是非交易所消费的,需要同步扣除交易所可购买额度) | 
|---|
|  |  |  | elif updPlayerGold < updBourseMoney: | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | OnlyFinalHurt = getattr(self, self.__AttrName % ChConfig.TYPE_Calc_OnlyFinalHurt) # 额外输出伤害 | 
|---|
|  |  |  | PVPAtkBackHP = getattr(self, self.__AttrName % ChConfig.TYPE_Calc_PVPAtkBackHP) # PVP攻击回血 | 
|---|
|  |  |  | NPCHurtAddPer = getattr(self, self.__AttrName % ChConfig.TYPE_Calc_NPCHurtAddPer) # 对怪物伤害加成 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #其他需作为公式参数的系数 | 
|---|
|  |  |  | AtkSpeedParameter = fpParam.GetCftAtkSpeed() | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | ## 对怪物伤害加成 | 
|---|
|  |  |  | def GetNPCHurtAddPer(curPlayer): return curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_NPCHurtAddPer) | 
|---|
|  |  |  | def SetNPCHurtAddPer(curPlayer, value): curPlayer.SetDict(ChConfig.Def_PlayerKey_NPCHurtAddPer, value) | 
|---|
|  |  |  | def SetNPCHurtAddPer(curPlayer, value): | 
|---|
|  |  |  | curPlayer.SetDict(ChConfig.Def_PlayerKey_NPCHurtAddPer, value) | 
|---|
|  |  |  | curPlayer.SendPropertyRefresh(ShareDefine.CDBPlayerRefresh_NPCHurtAddPer, value, False) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #---职业伤害加成--- | 
|---|
|  |  |  | ## 目标战士伤害加成 | 
|---|
|  |  |  | def GetJobAHurtAddPer(curPlayer): return curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_JobAHurtAddPer) | 
|---|