diff --git a/static/js/scenarioEditor/services.js b/static/js/scenarioEditor/services.js index 85efad1..1fb4302 100644 --- a/static/js/scenarioEditor/services.js +++ b/static/js/scenarioEditor/services.js @@ -304,6 +304,7 @@ function Character(id, name) { this.insight = 0; this.defense = 0; this.visible = true; + this.enabled = true; this.voice = "RANDOM" this.components = [{ tags: new Tags(), @@ -419,6 +420,10 @@ Character.BuildFromData = function (data) { char.visible = data.visible; } + if(data.hasOwnProperty("enabled")){ + char.enabled = data.enabled; + } + if(data.hasOwnProperty("voice")){ char.voice = data.voice; } diff --git a/templates/scenarioEditor/charView/charView.html b/templates/scenarioEditor/charView/charView.html index 8e3029b..2c16535 100644 --- a/templates/scenarioEditor/charView/charView.html +++ b/templates/scenarioEditor/charView/charView.html @@ -62,6 +62,14 @@