From 9f3a0a39605d5eab69ef744b41a9bbb5db12a563 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 09 八月 2019 12:22:38 +0800
Subject: [PATCH] 0312 修复莲台装备多个相同技能触发概率计算错误的问题
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuffEffMng.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuffEffMng.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuffEffMng.py
index 133c3e2..5960074 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuffEffMng.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuffEffMng.py
@@ -607,8 +607,8 @@
self.AffectSuperEquipSkillDict[key] = []
self.AffectSuperEquipSkillDict[key].append((skillTypeID, effectID))
- # 效果叠加根据技能个数会衰减 = 1-pow((1-初始值),相同技能个数)
- self.AffectSuperEquipEffectCntDict[effectID] = 1 - pow((1 - curEffect.GetEffectValue(0)),value)
+ # 效果叠加根据技能个数会衰减 = 1-pow((1-初始值/10000.0),相同技能个数)*10000
+ self.AffectSuperEquipEffectCntDict[effectID] = int((1 - pow((1 - curEffect.GetEffectValue(0)/10000.0),value))*10000)
GameWorld.DebugLog("RefreshSuperEquipSkillDict %s-%s"%(self.AffectSuperEquipSkillDict, self.AffectSuperEquipEffectCntDict))
--
Gitblit v1.8.0