From: Laszlo T. <ave...@us...> - 2006-07-29 18:17:57
|
Update of /cvsroot/gemrb/gemrb/gemrb/GUIScripts/bg2 In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv10727/GUIScripts/bg2 Modified Files: GUIINV.py Log Message: improved autoequipping/item transfer between actors implemented itemexcl.2da handling implemented itemdial.2da handling Index: GUIINV.py =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/GUIScripts/bg2/GUIINV.py,v retrieving revision 1.46 retrieving revision 1.47 diff -C2 -d -r1.46 -r1.47 *** GUIINV.py 21 Jul 2006 15:14:47 -0000 1.46 --- GUIINV.py 29 Jul 2006 18:17:25 -0000 1.47 *************** *** 430,444 **** def OnAutoEquip (): - print "AUTOEQUP" if not GemRB.IsDraggingItem (): return - print "AUTOEQUP" pc = GemRB.GameGetSelectedPCSingle () ! #don't try to put stuff in the inventory ! for i in range (21): ! GemRB.DropDraggedItem (pc, i+1) ! if not GemRB.IsDraggingItem (): ! break if GemRB.IsDraggingItem (): --- 430,440 ---- def OnAutoEquip (): if not GemRB.IsDraggingItem (): return pc = GemRB.GameGetSelectedPCSingle () ! ! # -1 : drop stuff in equipable slots (but not inventory) ! GemRB.DropDraggedItem (pc, -1) if GemRB.IsDraggingItem (): *************** *** 467,471 **** pc = GemRB.GetVar ("PressedPortrait") + 1 ! GemRB.DropDraggedItem (pc, -1) if GemRB.IsDraggingItem (): GemRB.PlaySound("GAM_47") #failed equip --- 463,468 ---- pc = GemRB.GetVar ("PressedPortrait") + 1 ! # -3 : drop stuff in inventory (but not equippable slots) ! GemRB.DropDraggedItem (pc, -3) if GemRB.IsDraggingItem (): GemRB.PlaySound("GAM_47") #failed equip |