Renamed addDefaultAttributes to addDefaultStats

This commit is contained in:
Stefan Zermatten
2018-08-28 09:57:09 +02:00
parent bc26a77f92
commit 9fccc3be61

View File

@@ -91,12 +91,12 @@ const insertCharacterMethod = new ValidatedMethod({
// Create the character document // Create the character document
Characters.insert({name, owner: this.userId}); Characters.insert({name, owner: this.userId});
//Add all the required attributes to it //Add all the required attributes to it
addDefaultAttributes(charId); addDefaultStats(charId);
}, },
}); });
const addDefaultAttributes function(charId){ const addDefaultStats function(charId){
const stats = DEFAULT_CHARACTER_STATS; const stats = DEFAULT_CHARACTER_STATS;
let order = 0; let order = 0;
const baseParent = { const baseParent = {