From: <ma...@us...> - 2009-05-29 02:48:28
|
Revision: 6174 http://gemrb.svn.sourceforge.net/gemrb/?rev=6174&view=rev Author: mattinm Date: 2009-05-29 02:48:26 +0000 (Fri, 29 May 2009) Log Message: ----------- rangers start with 2 free points in 2 weapon style (including when dualing to) Modified Paths: -------------- gemrb/trunk/gemrb/GUIScripts/bg2/LUProfsSelection.py Modified: gemrb/trunk/gemrb/GUIScripts/bg2/LUProfsSelection.py =================================================================== --- gemrb/trunk/gemrb/GUIScripts/bg2/LUProfsSelection.py 2009-05-29 02:17:03 UTC (rev 6173) +++ gemrb/trunk/gemrb/GUIScripts/bg2/LUProfsSelection.py 2009-05-29 02:48:26 UTC (rev 6174) @@ -158,18 +158,22 @@ ProfCount = RowCount-ProfsNumButtons #decrease it with the number of controls ProfsAssignable = 0 + TwoWeapIndex = ProfsTable.GetRowIndex ("2WEAPON") for i in range(RowCount): ProfName = ProfsTable.GetValue (i+8, 1) #decrease it with the number of invalid proficiencies if ProfName > 0x1000000 or ProfName < 0: ProfCount -= 1 - #we only need the low 3 bits for profeciencies unless we're dualing, then - #we just want to set them all to 0 + #we only need the low 3 bits for profeciencies on levelup; otherwise + #we just set them all to 0 currentprof = 0 - if type != LUPROFS_TYPE_DUALCLASS: + if type == LUPROFS_TYPE_LEVELUP: currentprof = GemRB.GetPlayerStat (pc, ProfsTable.GetValue (i+8, 0))&0x07 else: + #rangers always get 2 points in 2 weapons style + if (i+8) == TwoWeapIndex and "RANGER" in ClassName.split("_"): + currentprof = 2 GemRB.SetVar ("Prof "+str(i), currentprof) GemRB.SetVar ("ProfBase "+str(i), currentprof) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |