Add another chieve that I thought was pretty cool

This commit is contained in:
Ellpeck 2016-08-06 17:50:54 +02:00
parent e8ddc22fb1
commit 4383c2768e
3 changed files with 7 additions and 1 deletions

View file

@ -51,6 +51,7 @@ public enum TheAchievements{
PICK_UP_COFFEE("pickUpCoffee", -2, 2, new ItemStack(InitItems.itemCoffeeBean), CRAFT_COAL_GEN, Type.PICK_UP),
CRAFT_COFFEE_MACHINE("craftCoffeeMachine", -1, 3, new ItemStack(InitBlocks.blockCoffeeMachine), PICK_UP_COFFEE),
CRAFT_FIREWORK_BOX("craftFireworkBox", -4, -5, new ItemStack(InitBlocks.blockFireworkBox), null, Type.CRAFTING, true, 0),
GET_UNPROBED("getUnProbed", -7, 3, new ItemStack(InitItems.itemPlayerProbe), null, Type.MISC, true, 0),
GET_CRYSTALS_MILESTONE("getCrystalsMilestone", 6, -3, new ItemStack(InitBlocks.blockCrystal, 1, TheCrystals.DIAMOND.ordinal()), null, Type.PICK_UP, true, 200, new ItemStack(InitItems.itemCrystal, 1, Util.WILDCARD), new ItemStack(InitBlocks.blockCrystal, 1, Util.WILDCARD)),
OPEN_BOOKLET_MILESTONE("openBookletMilestone", 6, -1, new ItemStack(InitItems.itemBooklet), null, Type.MISC, true, 50);
@ -106,7 +107,7 @@ public enum TheAchievements{
}
private void updateStatus(EntityPlayer player, int amount){
if(this.progressToReach > 0 && player instanceof EntityPlayerMP){
if(player instanceof EntityPlayerMP){
StatisticsManager manager = ((EntityPlayerMP)player).getStatFile();
if(manager != null && !manager.hasAchievementUnlocked(this.chieve) && manager.canUnlockAchievement(this.chieve)){

View file

@ -10,6 +10,7 @@
package de.ellpeck.actuallyadditions.mod.items;
import de.ellpeck.actuallyadditions.mod.achievement.TheAchievements;
import de.ellpeck.actuallyadditions.mod.items.base.ItemBase;
import de.ellpeck.actuallyadditions.mod.tile.TileEntityPlayerInterface;
import de.ellpeck.actuallyadditions.mod.util.ModUtil;
@ -52,6 +53,7 @@ public class ItemPlayerProbe extends ItemBase{
stack.setTagCompound(new NBTTagCompound());
entity.addChatMessage(new TextComponentTranslation("tooltip."+ModUtil.MOD_ID+".playerProbe.disconnect.1"));
player.addChatMessage(new TextComponentTranslation("tooltip."+ModUtil.MOD_ID+".playerProbe.notice"));
TheAchievements.GET_UNPROBED.get(player);
}
}
else{

View file

@ -715,6 +715,9 @@ achievement.actuallyadditions.getCrystalsMilestone.desc=Create 200 Crystals
achievement.actuallyadditions.openBookletMilestone=Bookworm!
achievement.actuallyadditions.openBookletMilestone.desc=Open the Manual 50 times
achievement.actuallyadditions.getUnProbed=Sneaky!
achievement.actuallyadditions.getUnProbed.desc=Be probed by someone but sneak and notice it
#Booklet Recipe Names
booklet.actuallyadditions.shapelessRecipe=Shapeless Recipe
booklet.actuallyadditions.shapedRecipe=Shaped Recipe