Merge pull request #932 from zingzing175/master

Loot collection items will now delete if added to collection.
This commit is contained in:
Seefo
2014-06-21 03:54:10 -04:00
18 changed files with 229 additions and 23 deletions
@@ -11,8 +11,9 @@ def handleSelection(core, actor, target, option):
if option == 21 and target:
if target.getAttachment('CollectionItemName'):
print (target.getAttachment('CollectionItemName'))
core.collectionService.addCollection(actor, target.getAttachment('CollectionItemName'))
core.objectService.useObject(actor, target)
#core.objectService.destroyObject(target)
if core.collectionService.isComplete(actor, target.getAttachment('CollectionItemName')) == False:
core.collectionService.addCollection(actor, target.getAttachment('CollectionItemName'))
core.objectService.useObject(actor, target)
core.objectService.destroyObject(target)
return