@gamelearn/arcade-components 1.4.2 → 1.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -164,13 +164,21 @@ var DecisionComponent = function DecisionComponent(_ref) {
164
164
  } else {
165
165
  playSound('fail');
166
166
 
167
- if (!required || inherited) {
167
+ if (inherited) {
168
168
  emitEvent({
169
169
  type: 'addPoints',
170
170
  payload: choice.rewards,
171
171
  finish: false,
172
172
  complex: true
173
173
  });
174
+ } else if (!required) {
175
+ emitEvent({
176
+ type: 'addPoints',
177
+ payload: choice.rewards,
178
+ finish: true,
179
+ complex: true,
180
+ onFinish: _onFinish
181
+ });
174
182
  }
175
183
  }
176
184
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@gamelearn/arcade-components",
3
3
  "author": "Gamelearn",
4
4
  "license": "unlicense",
5
- "version": "1.4.2",
5
+ "version": "1.4.3",
6
6
  "main": "dist/index.js",
7
7
  "files": [
8
8
  "dist",