@adatechnology/game-vfx 0.8.0 → 0.10.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 +4 -2
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47,7 +47,8 @@ function estimateCost(def) {
|
|
|
47
47
|
// src/data/explosion-aliases.json
|
|
48
48
|
var explosion_aliases_default = {
|
|
49
49
|
carl_gustaf_84mm: "at4_84mm",
|
|
50
|
-
vog_25: "m79_40mm"
|
|
50
|
+
vog_25: "m79_40mm",
|
|
51
|
+
semtex: "c4"
|
|
51
52
|
};
|
|
52
53
|
|
|
53
54
|
// src/data/explosions.json
|
|
@@ -5805,7 +5806,7 @@ function composeAfterEffects(context) {
|
|
|
5805
5806
|
const { core, def, random, x, y, z } = context;
|
|
5806
5807
|
const mark = def.mark;
|
|
5807
5808
|
const keepsMarks = !core.marklessAt?.(x, z);
|
|
5808
|
-
if (keepsMarks && mark.crater && mark.dent && y < 1.2) {
|
|
5809
|
+
if (keepsMarks && mark.crater && mark.dent && y < 1.2 && (core.cratersAt?.(x, z) ?? true)) {
|
|
5809
5810
|
core.emit({ type: "crater", x, z, radius: mark.crater, depth: mark.dent });
|
|
5810
5811
|
core.trace?.crater?.(x, z, mark.crater, mark.dent);
|
|
5811
5812
|
addCrater(core.marks, core.ground, random, { x, z, radius: mark.crater, depth: mark.dent, marks: core.layers.mark });
|
|
@@ -7607,6 +7608,7 @@ function createVfx(options = {}) {
|
|
|
7607
7608
|
clock: { time: 0, lastBlast: -1, lod: 1, forcedLod: null },
|
|
7608
7609
|
groundAt,
|
|
7609
7610
|
...options.marklessAt ? { marklessAt: options.marklessAt } : {},
|
|
7611
|
+
...options.cratersAt ? { cratersAt: options.cratersAt } : {},
|
|
7610
7612
|
emit: (request) => options.onRequest?.(request)
|
|
7611
7613
|
};
|
|
7612
7614
|
function definitionOf(id) {
|