From: <ma...@us...> - 2009-06-06 05:43:40
|
Revision: 6307 http://gemrb.svn.sourceforge.net/gemrb/?rev=6307&view=rev Author: mattinm Date: 2009-06-06 05:43:39 +0000 (Sat, 06 Jun 2009) Log Message: ----------- mixed up IE_LEVELDRAIN effect with IE_CLASSLEVELSUM stat (both 216) Modified Paths: -------------- gemrb/trunk/gemrb/GUIScripts/bg2/GUICommonWindows.py Modified: gemrb/trunk/gemrb/GUIScripts/bg2/GUICommonWindows.py =================================================================== --- gemrb/trunk/gemrb/GUIScripts/bg2/GUICommonWindows.py 2009-06-06 00:43:23 UTC (rev 6306) +++ gemrb/trunk/gemrb/GUIScripts/bg2/GUICommonWindows.py 2009-06-06 05:43:39 UTC (rev 6307) @@ -1360,17 +1360,8 @@ Levels = [GemRB.GetPlayerStat (actor, IE_LEVEL), GemRB.GetPlayerStat (actor, IE_LEVEL2),\ GemRB.GetPlayerStat (actor, IE_LEVEL3)] - if Multi[0]<2: - if IsDualSwap (actor): - Levels = [Levels[1], Levels[0]] - else: - Levels = [Levels[0], Levels[1]] - #we only want the active classes for IE_CLASSLEVELSUM - if Dual[0]>0 and Levels[0] <= Levels[1]: - Levels = [Levels[0]] - - #TODO: better way to check for level drain? - if sum(Levels) != GemRB.GetPlayerStat(actor, IE_CLASSLEVELSUM): + #TODO: double-check this + if GemRB.GetPlayerStat(actor, IE_LEVELDRAIN)>0: return 0 if Multi[0] > 1: # multiclassed This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |