Skip to content

Commit 6ec76db

Browse files
committed
Updates
1 parent db01e8f commit 6ec76db

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

bundle.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,26 @@
488488
}
489489
);
490490
});
491+
["range", "maxAttackRange", "sensorRadius"].forEach((key) => {
492+
output = modifyCertainKey(
493+
output,
494+
key,
495+
{
496+
parentKeys: [],
497+
currentParentKey: "",
498+
targetParentKey: ["visibilityMask", "ai"],
499+
insideParentKeys: [],
500+
excludeKeys: [],
501+
brotherEntries: [],
502+
parent: {}
503+
},
504+
(v) => {
505+
if (typeof v[key] === "number" || typeof v[key] === "string") {
506+
v[key] = Number(v[key]) * scaleRatio;
507+
}
508+
}
509+
);
510+
});
491511
["min", "max", "value"].forEach((key) => {
492512
output = modifyCertainKey(
493513
output,

0 commit comments

Comments
 (0)