microboard-temp 0.4.23 → 0.4.24

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.
@@ -46374,7 +46374,7 @@ class Dice extends BaseItem {
46374
46374
  });
46375
46375
  }
46376
46376
  throwDice() {
46377
- this.setValue(Math.ceil(Math.random() * (this.range.max - this.range.min)) + this.range.min);
46377
+ this.setValue(Math.floor(Math.random() * (this.range.max - this.range.min + 1)) + this.range.min);
46378
46378
  }
46379
46379
  apply(op) {
46380
46380
  super.apply(op);
package/dist/cjs/index.js CHANGED
@@ -46374,7 +46374,7 @@ class Dice extends BaseItem {
46374
46374
  });
46375
46375
  }
46376
46376
  throwDice() {
46377
- this.setValue(Math.ceil(Math.random() * (this.range.max - this.range.min)) + this.range.min);
46377
+ this.setValue(Math.floor(Math.random() * (this.range.max - this.range.min + 1)) + this.range.min);
46378
46378
  }
46379
46379
  apply(op) {
46380
46380
  super.apply(op);
package/dist/cjs/node.js CHANGED
@@ -48914,7 +48914,7 @@ class Dice extends BaseItem {
48914
48914
  });
48915
48915
  }
48916
48916
  throwDice() {
48917
- this.setValue(Math.ceil(Math.random() * (this.range.max - this.range.min)) + this.range.min);
48917
+ this.setValue(Math.floor(Math.random() * (this.range.max - this.range.min + 1)) + this.range.min);
48918
48918
  }
48919
48919
  apply(op) {
48920
48920
  super.apply(op);
@@ -46224,7 +46224,7 @@ class Dice extends BaseItem {
46224
46224
  });
46225
46225
  }
46226
46226
  throwDice() {
46227
- this.setValue(Math.ceil(Math.random() * (this.range.max - this.range.min)) + this.range.min);
46227
+ this.setValue(Math.floor(Math.random() * (this.range.max - this.range.min + 1)) + this.range.min);
46228
46228
  }
46229
46229
  apply(op) {
46230
46230
  super.apply(op);
package/dist/esm/index.js CHANGED
@@ -46217,7 +46217,7 @@ class Dice extends BaseItem {
46217
46217
  });
46218
46218
  }
46219
46219
  throwDice() {
46220
- this.setValue(Math.ceil(Math.random() * (this.range.max - this.range.min)) + this.range.min);
46220
+ this.setValue(Math.floor(Math.random() * (this.range.max - this.range.min + 1)) + this.range.min);
46221
46221
  }
46222
46222
  apply(op) {
46223
46223
  super.apply(op);
package/dist/esm/node.js CHANGED
@@ -48752,7 +48752,7 @@ class Dice extends BaseItem {
48752
48752
  });
48753
48753
  }
48754
48754
  throwDice() {
48755
- this.setValue(Math.ceil(Math.random() * (this.range.max - this.range.min)) + this.range.min);
48755
+ this.setValue(Math.floor(Math.random() * (this.range.max - this.range.min + 1)) + this.range.min);
48756
48756
  }
48757
48757
  apply(op) {
48758
48758
  super.apply(op);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.4.23",
3
+ "version": "0.4.24",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",