From 4383c2768e6d00ccbd22617818a267974a0df8f9 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 6 Aug 2016 17:50:54 +0200 Subject: [PATCH] Add another chieve that I thought was pretty cool --- .../actuallyadditions/mod/achievement/TheAchievements.java | 3 ++- .../ellpeck/actuallyadditions/mod/items/ItemPlayerProbe.java | 2 ++ src/main/resources/assets/actuallyadditions/lang/en_US.lang | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/achievement/TheAchievements.java b/src/main/java/de/ellpeck/actuallyadditions/mod/achievement/TheAchievements.java index 75dca79fd..90d469d51 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/achievement/TheAchievements.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/achievement/TheAchievements.java @@ -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)){ diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemPlayerProbe.java b/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemPlayerProbe.java index a97b15a06..c34fb0930 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemPlayerProbe.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemPlayerProbe.java @@ -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{ diff --git a/src/main/resources/assets/actuallyadditions/lang/en_US.lang b/src/main/resources/assets/actuallyadditions/lang/en_US.lang index 668c653fd..54f280d13 100644 --- a/src/main/resources/assets/actuallyadditions/lang/en_US.lang +++ b/src/main/resources/assets/actuallyadditions/lang/en_US.lang @@ -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