From 4657dd5dfde40f302b184fab5fa7345010e1bab5 Mon Sep 17 00:00:00 2001 From: Skriv <skrivelese@gmail.com> Date: Sun, 23 May 2021 23:07:34 +0200 Subject: [PATCH] eye.right/left is undefined --- src/events/intro/pcAppearance.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/events/intro/pcAppearance.js b/src/events/intro/pcAppearance.js index 0b48303789a..188d9d15eae 100644 --- a/src/events/intro/pcAppearance.js +++ b/src/events/intro/pcAppearance.js @@ -52,7 +52,10 @@ App.UI.Player.appearance = function(options, summary = false) { .addValueList(makeAList(App.Medicine.Modification.eyeColor.map(color => color.value))); options.addOption("You", "vision", V.PC.eye.right) - .addValueList([["Need glasses to see properly", 1, () => { V.PC.eye.right = 1; V.PC.eye.left = 1; }], ["have normal vision", 2, () => { V.PC.eye.right = 2; V.PC.eye.left = 2; }]]); + .addValueList([ + ["Need glasses to see properly", 1, () => { V.PC.eye.right.vision = 1; V.PC.eye.left.vision = 1; }], + ["have normal vision", 2, () => { V.PC.eye.right.vision = 2; V.PC.eye.left.vision = 2; }] + ]); options.addOption("Your face is", "faceShape", V.PC) .addValueList([ -- GitLab