From f54f653bb75b2f3679cf821d745ae707a0b92026 Mon Sep 17 00:00:00 2001 From: thislooksfun Date: Tue, 10 Sep 2019 16:03:42 -0500 Subject: [PATCH] Add section comments --- .../currentCharacter/editMode/actions.js | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/store/modules/Characters/currentCharacter/editMode/actions.js b/src/store/modules/Characters/currentCharacter/editMode/actions.js index 93c4d2de..c57936ff 100644 --- a/src/store/modules/Characters/currentCharacter/editMode/actions.js +++ b/src/store/modules/Characters/currentCharacter/editMode/actions.js @@ -59,6 +59,7 @@ export default { // TODO: Implement Skills + // Creation Wizard creationWizardFirstStage({ commit }) { commit("CREATION_WIZARD_FIRST_STAGE", { uuid: routedUUID() }); }, @@ -71,7 +72,29 @@ export default { creationWizardClose({ commit }) { commit("CREATION_WIZARD_CLOSE", { uuid: routedUUID() }); }, + + // Misc addEffect({ commit }, { name, value }) { commit("ADD_EFFECT", { uuid: routedUUID(), name, value }); }, + // 'circle' is 1-based + // TODO: Implement this: + // circleUp({ commit, dispatch, state }, { circle }) { + // // const uuid = routedUUID(); + // // // NOTE: This creates a CLONE of the character object, so any setters here + // // // won't work (though they shouldn't be used outside of the mutator itself + // // // anyway). + // // const char = decorate(state.characters[uuid]); + + // // // Set circle + // // commit("SET_CIRCLE", { uuid, circle }); + + // // // Create any missing talent slots + // // commit("ADD_TALENT_OPTIONS_UNTIL", { uuid, circle }); + + // // Assign discipline talents + // // circle index here is 0-based + // const dTalents = char.discipline.circle[circle - 1]; + // console.log(dTalents); + // }, };