File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 749749 // Duplicate entry
750750 "upperAngle" ,
751751 "lowerAngle" ,
752- "buffTypes" ,
753- "body"
752+ "buffTypes"
754753 ] . forEach ( ( key ) => {
755754 output = removeCertainKey ( output , key ) ;
756755 } ) ;
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 ,
796818 if ( obj2 . controls === null ) {
797819 delete obj2 . controls ;
798820 }
821+ if ( typeof obj2 . body === "object" ) {
822+ delete obj2 . body ;
823+ }
799824 } ) ;
800825 }
801826 ) ;
You can’t perform that action at this time.
0 commit comments