@adatechnology/game-destruction-three 0.17.0 → 0.17.2

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.
@@ -5768,7 +5768,7 @@ var GameDestructionThree = (() => {
5768
5768
  const { core, def, random, x, y, z } = context;
5769
5769
  const mark = def.mark;
5770
5770
  const keepsMarks = !core.marklessAt?.(x, z);
5771
- if (keepsMarks && mark.crater && mark.dent && y < 1.2) {
5771
+ if (keepsMarks && mark.crater && mark.dent && y < 1.2 && (core.cratersAt?.(x, z) ?? true)) {
5772
5772
  core.emit({ type: "crater", x, z, radius: mark.crater, depth: mark.dent });
5773
5773
  core.trace?.crater?.(x, z, mark.crater, mark.dent);
5774
5774
  addCrater(core.marks, core.ground, random, { x, z, radius: mark.crater, depth: mark.dent, marks: core.layers.mark });
@@ -7526,6 +7526,7 @@ var GameDestructionThree = (() => {
7526
7526
  clock: { time: 0, lastBlast: -1, lod: 1, forcedLod: null },
7527
7527
  groundAt,
7528
7528
  ...options.marklessAt ? { marklessAt: options.marklessAt } : {},
7529
+ ...options.cratersAt ? { cratersAt: options.cratersAt } : {},
7529
7530
  emit: (request) => options.onRequest?.(request)
7530
7531
  };
7531
7532
  function definitionOf(id) {