This commit is contained in:
parent
90aa3b51a7
commit
c485ef4720
2 changed files with 101 additions and 52 deletions
|
@ -1,5 +1,9 @@
|
|||
package gregtech.loaders.misc;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
|
@ -29,10 +33,6 @@ import net.minecraftforge.event.entity.player.EntityItemPickupEvent;
|
|||
import net.minecraftforge.fluids.FluidStack;
|
||||
import thaumcraft.api.ThaumcraftApiHelper;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
public class GT_Achievements {
|
||||
|
||||
public static List<Materials> oreList = new ArrayList<Materials>();
|
||||
|
@ -150,42 +150,53 @@ public class GT_Achievements {
|
|||
registerAchievement("upgradeebf", 8, -2, ItemList.Hatch_Energy_MV.get(1, new Object[]{}), "gtaluminium", false);
|
||||
registerAchievement("maintainance", 10, -2, ItemList.Hatch_Maintenance.get(1, new Object[]{}), "upgradeebf", false);
|
||||
|
||||
registerAchievement("titan", 10, 0, GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Titanium, 1L), "gtaluminium", false);
|
||||
registerAchievement("magic", 10, 4, ItemList.MagicEnergyConverter_LV.get(1, new Object[]{}), "titan", false);
|
||||
registerAchievement("highmage", 10, 6, ItemList.MagicEnergyAbsorber_HV.get(1, new Object[]{}), "magic", false);
|
||||
registerAchievement("artificaldia", 11, 2, ItemList.IC2_Industrial_Diamond.get(1, new Object[]{}), "titan", false);
|
||||
registerAchievement("muchsteam", 12, 1, ItemList.LargeSteamTurbine.get(1, new Object[]{}), "titan", false);
|
||||
registerAchievement("efficientsteam", 12, 3, ItemList.LargeSteamTurbine.get(1, new Object[]{}), "muchsteam", false);
|
||||
registerAchievement("upgrade", 10, 0, ItemList.Casing_Coil_Kanthal.get(1, new Object[]{}), "gtaluminium", false);
|
||||
registerAchievement("titan", 14, 0, GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Titanium, 1L), "upgrade", false);
|
||||
registerAchievement("magic", 14, 3, ItemList.MagicEnergyConverter_LV.get(1, new Object[]{}), "titan", false);
|
||||
registerAchievement("highmage", 10, 3, ItemList.MagicEnergyAbsorber_HV.get(1, new Object[]{}), "magic", false);
|
||||
registerAchievement("artificaldia", 12, 2, ItemList.IC2_Industrial_Diamond.get(1, new Object[]{}), "titan", false);
|
||||
registerAchievement("muchsteam", 13, 1, ItemList.LargeSteamTurbine.get(1, new Object[]{}), "titan", false);
|
||||
registerAchievement("efficientsteam", 11, 1, ItemList.LargeSteamTurbine.get(1, new Object[]{}), "muchsteam", false);
|
||||
|
||||
registerAchievement("upgrade", 14, 0, ItemList.Casing_Coil_Kanthal.get(1, new Object[]{}), "titan", false);
|
||||
registerAchievement("tungsten", 16, 0, GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tungsten, 1L), "upgrade", false);
|
||||
registerAchievement("hightech", 15, -1, ItemList.Field_Generator_LV.get(1, new Object[]{}), "tungsten", false);
|
||||
registerAchievement("amplifier", 17, -3, ItemList.Machine_LV_Amplifab.get(1, new Object[]{}), "hightech", false);
|
||||
registerAchievement("scanning", 13, -2, ItemList.Machine_HV_Scanner.get(1, new Object[]{}), "hightech", false);
|
||||
registerAchievement("alienpower", 14, -4, ItemList.Generator_Naquadah_Mark_I.get(1, new Object[]{}), "hightech", false);
|
||||
registerAchievement("upgrade2", 16, 0, ItemList.Casing_Coil_Nichrome.get(1, new Object[]{}), "titan", false);
|
||||
registerAchievement("tungsten", 16, 2, GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Tungsten, 1L), "upgrade2", false);
|
||||
registerAchievement("osmium", 16, -2, GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Osmium, 1L), "upgrade2", false);
|
||||
registerAchievement("hightech", 15, -3, ItemList.Field_Generator_LV.get(1, new Object[]{}), "osmium", false);
|
||||
registerAchievement("amplifier", 16, -5, ItemList.Machine_LV_Amplifab.get(1, new Object[]{}), "hightech", false);
|
||||
registerAchievement("scanning", 13, -3, ItemList.Machine_HV_Scanner.get(1, new Object[]{}), "hightech", false);
|
||||
registerAchievement("alienpower", 14, -5, ItemList.Generator_Naquadah_Mark_I.get(1, new Object[]{}), "hightech", false);
|
||||
registerAchievement("universal", 15, -6, ItemList.Machine_LV_Massfab.get(1, new Object[]{}), "hightech", false);
|
||||
registerAchievement("replication", 17, -6, ItemList.Machine_LV_Replicator.get(1, new Object[]{}), "universal", false);
|
||||
|
||||
registerAchievement("upgrade2", 16, 6, ItemList.Casing_Coil_Nichrome.get(1, new Object[]{}), "tungsten", false);
|
||||
registerAchievement("tungstensteel", 14, 6, GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.TungstenSteel, 1L), "upgrade2", false);
|
||||
registerAchievement("conducting", 12, 6, ItemList.Casing_Coil_Superconductor.get(1, new Object[]{}), "tungstensteel", false);
|
||||
registerAchievement("fusion", 14, 8, ItemList.FusionComputer_LuV.get(1, new Object[]{}), "tungstensteel", false);
|
||||
registerAchievement("higherefficency", 14, 10, ItemList.Generator_Plasma_IV.get(1, new Object[]{}), "fusion", false);
|
||||
registerAchievement("advancing", 12, 8, ItemList.FusionComputer_ZPMV.get(1, new Object[]{}), "fusion", false);
|
||||
registerAchievement("tothelimit", 12, 10, ItemList.Generator_Plasma_LuV.get(1, new Object[]{}), "advancing", false);
|
||||
registerAchievement("fullefficiency", 10, 10, ItemList.Generator_Plasma_ZPMV.get(1, new Object[]{}), "tothelimit", false);
|
||||
registerAchievement("denseaspossible", 8, 10, ItemList.FusionComputer_UV.get(1, new Object[]{}), "fullefficiency", false);
|
||||
registerAchievement("whatnow", 6, 10, ItemList.ZPM2.get(1, new Object[]{}), "denseaspossible", false);
|
||||
registerAchievement("tungstensteel", 16, 4, GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.TungstenSteel, 1L), "tungsten", false);
|
||||
registerAchievement("upgrade3", 15, 5, ItemList.Casing_Coil_TungstenSteel.get(1, new Object[]{}), "tungstensteel", false);
|
||||
registerAchievement("hssg", 13, 5, GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.HSSG, 1L), "upgrade3", false);
|
||||
registerAchievement("upgrade4", 11, 5, ItemList.Casing_Coil_HSSG.get(1, new Object[]{}), "hssg", false);
|
||||
registerAchievement("stargatematerial", 11, 7, GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Naquadah, 1L), "upgrade4", false);
|
||||
registerAchievement("conducting", 14, 6, ItemList.Casing_Coil_Superconductor.get(1, new Object[]{}), "upgrade3", false);
|
||||
registerAchievement("fusion", 15, 7, ItemList.FusionComputer_LuV.get(1, new Object[]{}), "tungstensteel", false);
|
||||
registerAchievement("higherefficency", 15, 9, ItemList.Generator_Plasma_IV.get(1, new Object[]{}), "fusion", false);
|
||||
registerAchievement("advancing", 13, 7, ItemList.FusionComputer_ZPMV.get(1, new Object[]{}), "fusion", false);
|
||||
|
||||
registerAchievement("stargateliquid", 11, 9, ItemList.Generator_Plasma_LuV.get(1, new Object[]{}), "advancing", false);
|
||||
registerAchievement("tothelimit", 13, 9, ItemList.Generator_Plasma_LuV.get(1, new Object[]{}), "advancing", false);
|
||||
registerAchievement("fullefficiency", 12, 10, ItemList.Generator_Plasma_ZPMV.get(1, new Object[]{}), "tothelimit", false);
|
||||
registerAchievement("upgrade5", 9, 9, ItemList.Casing_Coil_Naquadah.get(1, new Object[]{}), "stargateliquid", false);
|
||||
registerAchievement("alienmetallurgy", 9, 7, GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.NaquadahAlloy, 1L), "upgrade5", false);
|
||||
registerAchievement("over9000", 7, 7, ItemList.Casing_Coil_NaquadahAlloy.get(1, new Object[]{}), "alienmetallurgy", false);
|
||||
registerAchievement("finalpreparations", 7, 9, GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Naquadria, 1L), "over9000", false);
|
||||
registerAchievement("denseaspossible", 6, 10, ItemList.FusionComputer_UV.get(1, new Object[]{}), "finalpreparations", false);
|
||||
registerAchievement("whatnow", 4, 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()])));
|
||||
|
@ -283,11 +294,19 @@ public class GT_Achievements {
|
|||
issueAchievement(player, "complexalloys");
|
||||
} else if (data.mMaterial.mMaterial == Materials.Tungsten) {
|
||||
issueAchievement(player, "tungsten");
|
||||
} else if (data.mMaterial.mMaterial == Materials.Osmium) {
|
||||
issueAchievement(player, "osmium");
|
||||
} else if (data.mMaterial.mMaterial == Materials.TungstenSteel) {
|
||||
issueAchievement(player, "tungstensteel");
|
||||
} else if (data.mMaterial.mMaterial == Materials.HSSG) {
|
||||
issueAchievement(player, "hssg");
|
||||
} else if (data.mMaterial.mMaterial == Materials.Naquadah) {
|
||||
issueAchievement(player, "stargatematerial");
|
||||
} else if (data.mMaterial.mMaterial == Materials.NaquadahAlloy) {
|
||||
issueAchievement(player, "alienmetallurgy");
|
||||
} else if (data.mMaterial.mMaterial == Materials.Naquadria) {
|
||||
issueAchievement(player, "finalpreparations");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
if (stack.getUnlocalizedName().equals("ic2.itemPartIndustrialDiamond")) {
|
||||
|
@ -305,6 +324,8 @@ public class GT_Achievements {
|
|||
issueAchievement(player, "fusion");
|
||||
} else if (fluid.getFluid().getUnlocalizedName().equals("fluid.molten.europium")) {
|
||||
issueAchievement(player, "advancing");
|
||||
} else if (fluid.getFluid().getUnlocalizedName().equals("fluid.molten.naquadah")) {
|
||||
issueAchievement(player, "stargateliquid");
|
||||
} else if (fluid.getFluid().getUnlocalizedName().equals("fluid.molten.americium")) {
|
||||
issueAchievement(player, "tothelimit");
|
||||
} else if (fluid.getFluid().getUnlocalizedName().equals("fluid.molten.neutronium")) {
|
||||
|
@ -368,7 +389,7 @@ public class GT_Achievements {
|
|||
issueAchievement(player, "alloysmelter");
|
||||
issueAchievement(player, "buildElecFurnace");
|
||||
if(stack.getUnlocalizedName().equals("gt.blockmachines.bronzemachine.alloysmelter.tier.3")){
|
||||
issueAchievement(player, "buildIndFurnace");
|
||||
issueAchievement(player, "buildIndFurnace");
|
||||
}
|
||||
} else if (stack.getUnlocalizedName().equals("gt.blockmachines.bronzemachine.extractor")) {
|
||||
issueAchievement(player, "extract");
|
||||
|
@ -386,7 +407,7 @@ public class GT_Achievements {
|
|||
issueAchievement(player, "buffer");
|
||||
issueAchievement(player, "buildBatBox");
|
||||
if(stack.getUnlocalizedName().startsWith("gt.blockmachines.automation.chestbuffer.tier.3")){
|
||||
issueAchievement(player, "buildMFE");
|
||||
issueAchievement(player, "buildMFE");
|
||||
}
|
||||
} else if (stack.getUnlocalizedName().startsWith("gt.blockmachines.basicgenerator.steamturbine.tier.")) {
|
||||
issueAchievement(player, "steampower");
|
||||
|
@ -429,10 +450,18 @@ public class GT_Achievements {
|
|||
}
|
||||
} else if (stack.getUnlocalizedName().equals("gt.neutronreflector")) {
|
||||
issueAchievement(player, "reflect");
|
||||
} else if (stack.getUnlocalizedName().equals("gt.blockcasings.13")) {
|
||||
} else if (stack.getUnlocalizedName().equals("gt.blockcasings5.1")) {
|
||||
issueAchievement(player, "upgrade");
|
||||
} else if (stack.getUnlocalizedName().equals("gt.blockcasings.14")) {
|
||||
} else if (stack.getUnlocalizedName().equals("gt.blockcasings5.2")) {
|
||||
issueAchievement(player, "upgrade2");
|
||||
} else if (stack.getUnlocalizedName().equals("gt.blockcasings5.3")) {
|
||||
issueAchievement(player, "upgrade3");
|
||||
} else if (stack.getUnlocalizedName().equals("gt.blockcasings5.4")) {
|
||||
issueAchievement(player, "upgrade4");
|
||||
} else if (stack.getUnlocalizedName().equals("gt.blockcasings5.5")) {
|
||||
issueAchievement(player, "upgrade5");
|
||||
} else if (stack.getUnlocalizedName().equals("gt.blockcasings5.6")) {
|
||||
issueAchievement(player, "over9000");
|
||||
} else if (stack.getUnlocalizedName().equals("gt.blockcasings.15")) {
|
||||
issueAchievement(player, "conducting");
|
||||
}
|
||||
|
@ -464,7 +493,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) {
|
||||
|
@ -473,9 +502,9 @@ 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");
|
||||
}
|
||||
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) {
|
||||
|
@ -535,9 +564,9 @@ public class GT_Achievements {
|
|||
issueAchievement(player, "whatnow");
|
||||
}
|
||||
} else if (stack.getUnlocalizedName().equals("gt.Thoriumcell")) {
|
||||
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");}
|
||||
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");}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -326,6 +326,8 @@ achievement.upgradeebf=Upgrade your EBF
|
|||
achievement.upgradeebf.desc=Craft a MV Energy Hatch
|
||||
achievement.maintainance=Maintenance
|
||||
achievement.maintainance.desc=Fix all Maintenance Problems in a Machine
|
||||
achievement.upgrade=Upgrade your Coils (level I)
|
||||
achievement.upgrade.desc=Craft a Kanthal Heating Coil
|
||||
achievement.titan=Titanium
|
||||
achievement.titan.desc=Produce a Titanium Ingot
|
||||
achievement.magic=Magic?
|
||||
|
@ -338,10 +340,12 @@ achievement.muchsteam=So much Steam
|
|||
achievement.muchsteam.desc=Start up a Large Turbine
|
||||
achievement.efficientsteam=Efficient Steam
|
||||
achievement.efficientsteam.desc=Use Superheated Steam in a Large Turbine
|
||||
achievement.upgrade=Upgrade your Coils
|
||||
achievement.upgrade.desc=Craft a Kanthal Heating Coil
|
||||
achievement.upgrade2=Upgrade your Coils (level II)
|
||||
achievement.upgrade2.desc=Craft a Nichrome Heating Coil
|
||||
achievement.tungsten=Tungsten
|
||||
achievement.tungsten.desc=Cool down a Hot Tungsten Ingot
|
||||
achievement.osmium=Osmium
|
||||
achievement.osmium.desc=Cool down a Hot Osmium Ingot
|
||||
achievement.hightech=Hightech
|
||||
achievement.hightech.desc=Craft a LV Field Generator
|
||||
achievement.amplifier=Amplifier
|
||||
|
@ -354,10 +358,16 @@ achievement.universal=Universal
|
|||
achievement.universal.desc=Craft a Mass Fab
|
||||
achievement.replication=Replication
|
||||
achievement.replication.desc=Craft a Replicator
|
||||
achievement.upgrade2=Upgrade your Coils (level II)
|
||||
achievement.upgrade2.desc=Craft a Nichrome Heating Coil
|
||||
achievement.tungstensteel=Tungstensteel
|
||||
achievement.tungstensteel.desc=Cool down a Hot Tungstensteel Ingot
|
||||
achievement.upgrade3=Upgrade your Coils (level III)
|
||||
achievement.upgrade3.desc=Craft a Tungstensteel Heating Coil
|
||||
achievement.hssg=HSS-G
|
||||
achievement.hssg.desc=Cool down a Hot HSS-G Ingot
|
||||
achievement.upgrade4=Upgrade your Coils (level IV)
|
||||
achievement.upgrade4.desc=Craft a HSS-G Heating Coil
|
||||
achievement.stargatematerial=Stargate material
|
||||
achievement.stargatematerial.desc=Cool down a Hot Naquadah Ingot
|
||||
achievement.conducting=Conducting
|
||||
achievement.conducting.desc=Craft a Superconducting Coil
|
||||
achievement.fusion=Fusion
|
||||
|
@ -366,12 +376,22 @@ achievement.higherefficency=Higher efficiency
|
|||
achievement.higherefficency.desc=Produce Nitrogen Plasma
|
||||
achievement.advancing=Advancing
|
||||
achievement.advancing.desc=Produce Europium
|
||||
achievement.stargateliquid=Liquid Stargate material
|
||||
achievement.stargateliquid.desc=Produce Naquadah
|
||||
achievement.tothelimit=Going for the Limit
|
||||
achievement.tothelimit.desc=Produce Americium
|
||||
achievement.denseaspossible=As Dense As Possible
|
||||
achievement.denseaspossible.desc=Produce Neutronium
|
||||
achievement.fullefficiency=Full Efficiency
|
||||
achievement.fullefficiency.desc=Craft a Plasma Generator III
|
||||
achievement.upgrade5=Upgrade your Coils (level V)
|
||||
achievement.upgrade5.desc=Craft a Naquadah Heating Coil
|
||||
achievement.alienmetallurgy=Alien Metallurgy
|
||||
achievement.alienmetallurgy.desc=Cool down a Hot Naquadah Alloy Ingot
|
||||
achievement.over9000=Over 9000!
|
||||
achievement.over9000.desc=Craft a Naquadah Alloy Heating Coil
|
||||
achievement.finalpreparations=Final Preparations
|
||||
achievement.finalpreparations.desc=Cool down a Hot Naquadria Ingot
|
||||
achievement.denseaspossible=As Dense As Possible
|
||||
achievement.denseaspossible.desc=Produce Neutronium
|
||||
achievement.whatnow=What now?
|
||||
achievement.whatnow.desc=Craft a Ultimate Battery
|
||||
|
||||
|
|
Loading…
Reference in a new issue