From: Laszlo T. <ave...@us...> - 2007-02-06 22:20:39
|
Update of /cvsroot/gemrb/gemrb/gemrb/GUIScripts/iwd In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv6634/GUIScripts/iwd Modified Files: GUISTORE.py Log Message: implemented stealing from shops (at least took a huge step in that direction) added StealFailed trigger implemented guiscript with skill check Index: GUISTORE.py =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/GUIScripts/iwd/GUISTORE.py,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** GUISTORE.py 4 Feb 2007 21:35:23 -0000 1.19 --- GUISTORE.py 6 Feb 2007 22:20:38 -0000 1.20 *************** *** 859,868 **** pc = GemRB.GameGetSelectedPCSingle () #skill check, if fails ! failure = 0 ! if failure: ! GemRB.StealFailed () ! else: GemRB.ChangeStoreItem (pc, LeftIndex, SHOP_STEAL) ! UpdateStoreStealWindow () --- 859,870 ---- pc = GemRB.GameGetSelectedPCSingle () #skill check, if fails ! if CheckStat100 (pc, IE_PICKPOCKET, Store['StealFailure']): ! print "success!" GemRB.ChangeStoreItem (pc, LeftIndex, SHOP_STEAL) ! UpdateStoreStealWindow () ! else: ! print "failure!" ! GemRB.StealFailed () ! CloseStoreWindow () |