@urso/core 0.7.93-dev → 0.7.95-dev

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urso/core",
3
- "version": "0.7.93-dev",
3
+ "version": "0.7.95-dev",
4
4
  "description": "HTML5 game engine",
5
5
  "main": "build/js/index.js",
6
6
  "author": "Megbrimef",
@@ -458,7 +458,10 @@ class PropertyAdapter {
458
458
  return this._getRoundedPercentageOfNumber(object[propertyName], parentValue);
459
459
 
460
460
  case 'boolean':
461
- return this._getPropertyAsNumber(object.parent, propertyName, parentPropertyName)
461
+ if (this._canBeParent(object))
462
+ return this._getPropertyAsNumber(object.parent, propertyName, parentPropertyName);
463
+ else
464
+ return object._baseObject[propertyName];
462
465
 
463
466
  default:
464
467
  Urso.logger.error('Property value not number or string!', object, propertyName);