mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
Add another chieve that I thought was pretty cool
This commit is contained in:
parent
e8ddc22fb1
commit
4383c2768e
3 changed files with 7 additions and 1 deletions
|
@ -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)){
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue