@adatechnology/game-destruction 0.15.0 → 0.16.0
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/dist/index.global.js +2 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.global.js
CHANGED
|
@@ -2782,6 +2782,7 @@ var GameDestruction = (() => {
|
|
|
2782
2782
|
};
|
|
2783
2783
|
|
|
2784
2784
|
// ../game-contracts/dist/index.js
|
|
2785
|
+
var DEFAULT_BLAST_IMPULSE = { bodyArea: 0.7, lift: 0.15, minSpeed: 0.3, tntPerJoule: 0.24 / 2e5 };
|
|
2785
2786
|
var DEFAULT_COST_READS = 1e4;
|
|
2786
2787
|
var DEFAULT_COST_CEILING_MS = 50;
|
|
2787
2788
|
var DEFAULT_COST_ALLOCATION_BYTES = 1024 * 1024;
|
|
@@ -4767,7 +4768,7 @@ var GameDestruction = (() => {
|
|
|
4767
4768
|
return;
|
|
4768
4769
|
}
|
|
4769
4770
|
if (ex) {
|
|
4770
|
-
emit({ ...base(o, src), type: "explode", part: p.spec.id, point: c, energy: ex.energy, radius: ex.radius, ...ex.lethalRadius !== void 0 ? { lethalRadius: ex.lethalRadius } : {}, ...ex.effect !== void 0 ? { effect: ex.effect } : {} });
|
|
4771
|
+
emit({ ...base(o, src), type: "explode", part: p.spec.id, point: c, energy: ex.energy, radius: ex.radius, ...ex.lethalRadius !== void 0 ? { lethalRadius: ex.lethalRadius } : {}, ...ex.tnt !== void 0 ? { tnt: ex.tnt } : {}, ...ex.effect !== void 0 ? { effect: ex.effect } : {} });
|
|
4771
4772
|
blasts.push({ point: c, energy: ex.energy, radius: ex.radius, ...ex.lethalRadius !== void 0 ? { lethalRadius: ex.lethalRadius } : {}, source: src });
|
|
4772
4773
|
}
|
|
4773
4774
|
partLost(o, p, src);
|