@adatechnology/game-fluids-three 0.4.14 → 0.4.16
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 +5 -5
package/dist/index.global.js
CHANGED
|
@@ -157,7 +157,8 @@ var GameFluidsThree = (() => {
|
|
|
157
157
|
var EVENT_BUDGET = { particles: 400, debris: 40, blastLights: 4, fireLights: 2 };
|
|
158
158
|
var explosion_aliases_default = {
|
|
159
159
|
carl_gustaf_84mm: "at4_84mm",
|
|
160
|
-
vog_25: "m79_40mm"
|
|
160
|
+
vog_25: "m79_40mm",
|
|
161
|
+
semtex: "c4"
|
|
161
162
|
};
|
|
162
163
|
var explosions_default = {
|
|
163
164
|
m67: {
|
|
@@ -5681,7 +5682,7 @@ var GameFluidsThree = (() => {
|
|
|
5681
5682
|
const { core, def, random, x, y, z } = context;
|
|
5682
5683
|
const mark = def.mark;
|
|
5683
5684
|
const keepsMarks = !core.marklessAt?.(x, z);
|
|
5684
|
-
if (keepsMarks && mark.crater && mark.dent && y < 1.2) {
|
|
5685
|
+
if (keepsMarks && mark.crater && mark.dent && y < 1.2 && (core.cratersAt?.(x, z) ?? true)) {
|
|
5685
5686
|
core.emit({ type: "crater", x, z, radius: mark.crater, depth: mark.dent });
|
|
5686
5687
|
core.trace?.crater?.(x, z, mark.crater, mark.dent);
|
|
5687
5688
|
addCrater(core.marks, core.ground, random, { x, z, radius: mark.crater, depth: mark.dent, marks: core.layers.mark });
|
|
@@ -7439,6 +7440,7 @@ var GameFluidsThree = (() => {
|
|
|
7439
7440
|
clock: { time: 0, lastBlast: -1, lod: 1, forcedLod: null },
|
|
7440
7441
|
groundAt,
|
|
7441
7442
|
...options.marklessAt ? { marklessAt: options.marklessAt } : {},
|
|
7443
|
+
...options.cratersAt ? { cratersAt: options.cratersAt } : {},
|
|
7442
7444
|
emit: (request) => options.onRequest?.(request)
|
|
7443
7445
|
};
|
|
7444
7446
|
function definitionOf(id) {
|