commit
d0994d6f6e
3 changed files with 62 additions and 1 deletions
|
@ -247,6 +247,12 @@ achievement.diamondGearAchievement=Shiny!
|
|||
achievement.diamondGearAchievement.desc=Upgrade a gold gear to a diamond gear
|
||||
achievement.wrenchAchievement=Just hit it!
|
||||
achievement.wrenchAchievement.desc=Make a wrench
|
||||
achievement.engineAchievement1=The start of something big
|
||||
achievement.engineAchievement1.desc=Craft a redstone engine
|
||||
achievement.engineAchievement2=High efficiency
|
||||
achievement.engineAchievement2.desc=Craft a stirling engine
|
||||
achievement.engineAchievement3=Powerhouse
|
||||
achievement.engineAchievement3.desc=Craft a combustion engine
|
||||
achievement.aLotOfCraftingAchievement=A lot of crafting
|
||||
achievement.aLotOfCraftingAchievement.desc=Craft an auto workbench
|
||||
achievement.straightDownAchievement=Straight down
|
||||
|
@ -261,3 +267,13 @@ achievement.refineAndRedefineAchievement=Refine and redefine
|
|||
achievement.refineAndRedefineAchievement.desc=Make a refinery
|
||||
achievement.tinglyLaserAchievement=Tingly laser
|
||||
achievement.tinglyLaserAchievement.desc=Craft a laser
|
||||
achievement.architectAchievement=Architecture
|
||||
achievement.architectAchievement.desc=Craft an architect table
|
||||
achievement.builderAchievement=I've got better things to do
|
||||
achievement.builderAchievement.desc=Craft a builder
|
||||
achievement.blueprintAchievement=Building reference
|
||||
achievement.blueprintAchievement.desc=Craft a blueprint
|
||||
achievement.templateAchievement=Basis
|
||||
achievement.templateAchievement.desc=Craft a template
|
||||
achievement.blueprintLibraryAchievement=Ideas live on
|
||||
achievement.blueprintLibraryAchievement.desc=Craft a blueprint library
|
||||
|
|
|
@ -183,6 +183,9 @@ public class BuildCraftCore extends BuildCraftMod {
|
|||
public static Achievement goldGearAchievement;
|
||||
public static Achievement diamondGearAchievement;
|
||||
public static Achievement wrenchAchievement;
|
||||
public static Achievement engineAchievement1;
|
||||
public static Achievement engineAchievement2;
|
||||
public static Achievement engineAchievement3;
|
||||
public static Achievement aLotOfCraftingAchievement;
|
||||
public static Achievement straightDownAchievement;
|
||||
public static Achievement chunkDestroyerAchievement;
|
||||
|
@ -190,6 +193,13 @@ public class BuildCraftCore extends BuildCraftMod {
|
|||
public static Achievement timeForSomeLogicAchievement;
|
||||
public static Achievement refineAndRedefineAchievement;
|
||||
public static Achievement tinglyLaserAchievement;
|
||||
|
||||
public static Achievement architectAchievement;
|
||||
public static Achievement builderAchievement;
|
||||
public static Achievement blueprintAchievement;
|
||||
public static Achievement templateAchievement;
|
||||
public static Achievement libraryAchievement;
|
||||
|
||||
public static AchievementPage BuildcraftAchievements;
|
||||
|
||||
@EventHandler
|
||||
|
@ -456,6 +466,9 @@ public class BuildCraftCore extends BuildCraftMod {
|
|||
goldGearAchievement = new Achievement("achievement.goldGear", "goldGearAchievement", 6, 0, goldGearItem, ironGearAchievement).registerStat();
|
||||
diamondGearAchievement = new Achievement("achievement.diamondGear", "diamondGearAchievement", 8, 0, diamondGearItem, goldGearAchievement).registerStat();
|
||||
wrenchAchievement = new Achievement("achievement.wrench", "wrenchAchievement", 3, 2, wrenchItem, stoneGearAchievement).registerStat();
|
||||
engineAchievement1 = new Achievement("achievement.redstoneEngine", "engineAchievement1", 1, -2, new ItemStack(BuildCraftEnergy.engineBlock, 1, 0), woodenGearAchievement).registerStat();
|
||||
engineAchievement2 = new Achievement("achievement.stirlingEngine", "engineAchievement2", 3, -2, new ItemStack(BuildCraftEnergy.engineBlock, 1, 1), engineAchievement1).registerStat();
|
||||
engineAchievement3 = new Achievement("achievement.combustionEngine", "engineAchievement3", 5, -2, new ItemStack(BuildCraftEnergy.engineBlock, 1, 2), engineAchievement2).registerStat();
|
||||
aLotOfCraftingAchievement = new Achievement("achievement.aLotOfCrafting", "aLotOfCraftingAchievement", 1, 2, BuildCraftFactory.autoWorkbenchBlock, woodenGearAchievement).registerStat();
|
||||
straightDownAchievement = new Achievement("achievement.straightDown", "straightDownAchievement", 5, 2, BuildCraftFactory.miningWellBlock, ironGearAchievement).registerStat();
|
||||
chunkDestroyerAchievement = new Achievement("achievement.chunkDestroyer", "chunkDestroyerAchievement", 9, 2, BuildCraftFactory.quarryBlock, diamondGearAchievement).registerStat();
|
||||
|
@ -463,8 +476,13 @@ public class BuildCraftCore extends BuildCraftMod {
|
|||
timeForSomeLogicAchievement = new Achievement("achievement.timeForSomeLogic", "timeForSomeLogicAchievement", 9, -2, BuildCraftSilicon.assemblyTableBlock, diamondGearAchievement).registerStat();
|
||||
refineAndRedefineAchievement = new Achievement("achievement.refineAndRedefine", "refineAndRedefineAchievement", 10, 0, BuildCraftFactory.refineryBlock, diamondGearAchievement).registerStat();
|
||||
tinglyLaserAchievement = new Achievement("achievement.tinglyLaser", "tinglyLaserAchievement", 11, -2, BuildCraftSilicon.laserBlock ,timeForSomeLogicAchievement).registerStat();
|
||||
architectAchievement = new Achievement("achievement.architect", "architectAchievement", 11, 2, BuildCraftBuilders.architectBlock, chunkDestroyerAchievement).registerStat();
|
||||
builderAchievement = new Achievement("achievement.builder", "builderAchievement", 13, 2, BuildCraftBuilders.builderBlock, architectAchievement).registerStat();
|
||||
blueprintAchievement = new Achievement("achievement.blueprint", "blueprintAchievement", 11, 4, BuildCraftBuilders.blueprintItem, architectAchievement).registerStat();
|
||||
templateAchievement = new Achievement("achievement.template", "templateAchievement", 13, 4, BuildCraftBuilders.templateItem, blueprintAchievement).registerStat();
|
||||
libraryAchievement = new Achievement("achievement.blueprintLibrary", "blueprintLibraryAchievement", 15, 2, BuildCraftBuilders.libraryBlock, builderAchievement).registerStat();
|
||||
|
||||
BuildcraftAchievements = new AchievementPage("Buildcraft", woodenGearAchievement, stoneGearAchievement, ironGearAchievement, goldGearAchievement, diamondGearAchievement, wrenchAchievement, aLotOfCraftingAchievement, straightDownAchievement, chunkDestroyerAchievement, fasterFillingAchievement, timeForSomeLogicAchievement, refineAndRedefineAchievement, tinglyLaserAchievement);
|
||||
BuildcraftAchievements = new AchievementPage("Buildcraft", woodenGearAchievement, stoneGearAchievement, ironGearAchievement, goldGearAchievement, diamondGearAchievement, wrenchAchievement, engineAchievement1, engineAchievement2, engineAchievement3, aLotOfCraftingAchievement, straightDownAchievement, chunkDestroyerAchievement, fasterFillingAchievement, timeForSomeLogicAchievement, refineAndRedefineAchievement, tinglyLaserAchievement, architectAchievement, builderAchievement, blueprintAchievement, templateAchievement, libraryAchievement);
|
||||
AchievementPage.registerAchievementPage(BuildcraftAchievements);
|
||||
}
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
|||
import cpw.mods.fml.common.gameevent.PlayerEvent;
|
||||
import buildcraft.BuildCraftBuilders;
|
||||
import buildcraft.BuildCraftCore;
|
||||
import buildcraft.BuildCraftEnergy;
|
||||
import buildcraft.BuildCraftFactory;
|
||||
import buildcraft.BuildCraftSilicon;
|
||||
|
||||
|
@ -31,6 +32,17 @@ public class CraftingHandler {
|
|||
if (Event.crafting.getItem().equals(BuildCraftCore.wrenchItem)){
|
||||
Event.player.addStat(BuildCraftCore.wrenchAchievement, 1);
|
||||
}
|
||||
if (Event.crafting.getItem().equals(Item.getItemFromBlock(BuildCraftEnergy.engineBlock))){
|
||||
if (Event.crafting.getItemDamage() == 0) {
|
||||
Event.player.addStat(BuildCraftCore.engineAchievement1, 1);
|
||||
}
|
||||
else if (Event.crafting.getItemDamage() == 1) {
|
||||
Event.player.addStat(BuildCraftCore.engineAchievement2, 1);
|
||||
}
|
||||
else if (Event.crafting.getItemDamage() == 2) {
|
||||
Event.player.addStat(BuildCraftCore.engineAchievement3, 1);
|
||||
}
|
||||
}
|
||||
if(Event.crafting.getItem().equals(Item.getItemFromBlock(BuildCraftFactory.autoWorkbenchBlock))){
|
||||
Event.player.addStat(BuildCraftCore.aLotOfCraftingAchievement, 1);
|
||||
}
|
||||
|
@ -52,6 +64,21 @@ public class CraftingHandler {
|
|||
if (Event.crafting.getItem().equals(Item.getItemFromBlock(BuildCraftSilicon.assemblyTableBlock))){
|
||||
Event.player.addStat(BuildCraftCore.timeForSomeLogicAchievement, 1);
|
||||
}
|
||||
if (Event.crafting.getItem().equals(Item.getItemFromBlock(BuildCraftBuilders.architectBlock))){
|
||||
Event.player.addStat(BuildCraftCore.architectAchievement, 1);
|
||||
}
|
||||
if (Event.crafting.getItem().equals(Item.getItemFromBlock(BuildCraftBuilders.builderBlock))){
|
||||
Event.player.addStat(BuildCraftCore.builderAchievement, 1);
|
||||
}
|
||||
if (Event.crafting.getItem().equals(BuildCraftBuilders.blueprintItem)){
|
||||
Event.player.addStat(BuildCraftCore.blueprintAchievement, 1);
|
||||
}
|
||||
if (Event.crafting.getItem().equals(BuildCraftBuilders.templateItem)){
|
||||
Event.player.addStat(BuildCraftCore.templateAchievement, 1);
|
||||
}
|
||||
if (Event.crafting.getItem().equals(Item.getItemFromBlock(BuildCraftBuilders.libraryBlock))){
|
||||
Event.player.addStat(BuildCraftCore.libraryAchievement, 1);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue