Finished implementing basic item library
This commit is contained in:
12
dataSources/srd/srdimport.js
Normal file
12
dataSources/srd/srdimport.js
Normal file
@@ -0,0 +1,12 @@
|
||||
// Only do if the library doesn't exist yet
|
||||
id = Libraries.insert({
|
||||
_id: "SRDLibraryGA3XWsd",
|
||||
owner: Meteor.userId(),
|
||||
name: "SRD Library",
|
||||
});
|
||||
|
||||
_.each(items, (item) => {
|
||||
item.settings = {category: }; // "adventuringGear", "armor", "weapons", "tools"
|
||||
item.library = "SRDLibraryGA3XWsd"
|
||||
LibraryItems.insert(item)
|
||||
});
|
||||
Reference in New Issue
Block a user