From: Laszlo T. <ave...@us...> - 2005-08-28 13:20:27
|
Update of /cvsroot/gemrb/gemrb/gemrb/GUIScripts/tob In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14490/GUIScripts/tob Modified Files: GUIREC.py Log Message: Core:Implemented MaximumAbility, ability dependent bonus tables GUIScript:Implemented GetAbilityBonus bg2: using GetAbilityBonus to display ability dependant values Index: GUIREC.py =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/GUIScripts/tob/GUIREC.py,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** GUIREC.py 27 Aug 2005 10:40:36 -0000 1.17 --- GUIREC.py 28 Aug 2005 13:20:19 -0000 1.18 *************** *** 283,287 **** text = GemRB.GetTableValue (table, i, 1) stat = GemRB.GetTableValue (table, i, 0) - print "stat: ",stat, " value: ",GS(stat) stats.append ( (text, GS(stat), '+') ) stats.append (None) --- 283,286 ---- *************** *** 299,303 **** stats.append (None) ! # 32204 Resistances stats.append (32204) --- 298,321 ---- stats.append (None) ! # 10315 Ability bonuses ! stats.append (10315) ! value = GemRB.GetPlayerStat (pc, IE_STR) ! ex = GemRB.GetPlayerStat (pc, IE_STREXTRA) ! # 10332 to hit ! stats.append ( (10332, GemRB.GetAbilityBonus(IE_STR,0,value,ex), '') ) ! # 10336 damage ! stats.append ( (10336, GemRB.GetAbilityBonus(IE_STR,1,value,ex), '') ) ! # 10337 open doors (bend bars lift gates) ! stats.append ( (10337, GemRB.GetAbilityBonus(IE_STR,2,value,ex), '') ) ! # 10338 weight allowance ! stats.append ( (10338, GemRB.GetAbilityBonus(IE_STR,3,value,ex), '') ) ! # 10339 AC ! stats.append ( (10339, GemRB.GetAbilityBonus(IE_DEX,2,value,ex), '') ) ! # 10340 Missile ! stats.append ( (10340, GemRB.GetAbilityBonus(IE_DEX,1,value,ex), '') ) ! # 10341 Reaction ! stats.append ( (10341, GemRB.GetAbilityBonus(IE_DEX,0,value,ex), '') ) ! stats.append (0) ! # 32204 Resistances stats.append (32204) |