From dd8943ea8cfb086f4b6a5e1057998faacc564bf6 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 27 Nov 2022 00:43:15 -0400 Subject: Flash jumpColor inherits from color --- src/data/things.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/data') diff --git a/src/data/things.js b/src/data/things.js index 3388046..ee45800 100644 --- a/src/data/things.js +++ b/src/data/things.js @@ -1461,7 +1461,16 @@ FlashAct.propertyDescriptors = { color: Thing.common.color(), anchor: Thing.common.simpleString(), jump: Thing.common.simpleString(), - jumpColor: Thing.common.color(), + + jumpColor: { + flags: {update: true, expose: true}, + update: {validate: isColor}, + expose: { + dependencies: ['color'], + transform: (jumpColor, {color}) => + jumpColor ?? color, + } + }, flashesByRef: Thing.common.referenceList(Flash), -- cgit 1.3.0-6-gf8a5