11package xyz .phanta .tconevo .integration .conarm ;
22
33import c4 .conarm .common .armor .traits .ArmorTraits ;
4+ import net .minecraftforge .fml .common .Loader ;
45import xyz .phanta .tconevo .init .TconEvoMaterials ;
56import xyz .phanta .tconevo .init .TconEvoTraits ;
67import xyz .phanta .tconevo .integration .conarm .material .ArmourMaterialBuilder ;
78import xyz .phanta .tconevo .integration .conarm .material .ArmourPartType ;
9+ import xyz .phanta .tconevo .integration .ic2 .Ic2HooksImpl ;
10+ import xyz .phanta .tconevo .integration .iu .IUHooksImpl ;
811
912public class TconEvoArmourMaterials {
1013
@@ -234,10 +237,13 @@ public static void init() {
234237 .withStatsArmour (24F , 22F , 1F , 10.5F , 2F , 14F )
235238 .withTraits (ArmourPartType .ARMOUR , ArmorTraits .dense , ArmorTraits .indomitable )
236239 .build ();
237- new ArmourMaterialBuilder (TconEvoMaterials .ENERGIUM )
238- .withStatsArmour (16F , 20F , 0.8F , 7F , 0F , 9.5F )
239- .withTraits (ArmourPartType .ARMOUR , TconEvoArmourTraits .TRAIT_ELECTRIC )
240- .build ();
240+ //FIXME
241+ if (Loader .isModLoaded (IUHooksImpl .MOD_ID ) || Loader .isModLoaded (Ic2HooksImpl .MOD_ID )) {
242+ new ArmourMaterialBuilder (TconEvoMaterials .ENERGIUM )
243+ .withStatsArmour (16F , 20F , 0.8F , 7F , 0F , 9.5F )
244+ .withTraits (ArmourPartType .ARMOUR , TconEvoArmourTraits .TRAIT_ELECTRIC )
245+ .build ();
246+ }
241247 new ArmourMaterialBuilder (TconEvoMaterials .CARBON_FIBER )
242248 .withStatsArmour (28F , 16F , 1.3F , 7F , 5F , 10F )
243249 .withTraits (ArmourPartType .ARMOUR , TconEvoArmourTraits .TRAIT_BULWARK , ArmorTraits .lightweight )
@@ -246,10 +252,13 @@ public static void init() {
246252 .withStatsArmour (36F , 24F , 0.8F , 13.5F , 3F , 16F )
247253 .withTraits (ArmourPartType .ARMOUR , ArmorTraits .steady , TconEvoArmourTraits .TRAIT_REACTIVE )
248254 .build ();
249- new ArmourMaterialBuilder (TconEvoMaterials .UU_METAL )
250- .withStatsArmour (1F , 18F , 2F , 0F , 0F , 15F )
251- .withTraits (ArmourPartType .ARMOUR , TconEvoArmourTraits .TRAIT_PHOENIX_ASPECT )
252- .build ();
255+ //FIXME
256+ if (Loader .isModLoaded (IUHooksImpl .MOD_ID ) || Loader .isModLoaded (Ic2HooksImpl .MOD_ID )) {
257+ new ArmourMaterialBuilder (TconEvoMaterials .UU_METAL )
258+ .withStatsArmour (1F , 18F , 2F , 0F , 0F , 15F )
259+ .withTraits (ArmourPartType .ARMOUR , TconEvoArmourTraits .TRAIT_PHOENIX_ASPECT )
260+ .build ();
261+ }
253262
254263 // mekanism
255264 new ArmourMaterialBuilder (TconEvoMaterials .OSMIUM )
0 commit comments