make GT trigger ic2 achievements (Blood Asp)
This commit is contained in:
parent
a9039f249a
commit
b99feff3d8
5 changed files with 48 additions and 16 deletions
|
@ -184,6 +184,15 @@ public class GT_MetaTileEntity_ProcessingArray extends GT_MetaTileEntity_MultiBl
|
|||
if (mInventory[1].getUnlocalizedName().endsWith("5")) {
|
||||
tTier = 5;
|
||||
}
|
||||
if (mInventory[1].getUnlocalizedName().endsWith("6")) {
|
||||
tTier = 6;
|
||||
}
|
||||
if (mInventory[1].getUnlocalizedName().endsWith("7")) {
|
||||
tTier = 7;
|
||||
}
|
||||
if (mInventory[1].getUnlocalizedName().endsWith("8")) {
|
||||
tTier = 8;
|
||||
}
|
||||
|
||||
ItemStack[] tInputs = (ItemStack[]) tInputList.toArray(new ItemStack[tInputList.size()]);
|
||||
|
||||
|
|
|
@ -88,7 +88,7 @@ public class GT_Tool_Chainsaw_LV
|
|||
public void onToolCrafted(ItemStack aStack, EntityPlayer aPlayer) {
|
||||
super.onToolCrafted(aStack, aPlayer);
|
||||
try {
|
||||
GT_Mod.instance.achievements.issueAchievement(aPlayer, "brrrr");
|
||||
GT_Mod.instance.achievements.issueAchievement(aPlayer, "buildChainsaw");
|
||||
} catch (Exception e) {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ public class GT_Tool_Drill_HV
|
|||
public void onToolCrafted(ItemStack aStack, EntityPlayer aPlayer) {
|
||||
super.onToolCrafted(aStack, aPlayer);
|
||||
try {
|
||||
GT_Mod.instance.achievements.issueAchievement(aPlayer, "highpowerdrill");
|
||||
GT_Mod.instance.achievements.issueAchievement(aPlayer, "buildDDrill");
|
||||
} catch (Exception e) {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -98,7 +98,7 @@ public class GT_Tool_Drill_LV
|
|||
aPlayer.triggerAchievement(AchievementList.buildPickaxe);
|
||||
aPlayer.triggerAchievement(AchievementList.buildBetterPickaxe);
|
||||
try {
|
||||
GT_Mod.instance.achievements.issueAchievement(aPlayer, "driltime");
|
||||
GT_Mod.instance.achievements.issueAchievement(aPlayer, "buildDrill");
|
||||
} catch (Exception e) {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,6 +16,7 @@ import gregtech.api.util.GT_Log;
|
|||
import gregtech.api.util.GT_ModHandler;
|
||||
import gregtech.api.util.GT_OreDictUnificator;
|
||||
import gregtech.common.items.GT_MetaGenerated_Tool_01;
|
||||
import ic2.core.Ic2Items;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
@ -177,14 +178,14 @@ public class GT_Achievements {
|
|||
registerAchievement("whatnow", 6, 10, ItemList.ZPM2.get(1, new Object[]{}), "denseaspossible", false);
|
||||
|
||||
if(Loader.isModLoaded("NotEnoughItems") && GT_Mod.gregtechproxy.mHideUnusedOres){
|
||||
for (int i = 1; i < GregTech_API.sGeneratedMaterials.length; i++) {
|
||||
if (GregTech_API.sGeneratedMaterials[i] != null) {
|
||||
if(!oreList.contains(GregTech_API.sGeneratedMaterials[i])){
|
||||
codechicken.nei.api.API.hideItem(GT_OreDictUnificator.get(OrePrefixes.ore, GregTech_API.sGeneratedMaterials[i], 1));
|
||||
}
|
||||
for (int i = 1; i < GregTech_API.sGeneratedMaterials.length; i++) {
|
||||
if (GregTech_API.sGeneratedMaterials[i] != null) {
|
||||
if(!oreList.contains(GregTech_API.sGeneratedMaterials[i])){
|
||||
codechicken.nei.api.API.hideItem(GT_OreDictUnificator.get(OrePrefixes.ore, GregTech_API.sGeneratedMaterials[i], 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (GT_Mod.gregtechproxy.mAchievements) {
|
||||
AchievementPage.registerAchievementPage(new AchievementPage("GregTech 5", (Achievement[]) this.achievementList.values().toArray(
|
||||
new Achievement[this.achievementList.size()])));
|
||||
|
@ -291,6 +292,8 @@ public class GT_Achievements {
|
|||
}
|
||||
if (stack.getUnlocalizedName().equals("ic2.itemPartIndustrialDiamond")) {
|
||||
issueAchievement(player, "artificaldia");
|
||||
issueAchievement(player, "buildCoalDiamond");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -335,6 +338,7 @@ public class GT_Achievements {
|
|||
issueAchievement(player, "magneticiron");
|
||||
} else if (stack.getUnlocalizedName().equals("gt.metaitem.01.32600")) {
|
||||
issueAchievement(player, "lvmotor");
|
||||
issueAchievement(player, "buildCable");
|
||||
} else if (stack.getUnlocalizedName().equals("gt.metaitem.01.32610")) {
|
||||
issueAchievement(player, "pumpcover");
|
||||
} else if (stack.getUnlocalizedName().equals("gt.metaitem.01.32630")) {
|
||||
|
@ -359,10 +363,17 @@ public class GT_Achievements {
|
|||
issueAchievement(player, "highpressure");
|
||||
} else if (stack.getUnlocalizedName().equals("gt.blockmachines.bronzemachine.macerator")) {
|
||||
issueAchievement(player, "macerator");
|
||||
issueAchievement(player, "buildMacerator");
|
||||
} else if (stack.getUnlocalizedName().equals("gt.blockmachines.bronzemachine.alloysmelter")) {
|
||||
issueAchievement(player, "alloysmelter");
|
||||
issueAchievement(player, "buildElecFurnace");
|
||||
if(stack.getUnlocalizedName().equals("gt.blockmachines.bronzemachine.alloysmelter.tier.3")){
|
||||
issueAchievement(player, "buildIndFurnace");
|
||||
}
|
||||
} else if (stack.getUnlocalizedName().equals("gt.blockmachines.bronzemachine.extractor")) {
|
||||
issueAchievement(player, "extract");
|
||||
issueAchievement(player, "buildCompressor");
|
||||
issueAchievement(player, "buildExtractor");
|
||||
} else if (stack.getUnlocalizedName().startsWith("gt.blockmachines.automation.superbuffer.tier.")) {
|
||||
issueAchievement(player, "superbuffer");
|
||||
} else if (stack.getUnlocalizedName().startsWith("gt.blockmachines.quantum.tank.tier.")) {
|
||||
|
@ -373,8 +384,13 @@ public class GT_Achievements {
|
|||
issueAchievement(player, "cheapermac");
|
||||
} else if (stack.getUnlocalizedName().startsWith("gt.blockmachines.automation.chestbuffer.tier.")) {
|
||||
issueAchievement(player, "buffer");
|
||||
issueAchievement(player, "buildBatBox");
|
||||
if(stack.getUnlocalizedName().startsWith("gt.blockmachines.automation.chestbuffer.tier.3")){
|
||||
issueAchievement(player, "buildMFE");
|
||||
}
|
||||
} else if (stack.getUnlocalizedName().startsWith("gt.blockmachines.basicgenerator.steamturbine.tier.")) {
|
||||
issueAchievement(player, "steampower");
|
||||
issueAchievement(player, "buildGenerator");
|
||||
} else if (stack.getUnlocalizedName().equals("gt.blockmachines.basicmachine.pump.tier.03")) {
|
||||
issueAchievement(player, "slurp");
|
||||
} else if (stack.getUnlocalizedName().startsWith("gt.blockmachines.basicmachine.assembler.tier.")) {
|
||||
|
@ -399,6 +415,7 @@ public class GT_Achievements {
|
|||
issueAchievement(player, "amplifier");
|
||||
} else if (stack.getUnlocalizedName().startsWith("gt.blockmachines.basicmachine.massfab.tier.")) {
|
||||
issueAchievement(player, "universal");
|
||||
issueAchievement(player, "buildMassFab");
|
||||
} else if (stack.getUnlocalizedName().startsWith("gt.blockmachines.basicgenerator.naquadah.tier.")) {
|
||||
issueAchievement(player, "alienpower");
|
||||
} else if (stack.getUnlocalizedName().startsWith("gt.blockmachines.basicmachine.replicator.tier.")) {
|
||||
|
@ -447,7 +464,7 @@ public class GT_Achievements {
|
|||
issueAchievement(player, "newmetal");
|
||||
}
|
||||
if(data.mMaterial.mMaterial != Materials.Gunpowder){
|
||||
issueAchievement(player, "cleandust");
|
||||
issueAchievement(player, "cleandust");
|
||||
}
|
||||
} else if (data.mPrefix == OrePrefixes.ore || data.mPrefix == OrePrefixes.oreBlackgranite || data.mPrefix == OrePrefixes.oreEndstone
|
||||
|| data.mPrefix == OrePrefixes.oreNetherrack || data.mPrefix == OrePrefixes.oreRedgranite) {
|
||||
|
@ -456,6 +473,10 @@ public class GT_Achievements {
|
|||
if (data.getAllMaterialStacks().get(i).mMaterial == Materials.AnyIron) {
|
||||
issueAchievement(player, "iron");
|
||||
}
|
||||
if(data.getAllMaterialStacks().get(i).mMaterial == Materials.Copper||data.getAllMaterialStacks().get(i).mMaterial == Materials.Tin){
|
||||
issueAchievement(event.entityPlayer, "mineOre");
|
||||
}
|
||||
|
||||
}
|
||||
} else if (data.mPrefix == OrePrefixes.crushed) {
|
||||
issueAchievement(player, "crushed");
|
||||
|
@ -514,7 +535,9 @@ public class GT_Achievements {
|
|||
issueAchievement(player, "whatnow");
|
||||
}
|
||||
} else if (stack.getUnlocalizedName().equals("gt.Thoriumcell")) {
|
||||
issueAchievement(player, "newfuel");
|
||||
}
|
||||
issueAchievement(player, "newfuel");
|
||||
}else if ((stack.getItem() == Ic2Items.quantumBodyarmor.getItem()) || (stack.getItem() == Ic2Items.quantumBoots.getItem()) ||
|
||||
(stack.getItem() == Ic2Items.quantumHelmet.getItem()) || (stack.getItem() == Ic2Items.quantumLeggings.getItem())) {
|
||||
issueAchievement(player, "buildQArmor");}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue