Skip to content

Commit 3a646f3

Browse files
committed
Updates
1 parent ae5c265 commit 3a646f3

1 file changed

Lines changed: 28 additions & 3 deletions

File tree

bundle.js

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -749,8 +749,7 @@
749749
// Duplicate entry
750750
"upperAngle",
751751
"lowerAngle",
752-
"buffTypes",
753-
"body"
752+
"buffTypes"
754753
].forEach((key) => {
755754
output = removeCertainKey(output, key);
756755
});
@@ -778,7 +777,30 @@
778777
}
779778
);
780779
});
781-
["propTypes", "itemTypes", "projectileTypes"].forEach((key) => {
780+
["body"].forEach((key) => {
781+
output = modifyCertainKey(
782+
output,
783+
key,
784+
{
785+
parentKeys: [],
786+
currentParentKey: "",
787+
targetParentKey: [],
788+
insideParentKeys: [],
789+
excludeKeys: [],
790+
brotherEntries: [],
791+
parent: {}
792+
},
793+
(o) => {
794+
Object.values(o).forEach((obj2) => {
795+
delete obj2.conditions;
796+
if (obj2.moddScript && obj2.moddScript !== "") {
797+
delete obj2.actions;
798+
}
799+
});
800+
}
801+
);
802+
});
803+
["unitTypes", "propTypes", "itemTypes", "projectileTypes"].forEach((key) => {
782804
output = modifyCertainKey(
783805
output,
784806
key,
@@ -796,6 +818,9 @@
796818
if (obj2.controls === null) {
797819
delete obj2.controls;
798820
}
821+
if (typeof obj2.body === "object") {
822+
delete obj2.body;
823+
}
799824
});
800825
}
801826
);

0 commit comments

Comments
 (0)