From: Jarda B. <edh...@us...> - 2004-12-02 22:11:54
|
Update of /cvsroot/gemrb/gemrb/gemrb/GUIScripts/pst In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18539/GUIScripts/pst Modified Files: GUIREC.py Log Message: Applied lotana's patch #1074925 - names for character states Some comments on PC's race/species Index: GUIREC.py =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/GUIScripts/pst/GUIREC.py,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** GUIREC.py 15 Nov 2004 00:20:54 -0000 1.26 --- GUIREC.py 2 Dec 2004 22:11:44 -0000 1.27 *************** *** 221,226 **** # race RaceTable = GemRB.LoadTable ("RACES") ! text = GemRB.GetTableValue (RaceTable, GemRB.GetPlayerStat (pc, IE_RACE) - 1, 0) GemRB.UnloadTable (RaceTable) --- 221,229 ---- # race + # FIXME: for some strange reason, Morte is 1 (Human) in the save files, + # instead of 45 (Morte) RaceTable = GemRB.LoadTable ("RACES") ! print "species: %d race: %d" %(GemRB.GetPlayerStat (pc, IE_SPECIES), GemRB.GetPlayerStat (pc, IE_RACE)) ! text = GemRB.GetTableValue (RaceTable, GemRB.GetPlayerStat (pc, IE_SPECIES) - 1, 0) GemRB.UnloadTable (RaceTable) *************** *** 526,531 **** # 59856 Current State ! CurrentState = won + GemRB.GetString (59856) + woff + "\n\n" ! # 67049 AC Bonuses --- 529,537 ---- # 59856 Current State ! StatesTable = GemRB.LoadTable ("states") ! StateID = GS (IE_STATE_ID) ! State = GemRB.GetString (GemRB.GetTableValue (StatesTable, str (StateID), "NAME_REF")) ! CurrentState = won + GemRB.GetString (59856) + woff + "\n" + State + "\n\n" ! GemRB.UnloadTable (StatesTable) # 67049 AC Bonuses |