@adatechnology/game-destruction-three 0.17.1 → 0.17.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.
- package/dist/index.global.js +4 -2
- package/dist/index.global.js.map +1 -1
- package/package.json +6 -6
package/dist/index.global.js
CHANGED
|
@@ -244,7 +244,8 @@ var GameDestructionThree = (() => {
|
|
|
244
244
|
var EVENT_BUDGET = { particles: 400, debris: 40, blastLights: 4, fireLights: 2 };
|
|
245
245
|
var explosion_aliases_default = {
|
|
246
246
|
carl_gustaf_84mm: "at4_84mm",
|
|
247
|
-
vog_25: "m79_40mm"
|
|
247
|
+
vog_25: "m79_40mm",
|
|
248
|
+
semtex: "c4"
|
|
248
249
|
};
|
|
249
250
|
var explosions_default = {
|
|
250
251
|
m67: {
|
|
@@ -5768,7 +5769,7 @@ var GameDestructionThree = (() => {
|
|
|
5768
5769
|
const { core, def, random, x, y, z } = context;
|
|
5769
5770
|
const mark = def.mark;
|
|
5770
5771
|
const keepsMarks = !core.marklessAt?.(x, z);
|
|
5771
|
-
if (keepsMarks && mark.crater && mark.dent && y < 1.2) {
|
|
5772
|
+
if (keepsMarks && mark.crater && mark.dent && y < 1.2 && (core.cratersAt?.(x, z) ?? true)) {
|
|
5772
5773
|
core.emit({ type: "crater", x, z, radius: mark.crater, depth: mark.dent });
|
|
5773
5774
|
core.trace?.crater?.(x, z, mark.crater, mark.dent);
|
|
5774
5775
|
addCrater(core.marks, core.ground, random, { x, z, radius: mark.crater, depth: mark.dent, marks: core.layers.mark });
|
|
@@ -7526,6 +7527,7 @@ var GameDestructionThree = (() => {
|
|
|
7526
7527
|
clock: { time: 0, lastBlast: -1, lod: 1, forcedLod: null },
|
|
7527
7528
|
groundAt,
|
|
7528
7529
|
...options.marklessAt ? { marklessAt: options.marklessAt } : {},
|
|
7530
|
+
...options.cratersAt ? { cratersAt: options.cratersAt } : {},
|
|
7529
7531
|
emit: (request) => options.onRequest?.(request)
|
|
7530
7532
|
};
|
|
7531
7533
|
function definitionOf(id) {
|