1+ // priority: 0
2+ "use strict" ;
3+
4+ /**
5+ *
6+ * @param {Internal.RecipesEventJS_ } event
7+ */
8+ function registerTFGRPPRecipes ( event ) {
9+
10+ //Change mixed rhodium palladium dust centrifuging so you don't lose items
11+ event . remove ( { id :'gtceu:centrifuge/decomposition_centrifuging__rhodium_plated_palladium' } )
12+ event . recipes . gtceu . centrifuge ( 'tfg:rpp/decomposition_centrifuging_rhodium_plated_palladium' )
13+ . itemInputs ( '3x #forge:dusts/rhodium_plated_palladium' )
14+ . itemOutputs ( '3x #forge:dusts/palladium' , '1x #forge:dusts/rhodium' )
15+ . duration ( 630 )
16+ . EUt ( GTValues . VA [ GTValues . LV ] )
17+
18+ //Remove all the old recipes
19+
20+ event . remove ( { id : / .* e x t r a c t o r .* r h o d i u m _ p l a t e d _ p a l l a d i u m .* / } )
21+ event . remove ( { id : / .* a l l o y _ s m e l t e r .* r h o d i u m _ p l a t e d _ p a l l a d i u m .* / } )
22+ event . remove ( { id : / .* v a c u u m _ f r e e z e r .* r h o d i u m _ p l a t e d _ p a l l a d i u m .* / } )
23+ event . remove ( { id : / .* m i x e r .* r h o d i u m _ p l a t e d _ p a l l a d i u m / } )
24+ //EBF + ABS
25+ event . remove ( { id : / .* b l a s t .* r h o d i u m _ p l a t e d _ p a l l a d i u m .* / } )
26+ event . remove ( { id : / .* f l u i d _ s o l i d i f i e r .* r h o d i u m _ p l a t e d _ p a l l a d i u m .* / } )
27+ event . remove ( { id : / .* e x t r u d e r .* r h o d i u m _ p l a t e d _ p a l l a d i u m .* / } )
28+ //Crafting table recipes, excluding the buzzsaw tool and turbine blade
29+ event . remove ( { not : { id : / ( .* r h o d i u m _ p l a t e d _ p a l l a d i u m _ b u z z s a w .* ) | ( .* t u r b i n e _ b l a d e _ r h o d i u m _ p l a t e d _ p a l l a d i u m .* ) / } , id : / .* s h a p e d .* r h o d i u m _ p l a t e d _ p a l l a d i u m .* / } )
30+ event . remove ( { id : / .* l a t h e .* r h o d i u m _ p l a t e d _ p a l l a d i u m .* / } )
31+ event . remove ( { id : / .* c o m p r e s s o r .* r h o d i u m _ p l a t e d _ p a l l a d i u m .* / } )
32+ event . remove ( { id : / .* b e n d e r .* r h o d i u m _ p l a t e d _ p a l l a d i u m .* / } )
33+ event . remove ( { id : / .* f o r g e _ h a m m e r .* r h o d i u m _ p l a t e d _ p a l l a d i u m .* / } )
34+ event . remove ( { id : / .* c u t t e r .* r h o d i u m _ p l a t e d _ p a l l a d i u m .* / } )
35+
36+ //And add new ones
37+
38+ //rhodium solution
39+ event . recipes . gtceu . mixer ( 'tfg:rpp/rhodium_solution' )
40+ . itemInputs ( Ingredient . of ( '#forge:dusts/rhodium' ) )
41+ . inputFluids ( Fluid . of ( 'gtceu:sulfuric_acid' , 3000 ) )
42+ . outputFluids ( Fluid . of ( 'tfg:rhodium_solution' , 3000 ) )
43+ . duration ( 9 * 20 )
44+ . EUt ( GTValues . VA [ GTValues . HV ] )
45+
46+ event . recipes . gtceu . mixer ( 'tfg:rpp/rhodium_solution_small' )
47+ . itemInputs ( Ingredient . of ( '#forge:small_dusts/rhodium' ) )
48+ . inputFluids ( Fluid . of ( 'gtceu:sulfuric_acid' , 750 ) )
49+ . outputFluids ( Fluid . of ( 'tfg:rhodium_solution' , 750 ) )
50+ . duration ( ( 9 * 20 ) / 4 )
51+ . EUt ( GTValues . VA [ GTValues . HV ] )
52+
53+ event . recipes . gtceu . centrifuge ( 'tfg:rpp/decomposition_centrifuging_rhodium_solution' )
54+ . inputFluids ( Fluid . of ( 'tfg:rhodium_solution' , 750 ) )
55+ . itemOutputs ( Ingredient . of ( '#forge:small_dusts/rhodium' ) )
56+ . outputFluids ( Fluid . of ( 'gtceu:sulfuric_acid' , 750 ) )
57+ . duration ( 200 )
58+ . EUt ( GTValues . VA [ GTValues . LV ] )
59+
60+ //electroplating
61+ const item_types = [
62+ { input : '#forge:ingots/palladium' , fluidQuantity : 1000 , output : 'ingot' , outputPrefix : '' } ,
63+ { input : '#forge:plates/palladium' , fluidQuantity : 1000 , output : 'plate' , outputPrefix : '' } ,
64+ { input : '#forge:rods/palladium' , fluidQuantity : 500 , output : 'rod' , outputPrefix : '' } ,
65+ { input : '#forge:rings/palladium' , fluidQuantity : 250 , output : 'ring' , outputPrefix : '' } ,
66+ { input : '#forge:small_gears/palladium' , fluidQuantity : 1000 , output : 'gear' , outputPrefix : 'small_' } ,
67+ { input : '#forge:rods/long/palladium' , fluidQuantity : 1000 , output : 'rod' , outputPrefix : 'long_' } ,
68+ { input : '#forge:double_plates/palladium' , fluidQuantity : 2000 , output : 'plate' , outputPrefix : 'double_' } ,
69+ { input : '#forge:rotors/palladium' , fluidQuantity : 4000 , output : 'rotor' , outputPrefix : '' } ,
70+ { input : '#forge:whisks/palladium' , fluidQuantity : 4000 , output : 'whisk' , outputPrefix : '' } ,
71+ { input : '#forge:bolts/palladium' , fluidQuantity : 125 , output : 'bolt' , outputPrefix : '' } ,
72+ { input : '#forge:screws/palladium' , fluidQuantity : 125 , output : 'screw' , outputPrefix : '' } ,
73+ { input : '#forge:buzz_saw_heads/palladium' , fluidQuantity : 2000 , output : 'buzz_saw_blade' , outputPrefix : '' } ,
74+ { input : '#forge:dense_plates/palladium' , fluidQuantity : 9000 , output : 'plate' , outputPrefix : 'dense_' }
75+ ] ;
76+ item_types . forEach ( ( item ) => {
77+ event . recipes . gtceu . electrolyzer ( `tfg:rpp/rpp_${ item . outputPrefix } ${ item . output } ` )
78+ . itemInputs ( Ingredient . of ( item . input ) )
79+ . inputFluids ( Fluid . of ( 'tfg:rhodium_solution' , item . fluidQuantity ) )
80+ . itemOutputs ( `gtceu:${ item . outputPrefix } rhodium_plated_palladium_${ item . output } ` )
81+ . outputFluids ( Fluid . of ( 'gtceu:diluted_sulfuric_acid' , item . fluidQuantity ) )
82+ . duration ( item . fluidQuantity * 1 )
83+ . EUt ( GTValues . VA [ GTValues . IV ] )
84+ } ) ;
85+
86+ //correct recycling counts
87+ TFGHelpers . registerMaterialInfo ( 'gtceu:rhodium_plated_palladium_whisk' , { 'rhodium_plated_palladium' : 4 } ) ;
88+ TFGHelpers . registerMaterialInfo ( 'gtceu:rhodium_plated_palladium_buzz_saw_blade' , { 'rhodium_plated_palladium' : 2 } ) ;
89+
90+ //remove greate recycling until registerMaterialInfo + greate recycling works on first load
91+ //TODO: remove this once greate recycling works properly
92+ event . remove ( { id :/ .* g r e a t e .* i n t e g r a t i o n .* p a l l a d i u m _ w h i s k / } )
93+ event . remove ( { id :/ .* g r e a t e .* i n t e g r a t i o n .* r h o d i u m _ p l a t e d _ p a l l a d i u m _ b u z z _ s a w _ b l a d e / } )
94+
95+ }
0 commit comments