mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-27 17:57:22 -04:00
Merge pull request #932 from zingzing175/master
Loot collection items will now delete if added to collection.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user