Vastly improved new character UX
Characters now can limit which libraries they allow
This commit is contained in:
@@ -131,15 +131,14 @@ function insertPropertyFromNode(nodeId, ancestors, order){
|
||||
node.order = order;
|
||||
}
|
||||
|
||||
// Mark root as dirty
|
||||
node.dirty = true;
|
||||
// Mark all nodes as dirty
|
||||
dirtyNodes(nodes);
|
||||
|
||||
// Insert the creature properties
|
||||
CreatureProperties.batchInsert(nodes);
|
||||
return node;
|
||||
}
|
||||
|
||||
|
||||
function storeLibraryNodeReferences(nodes){
|
||||
nodes.forEach(node => {
|
||||
if (node.libraryNodeId) return;
|
||||
@@ -147,6 +146,12 @@ function storeLibraryNodeReferences(nodes){
|
||||
});
|
||||
}
|
||||
|
||||
function dirtyNodes(nodes) {
|
||||
nodes.forEach(node => {
|
||||
node.dirty = true;
|
||||
});
|
||||
}
|
||||
|
||||
// Covert node references into actual nodes
|
||||
// TODO: check permissions for each library a reference node references
|
||||
function reifyNodeReferences(nodes, visitedRefs = new Set(), depth = 0){
|
||||
|
||||
Reference in New Issue
Block a user