@adatechnology/game-vfx 0.8.0 → 0.9.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.d.ts +4 -0
- package/dist/index.global.js +2 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5805,7 +5805,7 @@ function composeAfterEffects(context) {
|
|
|
5805
5805
|
const { core, def, random, x, y, z } = context;
|
|
5806
5806
|
const mark = def.mark;
|
|
5807
5807
|
const keepsMarks = !core.marklessAt?.(x, z);
|
|
5808
|
-
if (keepsMarks && mark.crater && mark.dent && y < 1.2) {
|
|
5808
|
+
if (keepsMarks && mark.crater && mark.dent && y < 1.2 && (core.cratersAt?.(x, z) ?? true)) {
|
|
5809
5809
|
core.emit({ type: "crater", x, z, radius: mark.crater, depth: mark.dent });
|
|
5810
5810
|
core.trace?.crater?.(x, z, mark.crater, mark.dent);
|
|
5811
5811
|
addCrater(core.marks, core.ground, random, { x, z, radius: mark.crater, depth: mark.dent, marks: core.layers.mark });
|
|
@@ -7607,6 +7607,7 @@ function createVfx(options = {}) {
|
|
|
7607
7607
|
clock: { time: 0, lastBlast: -1, lod: 1, forcedLod: null },
|
|
7608
7608
|
groundAt,
|
|
7609
7609
|
...options.marklessAt ? { marklessAt: options.marklessAt } : {},
|
|
7610
|
+
...options.cratersAt ? { cratersAt: options.cratersAt } : {},
|
|
7610
7611
|
emit: (request) => options.onRequest?.(request)
|
|
7611
7612
|
};
|
|
7612
7613
|
function definitionOf(id) {
|