2013-05-03 13:00:44 +00:00
|
|
|
package biomesoplenty.helpers;
|
|
|
|
|
|
|
|
import net.minecraft.block.Block;
|
2013-07-05 03:19:54 +00:00
|
|
|
import net.minecraft.client.Minecraft;
|
2013-05-03 13:00:44 +00:00
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
2013-07-03 12:26:06 +00:00
|
|
|
import net.minecraft.item.Item;
|
2013-05-03 13:00:44 +00:00
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import net.minecraft.stats.Achievement;
|
2013-07-03 12:26:06 +00:00
|
|
|
import net.minecraft.util.MathHelper;
|
|
|
|
import net.minecraft.world.World;
|
2013-07-04 22:45:11 +00:00
|
|
|
import net.minecraft.world.biome.BiomeGenBase;
|
2013-05-03 13:00:44 +00:00
|
|
|
import net.minecraftforge.common.AchievementPage;
|
|
|
|
import net.minecraftforge.event.ForgeSubscribe;
|
2013-07-03 12:26:06 +00:00
|
|
|
import net.minecraftforge.event.entity.EntityEvent;
|
|
|
|
import biomesoplenty.api.Biomes;
|
2013-05-03 13:00:44 +00:00
|
|
|
import biomesoplenty.api.Blocks;
|
2013-07-09 04:10:57 +00:00
|
|
|
import biomesoplenty.api.Fluids;
|
2013-07-19 22:42:53 +00:00
|
|
|
import biomesoplenty.api.Items;
|
2013-09-14 10:16:39 +00:00
|
|
|
import biomesoplenty.configuration.configfile.BOPConfigurationMisc;
|
2013-05-03 13:00:44 +00:00
|
|
|
import cpw.mods.fml.common.registry.LanguageRegistry;
|
|
|
|
|
|
|
|
public class AchievementHelper
|
|
|
|
{
|
2013-05-31 10:34:02 +00:00
|
|
|
// Achievement declaration
|
2013-06-23 10:10:00 +00:00
|
|
|
public static Achievement achBOP;
|
2013-06-25 23:11:07 +00:00
|
|
|
public static Achievement achAllBiomes;
|
|
|
|
|
2013-06-23 09:19:48 +00:00
|
|
|
public static Achievement achAlps;
|
|
|
|
public static Achievement achArctic;
|
2013-06-25 23:11:07 +00:00
|
|
|
public static Achievement achBadlands;
|
|
|
|
public static Achievement achBambooForest;
|
|
|
|
public static Achievement achBayou;
|
|
|
|
public static Achievement achBirchForest;
|
|
|
|
public static Achievement achBog;
|
|
|
|
public static Achievement achBorealForest;
|
|
|
|
public static Achievement achBrushland;
|
|
|
|
public static Achievement achCanyon;
|
|
|
|
public static Achievement achChaparral;
|
|
|
|
public static Achievement achCherryBlossom;
|
2013-07-03 12:26:06 +00:00
|
|
|
public static Achievement achConiferousForest;
|
|
|
|
public static Achievement achConiferousForestSnow;
|
|
|
|
public static Achievement achCrag;
|
|
|
|
public static Achievement achDeadForest;
|
|
|
|
public static Achievement achDeadForestSnow;
|
|
|
|
public static Achievement achDeadSwamp;
|
|
|
|
public static Achievement achDeadlands;
|
|
|
|
public static Achievement achDeciduousForest;
|
|
|
|
public static Achievement achDunes;
|
|
|
|
public static Achievement achFen;
|
|
|
|
public static Achievement achField;
|
|
|
|
public static Achievement achFrostForest;
|
|
|
|
public static Achievement achFungiForest;
|
|
|
|
public static Achievement achGarden;
|
|
|
|
public static Achievement achGlacier;
|
|
|
|
public static Achievement achGrassland;
|
|
|
|
public static Achievement achGrove;
|
|
|
|
public static Achievement achHeathland;
|
|
|
|
public static Achievement achHighland;
|
|
|
|
public static Achievement achHotSprings;
|
|
|
|
public static Achievement achIcyHills;
|
|
|
|
public static Achievement achJadeCliffs;
|
|
|
|
public static Achievement achLushDesert;
|
|
|
|
public static Achievement achLushSwamp;
|
|
|
|
public static Achievement achMangrove;
|
|
|
|
public static Achievement achMapleWoods;
|
|
|
|
public static Achievement achMarsh;
|
|
|
|
public static Achievement achMeadow;
|
|
|
|
public static Achievement achMesa;
|
|
|
|
public static Achievement achMoor;
|
|
|
|
public static Achievement achMountain;
|
|
|
|
public static Achievement achMysticGrove;
|
2013-07-03 22:15:43 +00:00
|
|
|
public static Achievement achOasis;
|
|
|
|
public static Achievement achOminousWoods;
|
|
|
|
public static Achievement achOrchard;
|
|
|
|
public static Achievement achOriginValley;
|
|
|
|
public static Achievement achOutback;
|
2013-08-12 20:55:28 +00:00
|
|
|
public static Achievement achOvergrownGreens;
|
2013-07-03 22:15:43 +00:00
|
|
|
public static Achievement achPasture;
|
|
|
|
public static Achievement achPolar;
|
|
|
|
public static Achievement achPrairie;
|
|
|
|
public static Achievement achQuagmire;
|
|
|
|
public static Achievement achRainforest;
|
|
|
|
public static Achievement achRedwoodForest;
|
|
|
|
public static Achievement achSacredSprings;
|
|
|
|
public static Achievement achSavanna;
|
|
|
|
public static Achievement achScrubland;
|
|
|
|
public static Achievement achSeasonalForest;
|
2013-07-04 22:45:11 +00:00
|
|
|
|
|
|
|
public static Achievement achShield;
|
|
|
|
public static Achievement achShrubland;
|
2013-08-09 21:57:27 +00:00
|
|
|
public static Achievement achSilkglades;
|
2013-07-04 22:45:11 +00:00
|
|
|
public static Achievement achSludgepit;
|
|
|
|
public static Achievement achSpruceWoods;
|
|
|
|
public static Achievement achSteppe;
|
|
|
|
public static Achievement achTemperateRainforest;
|
|
|
|
public static Achievement achThicket;
|
|
|
|
public static Achievement achTimber;
|
|
|
|
public static Achievement achTropicalRainforest;
|
|
|
|
public static Achievement achTropics;
|
|
|
|
public static Achievement achTundra;
|
|
|
|
public static Achievement achVolcano;
|
|
|
|
public static Achievement achWasteland;
|
|
|
|
public static Achievement achWetland;
|
|
|
|
public static Achievement achWoodland;
|
|
|
|
|
|
|
|
public static Achievement achDesert;
|
|
|
|
public static Achievement achExtremeHills;
|
|
|
|
public static Achievement achForest;
|
|
|
|
public static Achievement achIcePlains;
|
|
|
|
public static Achievement achJungle;
|
|
|
|
public static Achievement achMushroomIsland;
|
|
|
|
public static Achievement achPlains;
|
|
|
|
public static Achievement achSwampland;
|
|
|
|
public static Achievement achTaiga;
|
2013-08-06 22:16:08 +00:00
|
|
|
|
|
|
|
public static Achievement achPromised;
|
|
|
|
public static Achievement achSacrifice;
|
2013-05-31 10:34:02 +00:00
|
|
|
|
2013-06-23 09:19:48 +00:00
|
|
|
public static AchievementPage pageBiome;
|
2013-07-05 01:20:48 +00:00
|
|
|
|
2013-07-05 03:19:54 +00:00
|
|
|
static Achievement[] biomeFinderAchievementList;
|
2013-05-03 13:00:44 +00:00
|
|
|
|
|
|
|
public static void init()
|
|
|
|
{
|
2013-07-13 08:53:58 +00:00
|
|
|
achBOP = (new Achievement(3080, "achBOP", -10, -6, new ItemStack(Items.food.get(), 1, 7), null)).registerAchievement().setSpecial();
|
2013-06-25 23:11:07 +00:00
|
|
|
achAlps = (new Achievement(3082, "achAlps", -8, -6, new ItemStack(Block.stone, 1, 0), achBOP)).registerAchievement();
|
|
|
|
achArctic = (new Achievement(3083, "achArctic", -6, -6, new ItemStack(Block.blockSnow, 1, 0), achBOP)).registerAchievement();
|
2013-09-13 08:17:21 +00:00
|
|
|
achBadlands = (new Achievement(3084, "achBadlands", -4, -6, new ItemStack(Block.hardenedClay, 1, 0), achBOP)).registerAchievement();
|
2013-06-25 23:11:07 +00:00
|
|
|
achBambooForest = (new Achievement(3085, "achBambooForest", -2, -6, new ItemStack(Blocks.saplings.get(), 1, 2), achBOP)).registerAchievement();
|
2013-07-11 05:15:07 +00:00
|
|
|
achBayou = (new Achievement(3086, "achBayou", 0, -6, new ItemStack(Blocks.willow.get(), 1, 0), achBOP)).registerAchievement();
|
2013-06-25 23:11:07 +00:00
|
|
|
achBirchForest = (new Achievement(3087, "achBirchForest", 2, -6, new ItemStack(Block.sapling, 1, 2), achBOP)).registerAchievement();
|
2013-07-15 19:18:34 +00:00
|
|
|
achBog = (new Achievement(3088, "achBog", 4, -6, new ItemStack(Blocks.mushrooms.get(), 1, 2), achBOP)).registerAchievement();
|
2013-06-25 23:11:07 +00:00
|
|
|
achBorealForest = (new Achievement(3089, "achBorealForest", 6, -6, new ItemStack(Blocks.saplings.get(), 1, 1), achBOP)).registerAchievement();
|
|
|
|
achBrushland = (new Achievement(3090, "achBrushland", 8, -6, new ItemStack(Block.leaves, 1, 2), achBOP)).registerAchievement();
|
|
|
|
achCanyon = (new Achievement(3091, "achCanyon", 10, -6, new ItemStack(Blocks.hardDirt.get(), 1, 0), achBOP)).registerAchievement();
|
2013-07-03 12:26:06 +00:00
|
|
|
|
2013-06-25 23:11:07 +00:00
|
|
|
achChaparral = (new Achievement(3092, "achChaparral", -10, -4, new ItemStack(Blocks.foliage.get(), 1, 4), achBOP)).registerAchievement();
|
|
|
|
achCherryBlossom = (new Achievement(3093, "achCherryBlossom", -8, -4, new ItemStack(Blocks.saplings.get(), 1, 10), achBOP)).registerAchievement();
|
2013-07-03 12:26:06 +00:00
|
|
|
achConiferousForest = (new Achievement(3094, "achConiferousForest", -6, -4, new ItemStack(Blocks.saplings.get(), 1, 6), achBOP)).registerAchievement();
|
|
|
|
achConiferousForestSnow = (new Achievement(3096, "achConiferousForestSnow", -4, -4, new ItemStack(Blocks.saplings.get(), 1, 6), achBOP)).registerAchievement();
|
2013-07-05 00:21:53 +00:00
|
|
|
achCrag = (new Achievement(3097, "achCrag", -2, -4, new ItemStack(Blocks.cragRock.get(), 1, 0), achBOP)).registerAchievement().setSpecial();
|
2013-07-03 12:26:06 +00:00
|
|
|
achDeadForest = (new Achievement(3098, "achDeadForest", 0, -4, new ItemStack(Blocks.saplings.get(), 1, 5), achBOP)).registerAchievement();
|
|
|
|
achDeadForestSnow = (new Achievement(3099, "achDeadForestSnow", 2, -4, new ItemStack(Blocks.saplings.get(), 1, 5), achBOP)).registerAchievement();
|
2013-07-05 00:21:53 +00:00
|
|
|
achDeadSwamp = (new Achievement(3100, "achDeadSwamp", 4, -4, new ItemStack(Blocks.logs3.get(), 1, 2), achBOP)).registerAchievement();
|
|
|
|
achDeadlands = (new Achievement(3101, "achDeadlands", 6, -4, new ItemStack(Blocks.holyGrass.get(), 1, 1), achBOP)).registerAchievement().setSpecial();
|
|
|
|
achDeciduousForest = (new Achievement(3102, "achDeciduousForest", 8, -4, new ItemStack(Blocks.foliage.get(), 1, 7), achBOP)).registerAchievement();
|
|
|
|
achDunes = (new Achievement(3103, "achDunes", 10, -4, new ItemStack(Blocks.plants.get(), 1, 3), achBOP)).registerAchievement();
|
2013-07-03 12:26:06 +00:00
|
|
|
|
2013-07-15 19:18:34 +00:00
|
|
|
achFen = (new Achievement(3104, "achFen", -10, -2, new ItemStack(Blocks.plants.get(), 1, 8), achBOP)).registerAchievement();
|
2013-07-03 12:26:06 +00:00
|
|
|
achField = (new Achievement(3105, "achField", -8, -2, new ItemStack(Block.tallGrass, 1, 1), achBOP)).registerAchievement();
|
2013-09-21 20:08:45 +00:00
|
|
|
achFrostForest = (new Achievement(3106, "achFrostForest", -6, -2, new ItemStack(Blocks.flowers2.get(), 1, 7), achBOP)).registerAchievement();
|
2013-07-05 00:21:53 +00:00
|
|
|
achFungiForest = (new Achievement(3107, "achFungiForest", -4, -2, new ItemStack(Blocks.mushrooms.get(), 1, 3), achBOP)).registerAchievement().setSpecial();
|
|
|
|
achGarden = (new Achievement(3108, "achGarden", -2, -2, new ItemStack(Block.plantRed, 1, 1), achBOP)).registerAchievement().setSpecial();
|
2013-07-03 12:26:06 +00:00
|
|
|
achGlacier = (new Achievement(3109, "achGlacier", 0, -2, new ItemStack(Blocks.hardIce.get(), 1, 0), achBOP)).registerAchievement();
|
2013-07-21 13:03:56 +00:00
|
|
|
achGrassland = (new Achievement(3110, "achGrassland", 2, -2, new ItemStack(Block.grass, 1, 0), achBOP)).registerAchievement();
|
2013-07-05 00:21:53 +00:00
|
|
|
achGrove = (new Achievement(3111, "achGrove", 4, -2, new ItemStack(Blocks.flowers.get(), 1, 0), achBOP)).registerAchievement();
|
|
|
|
achHeathland = (new Achievement(3112, "achHeathland", 6, -2, new ItemStack(Blocks.saplings.get(), 1, 14), achBOP)).registerAchievement();
|
2013-07-03 12:26:06 +00:00
|
|
|
achHighland = (new Achievement(3113, "achHighland", 8, -2, new ItemStack(Blocks.foliage.get(), 1, 3), achBOP)).registerAchievement();
|
2013-07-09 17:47:47 +00:00
|
|
|
achHotSprings = (new Achievement(3114, "achHotSprings", 10, -2, new ItemStack(Fluids.bopBucket.get(), 1, 2), achBOP)).registerAchievement();
|
2013-07-03 12:26:06 +00:00
|
|
|
|
2013-07-05 00:21:53 +00:00
|
|
|
achIcyHills = (new Achievement(3115, "achIcyHills", -10, 0, new ItemStack(Block.ice, 1, 0), achBOP)).registerAchievement().setSpecial();
|
2013-07-17 21:09:05 +00:00
|
|
|
achJadeCliffs = (new Achievement(3116, "achJadeCliffs", -8, 0, new ItemStack(Blocks.colorizedSaplings.get(), 1, 5), achBOP)).registerAchievement().setSpecial();
|
2013-07-05 00:21:53 +00:00
|
|
|
achLushDesert = (new Achievement(3117, "achLushDesert", -6, 0, new ItemStack(Blocks.plants.get(), 1, 1), achBOP)).registerAchievement();
|
2013-07-03 12:26:06 +00:00
|
|
|
achLushSwamp = (new Achievement(3118, "achLushSwamp", -4, 0, new ItemStack(Blocks.ivy.get(), 1, 0), achBOP)).registerAchievement();
|
|
|
|
achMangrove = (new Achievement(3119, "achMangrove", -2, 0, new ItemStack(Blocks.colorizedSaplings.get(), 1, 1), achBOP)).registerAchievement();
|
|
|
|
achMapleWoods = (new Achievement(3120, "achMapleWoods", 0, 0, new ItemStack(Blocks.saplings.get(), 1, 11), achBOP)).registerAchievement();
|
2013-09-28 04:13:03 +00:00
|
|
|
achMarsh = (new Achievement(3121, "achMarsh", 2, 0, new ItemStack(Blocks.plants.get(), 1, 14), achBOP)).registerAchievement();
|
2013-07-05 00:21:53 +00:00
|
|
|
achMeadow = (new Achievement(3122, "achMeadow", 4, 0, new ItemStack(Blocks.flowers.get(), 1, 4), achBOP)).registerAchievement();
|
2013-07-03 12:26:06 +00:00
|
|
|
achMesa = (new Achievement(3123, "achMesa", 6, 0, new ItemStack(Blocks.redRock.get(), 1, 0), achBOP)).registerAchievement();
|
2013-07-17 14:45:35 +00:00
|
|
|
achMoor = (new Achievement(3124, "achMoor", 8, 0, new ItemStack(Blocks.flowers.get(), 1, 1), achBOP)).registerAchievement();
|
2013-07-05 00:21:53 +00:00
|
|
|
achMountain = (new Achievement(3125, "achMountain", 10, 0, new ItemStack(Blocks.foliage.get(), 1, 8), achBOP)).registerAchievement();
|
2013-07-03 12:26:06 +00:00
|
|
|
|
2013-07-05 00:21:53 +00:00
|
|
|
achMysticGrove = (new Achievement(3126, "achMysticGrove", -10, 2, new ItemStack(Blocks.flowers.get(), 1, 3), achBOP)).registerAchievement().setSpecial();
|
2013-08-06 22:16:08 +00:00
|
|
|
achOasis = (new Achievement(3127, "achOasis", -8, 2, new ItemStack(Blocks.plants.get(), 1, 12), achBOP)).registerAchievement();
|
2013-07-05 00:21:53 +00:00
|
|
|
achOminousWoods = (new Achievement(3128, "achOminousWoods", -6, 2, new ItemStack(Blocks.flowers.get(), 1, 2), achBOP)).registerAchievement().setSpecial();
|
2013-07-03 22:15:43 +00:00
|
|
|
achOrchard = (new Achievement(3129, "achOrchard", -4, 2, new ItemStack(Blocks.saplings.get(), 1, 0), achBOP)).registerAchievement();
|
2013-07-05 00:21:53 +00:00
|
|
|
achOriginValley = (new Achievement(3130, "achOriginValley", -2, 2, new ItemStack(Blocks.originGrass.get(), 1, 0), achBOP)).registerAchievement().setSpecial();
|
2013-07-03 22:15:43 +00:00
|
|
|
achOutback = (new Achievement(3131, "achOutback", -0, 2, new ItemStack(Blocks.hardSand.get(), 1, 0), achBOP)).registerAchievement();
|
2013-08-12 20:55:28 +00:00
|
|
|
achOvergrownGreens = (new Achievement(3132, "achOvergrownGreens", 2, 2, new ItemStack(Blocks.foliage.get(), 1, 3), achBOP)).registerAchievement();
|
|
|
|
achPasture = (new Achievement(3133, "achPasture", 4, 2, new ItemStack(Blocks.plants.get(), 1, 6), achBOP)).registerAchievement();
|
|
|
|
achPolar = (new Achievement(3134, "achPolar", 6, 2, new ItemStack(Block.ice, 1, 0), achBOP)).registerAchievement();
|
2013-09-21 20:08:45 +00:00
|
|
|
achPrairie = (new Achievement(3135, "achPrairie", 8, 2, new ItemStack(Blocks.flowers2.get(), 1, 4), achBOP)).registerAchievement();
|
2013-08-12 20:55:28 +00:00
|
|
|
achQuagmire = (new Achievement(3136, "achQuagmire", 10, 2, new ItemStack(Items.mudball.get(), 1, 0), achBOP)).registerAchievement();
|
|
|
|
|
|
|
|
achRainforest = (new Achievement(3137, "achRainforest", -10, 4, new ItemStack(Blocks.flowers.get(), 1, 6), achBOP)).registerAchievement();
|
|
|
|
achRedwoodForest = (new Achievement(3138, "achRedwoodForest", -8, 4, new ItemStack(Blocks.colorizedSaplings.get(), 1, 3), achBOP)).registerAchievement();
|
|
|
|
achSacredSprings = (new Achievement(3139, "achSacredSprings", -6, 4, new ItemStack(Block.waterlily, 1, 0), achBOP)).registerAchievement().setSpecial();
|
|
|
|
achSavanna = (new Achievement(3140, "achSavanna", -4, 4, new ItemStack(Blocks.colorizedSaplings.get(), 1, 0), achBOP)).registerAchievement();
|
|
|
|
achScrubland = (new Achievement(3141, "achScrubland", -2, 4, new ItemStack(Block.tallGrass, 1, 0), achBOP)).registerAchievement();
|
|
|
|
achSeasonalForest = (new Achievement(3142, "achSeasonalForest", 0, 4, new ItemStack(Blocks.saplings.get(), 1, 8), achBOP)).registerAchievement();
|
|
|
|
achShield = (new Achievement(3143, "achShield", 2, 4, new ItemStack(Blocks.moss.get(), 1, 0), achBOP)).registerAchievement();
|
2013-09-28 04:13:03 +00:00
|
|
|
achShrubland = (new Achievement(3144, "achShrubland", 4, 4, new ItemStack(Blocks.foliage.get(), 1, 9), achBOP)).registerAchievement();
|
2013-08-12 20:55:28 +00:00
|
|
|
achSilkglades = (new Achievement(3145, "achSilkglades", 6, 4, new ItemStack(Block.web, 1, 0), achBOP)).registerAchievement();
|
|
|
|
achSludgepit = (new Achievement(3146, "achSludgepit", 8, 4, new ItemStack(Blocks.foliage.get(), 1, 0), achBOP)).registerAchievement().setSpecial();
|
2013-09-21 20:08:45 +00:00
|
|
|
achSpruceWoods = (new Achievement(3147, "achSpruceWoods", 10, 4, new ItemStack(Blocks.flowers2.get(), 1, 5), achBOP)).registerAchievement();
|
2013-07-04 22:45:11 +00:00
|
|
|
|
2013-08-12 20:55:28 +00:00
|
|
|
achSteppe = (new Achievement(3148, "achSteppe", -10, 6, new ItemStack(Blocks.flowers.get(), 1, 12), achBOP)).registerAchievement();
|
|
|
|
achTemperateRainforest = (new Achievement(3149, "achTemperateRainforest", -8, 6, new ItemStack(Block.tallGrass, 1, 2), achBOP)).registerAchievement();
|
|
|
|
achThicket = (new Achievement(3150, "achThicket", -6, 6, new ItemStack(Blocks.plants.get(), 1, 5), achBOP)).registerAchievement();
|
|
|
|
achTimber = (new Achievement(3151, "achTimber", -4, 6, new ItemStack(Blocks.saplings.get(), 1, 5), achBOP)).registerAchievement();
|
|
|
|
achTropicalRainforest = (new Achievement(3152, "achTropicalRainforest", -2, 6, new ItemStack(Blocks.flowers.get(), 1, 5), achBOP)).registerAchievement();
|
|
|
|
achTropics = (new Achievement(3153, "achTropics", 0, 6, new ItemStack(Blocks.colorizedSaplings.get(), 1, 2), achBOP)).registerAchievement();
|
|
|
|
achTundra = (new Achievement(3154, "achTundra", 2, 6, new ItemStack(Block.gravel, 1, 0), achBOP)).registerAchievement();
|
2013-09-28 04:13:03 +00:00
|
|
|
achVolcano = (new Achievement(3155, "achVolcano", 4, 6, new ItemStack(Blocks.ash.get(), 1, 0), achBOP)).registerAchievement();
|
2013-08-12 20:55:28 +00:00
|
|
|
achWasteland = (new Achievement(3156, "achWasteland", 6, 6, new ItemStack(Blocks.driedDirt.get(), 1, 0), achBOP)).registerAchievement().setSpecial();
|
|
|
|
achWetland = (new Achievement(3157, "achWetland", 8, 6, new ItemStack(Blocks.plants.get(), 1, 7), achBOP)).registerAchievement();
|
|
|
|
achWoodland = (new Achievement(3158, "achWoodland", 10, 6, new ItemStack(Blocks.mushrooms.get(), 1, 0), achBOP)).registerAchievement();
|
2013-07-04 22:45:11 +00:00
|
|
|
|
2013-08-12 20:55:28 +00:00
|
|
|
achDesert = (new Achievement(3159, "achDesert", -10, 8, new ItemStack(Block.sand, 1, 0), achBOP)).registerAchievement();
|
|
|
|
achExtremeHills = (new Achievement(3160, "achExtremeHills", -8, 8, new ItemStack(Blocks.flowers.get(), 1, 8), achBOP)).registerAchievement();
|
|
|
|
achForest = (new Achievement(3161, "achForest", -6, 8, new ItemStack(Block.sapling, 1, 0), achBOP)).registerAchievement();
|
|
|
|
achIcePlains = (new Achievement(3162, "achIcePlains", -4, 8, new ItemStack(Block.blockSnow, 1, 0), achBOP)).registerAchievement();
|
|
|
|
achJungle = (new Achievement(3163, "achJungle", -2, 8, new ItemStack(Block.sapling, 1, 3), achBOP)).registerAchievement();
|
|
|
|
achMushroomIsland = (new Achievement(3164, "achMushroomIsland", 0, 8, new ItemStack(Block.mushroomRed, 1, 0), achBOP)).registerAchievement().setSpecial();
|
|
|
|
achPlains = (new Achievement(3165, "achPlains",2, 8, new ItemStack(Blocks.flowers.get(), 1, 13), achBOP)).registerAchievement();
|
|
|
|
achSwampland = (new Achievement(3166, "achSwampland", 4, 8, new ItemStack(Blocks.colorizedSaplings.get(), 1, 4), achBOP)).registerAchievement();
|
|
|
|
achTaiga = (new Achievement(3167, "achTaiga", 6, 8, new ItemStack(Block.sapling, 1, 1), achBOP)).registerAchievement();
|
|
|
|
achAllBiomes = (new Achievement(3081, "achAllBiomes", 8, 8, new ItemStack(Items.food.get(), 1, 7), null)).registerAchievement().setSpecial();
|
|
|
|
achPromised = (new Achievement(3168, "achPromised", 10, 8, new ItemStack(Blocks.holyGrass.get(), 1, 0), null)).registerAchievement().setSpecial();
|
|
|
|
achSacrifice = (new Achievement(3169, "achSacrifice", 0, 10, new ItemStack(Items.miscItems.get(), 1, 16), null)).registerAchievement().setSpecial();
|
2013-07-03 12:26:06 +00:00
|
|
|
|
2013-07-05 03:19:54 +00:00
|
|
|
biomeFinderAchievementList = new Achievement[] { achBOP, achAlps, achArctic, achBadlands, achBambooForest, achBayou, achBirchForest, achBog, achBorealForest, achBrushland, achCanyon, achChaparral, achCherryBlossom, achConiferousForest,
|
|
|
|
achConiferousForestSnow, achCrag, achDeadForest, achDeadForestSnow, achDeadSwamp, achDeadlands, achDeciduousForest, achDunes, achFen, achField, achFrostForest, achFungiForest, achGarden, achGlacier, achGrassland, achGrove, achHeathland, achHighland, achHotSprings, achIcyHills,
|
2013-08-12 20:55:28 +00:00
|
|
|
achJadeCliffs, achLushDesert, achLushSwamp, achMangrove, achMapleWoods, achMarsh, achMeadow, achMesa, achMoor, achMountain, achMysticGrove, achOasis, achOminousWoods, achOrchard, achOriginValley, achOutback, achOvergrownGreens, achPasture, achPolar, achPrairie, achQuagmire, achRainforest, achRedwoodForest, achSacredSprings,
|
2013-08-09 21:57:27 +00:00
|
|
|
achSavanna, achScrubland, achSeasonalForest, achShield, achShrubland, achSilkglades, achSludgepit, achSpruceWoods, achSteppe, achTemperateRainforest, achThicket, achTimber, achTropicalRainforest, achTropics, achTundra, achVolcano, achWasteland, achWetland, achWoodland, achDesert, achExtremeHills, achForest, achIcePlains,
|
2013-08-06 22:16:08 +00:00
|
|
|
achJungle, achMushroomIsland, achPlains, achSwampland, achTaiga, achAllBiomes, achPromised, achSacrifice};
|
2013-07-05 03:19:54 +00:00
|
|
|
|
2013-08-06 22:16:08 +00:00
|
|
|
pageBiome = new AchievementPage("Biomes O\' Plenty", biomeFinderAchievementList);
|
2013-07-03 12:26:06 +00:00
|
|
|
|
2013-06-23 09:19:48 +00:00
|
|
|
AchievementPage.registerAchievementPage(pageBiome);
|
2013-05-03 13:00:44 +00:00
|
|
|
|
2013-05-31 10:34:02 +00:00
|
|
|
// Add Achievement registration
|
2013-06-25 23:11:07 +00:00
|
|
|
addAchievementDesc("achBOP", "Biomes O\' Plenty", "Let the fun begin!");
|
|
|
|
addAchievementDesc("achAllBiomes", "All Biomes Found!", "You've been to every biome!");
|
|
|
|
|
2013-06-23 09:19:48 +00:00
|
|
|
addAchievementDesc("achAlps", "Alps", "Biome Found!");
|
|
|
|
addAchievementDesc("achArctic", "Arctic", "Biome Found!");
|
2013-06-25 23:11:07 +00:00
|
|
|
addAchievementDesc("achBadlands", "Badlands", "Biome Found!");
|
|
|
|
addAchievementDesc("achBambooForest", "Bamboo Forest", "Biome Found!");
|
|
|
|
addAchievementDesc("achBayou", "Bayou", "Biome Found!");
|
|
|
|
addAchievementDesc("achBirchForest", "Birch Forest", "Biome Found!");
|
|
|
|
addAchievementDesc("achBog", "Bog", "Biome Found!");
|
|
|
|
addAchievementDesc("achBorealForest", "Boreal Forest", "Biome Found!");
|
|
|
|
addAchievementDesc("achBrushland", "Brushland", "Biome Found!");
|
|
|
|
addAchievementDesc("achCanyon", "Canyon", "Biome Found!");
|
|
|
|
addAchievementDesc("achChaparral", "Chaparral", "Biome Found!");
|
|
|
|
addAchievementDesc("achCherryBlossom", "Cherry Blossom Grove", "Biome Found!");
|
2013-07-03 12:26:06 +00:00
|
|
|
|
|
|
|
addAchievementDesc("achConiferousForest", "Coniferous Forest", "Biome Found!");
|
|
|
|
addAchievementDesc("achConiferousForestSnow", "Snowy Coniferous Forest", "Biome Found!");
|
|
|
|
addAchievementDesc("achCrag", "Crag", "Biome Found!");
|
|
|
|
addAchievementDesc("achDeadForest", "Dead Forest", "Biome Found!");
|
|
|
|
addAchievementDesc("achDeadForestSnow", "Snowy Dead Forest", "Biome Found!");
|
|
|
|
addAchievementDesc("achDeadSwamp", "Dead Swamp", "Biome Found!");
|
|
|
|
addAchievementDesc("achDeadlands", "Deadlands", "Biome Found!");
|
|
|
|
addAchievementDesc("achDeciduousForest", "Deciduous Forest", "Biome Found!");
|
|
|
|
addAchievementDesc("achDunes", "Dunes", "Biome Found!");
|
|
|
|
addAchievementDesc("achFen", "Fen", "Biome Found!");
|
|
|
|
addAchievementDesc("achField", "Field", "Biome Found!");
|
|
|
|
addAchievementDesc("achFrostForest", "Frost Forest", "Biome Found!");
|
|
|
|
addAchievementDesc("achFungiForest", "Fungi Forest", "Biome Found!");
|
|
|
|
addAchievementDesc("achGarden", "Garden", "Biome Found!");
|
|
|
|
addAchievementDesc("achGlacier", "Glacier", "Biome Found!");
|
|
|
|
addAchievementDesc("achGrassland", "Grassland", "Biome Found!");
|
|
|
|
addAchievementDesc("achGrove", "Grove", "Biome Found!");
|
|
|
|
addAchievementDesc("achHeathland", "Heathland", "Biome Found!");
|
|
|
|
addAchievementDesc("achHighland", "Highland", "Biome Found!");
|
|
|
|
addAchievementDesc("achHotSprings", "Hot Springs", "Biome Found!");
|
|
|
|
addAchievementDesc("achIcyHills", "Icy Hills", "Biome Found!");
|
|
|
|
addAchievementDesc("achJadeCliffs", "Jade Cliffs", "Biome Found!");
|
|
|
|
addAchievementDesc("achLushDesert", "Lush Desert", "Biome Found!");
|
|
|
|
addAchievementDesc("achLushSwamp", "Lush Swamp", "Biome Found!");
|
|
|
|
addAchievementDesc("achMangrove", "Mangrove", "Biome Found!");
|
|
|
|
addAchievementDesc("achMapleWoods", "Maple Woods", "Biome Found!");
|
|
|
|
addAchievementDesc("achMarsh", "Marsh", "Biome Found!");
|
|
|
|
addAchievementDesc("achMeadow", "Meadow", "Biome Found!");
|
|
|
|
addAchievementDesc("achMesa", "Mesa", "Biome Found!");
|
|
|
|
addAchievementDesc("achMoor", "Moor", "Biome Found!");
|
|
|
|
addAchievementDesc("achMountain", "Mountain", "Biome Found!");
|
|
|
|
addAchievementDesc("achMysticGrove", "Mystic Grove", "Biome Found!");
|
2013-07-03 22:15:43 +00:00
|
|
|
|
|
|
|
addAchievementDesc("achOasis", "Oasis", "Biome Found!");
|
|
|
|
addAchievementDesc("achOminousWoods", "Ominous Woods", "Biome Found!");
|
|
|
|
addAchievementDesc("achOrchard", "Orchard", "Biome Found!");
|
|
|
|
addAchievementDesc("achOriginValley", "Origin Valley", "Biome Found!");
|
|
|
|
addAchievementDesc("achOutback", "Outback", "Biome Found!");
|
2013-08-12 20:55:28 +00:00
|
|
|
addAchievementDesc("achOvergrownGreens", "Overgrown Greens", "Biome Found!");
|
2013-07-03 22:15:43 +00:00
|
|
|
addAchievementDesc("achPasture", "Pasture", "Biome Found!");
|
|
|
|
addAchievementDesc("achPolar", "Polar", "Biome Found!");
|
|
|
|
addAchievementDesc("achPrairie", "Prairie", "Biome Found!");
|
|
|
|
addAchievementDesc("achQuagmire", "Quagmire", "Biome Found!");
|
|
|
|
addAchievementDesc("achRainforest", "Rainforest", "Biome Found!");
|
|
|
|
addAchievementDesc("achRedwoodForest", "Redwood Forest", "Biome Found!");
|
|
|
|
addAchievementDesc("achSacredSprings", "Sacred Springs", "Biome Found!");
|
|
|
|
addAchievementDesc("achSavanna", "Savanna", "Biome Found!");
|
|
|
|
addAchievementDesc("achScrubland", "Scrubland", "Biome Found!");
|
|
|
|
addAchievementDesc("achSeasonalForest", "Seasonal Forest", "Biome Found!");
|
2013-07-04 22:45:11 +00:00
|
|
|
addAchievementDesc("achShield", "Shield", "Biome Found!");
|
|
|
|
addAchievementDesc("achShrubland", "Shrubland", "Biome Found!");
|
2013-08-09 21:57:27 +00:00
|
|
|
addAchievementDesc("achSilkglades", "Silkglades", "Biome Found!");
|
2013-07-04 22:45:11 +00:00
|
|
|
addAchievementDesc("achSludgepit", "Sludgepit", "Biome Found!");
|
|
|
|
addAchievementDesc("achSpruceWoods", "Spruce Woods", "Biome Found!");
|
|
|
|
addAchievementDesc("achSteppe", "Steppe", "Biome Found!");
|
|
|
|
addAchievementDesc("achTemperateRainforest", "Temperate Rainforest", "Biome Found!");
|
|
|
|
addAchievementDesc("achThicket", "Thicket", "Biome Found!");
|
|
|
|
addAchievementDesc("achTimber", "Timber", "Biome Found!");
|
|
|
|
addAchievementDesc("achTropicalRainforest", "Tropical Rainforest", "Biome Found!");
|
|
|
|
addAchievementDesc("achTropics", "Tropics", "Biome Found!");
|
|
|
|
addAchievementDesc("achTundra", "Tundra", "Biome Found!");
|
|
|
|
addAchievementDesc("achVolcano", "Volcano", "Biome Found!");
|
|
|
|
addAchievementDesc("achWasteland", "Wasteland", "Biome Found!");
|
|
|
|
addAchievementDesc("achWetland", "Wetland", "Biome Found!");
|
|
|
|
addAchievementDesc("achWoodland", "Woodland", "Biome Found!");
|
|
|
|
|
|
|
|
addAchievementDesc("achDesert", "Desert", "Biome Found!");
|
|
|
|
addAchievementDesc("achExtremeHills", "Extreme Hills", "Biome Found!");
|
|
|
|
addAchievementDesc("achForest", "Forest", "Biome Found!");
|
|
|
|
addAchievementDesc("achIcePlains", "Ice Plains", "Biome Found!");
|
|
|
|
addAchievementDesc("achJungle", "Jungle", "Biome Found!");
|
|
|
|
addAchievementDesc("achMushroomIsland", "Mushroom Island", "Biome Found!");
|
|
|
|
addAchievementDesc("achPlains", "Plains", "Biome Found!");
|
|
|
|
addAchievementDesc("achSwampland", "Swampland", "Biome Found!");
|
|
|
|
addAchievementDesc("achTaiga", "Taiga", "Biome Found!");
|
2013-08-06 22:16:08 +00:00
|
|
|
|
|
|
|
addAchievementDesc("achPromised", "Movin\' On Up!", "Welcome to the Promised Land!");
|
|
|
|
addAchievementDesc("achSacrifice", "Endbringer", "Summon the beast...");
|
2013-05-31 10:34:02 +00:00
|
|
|
}
|
2013-07-03 12:26:06 +00:00
|
|
|
|
|
|
|
@ForgeSubscribe
|
|
|
|
public void chunkEntered(EntityEvent.EnteringChunk event)
|
|
|
|
{
|
2013-09-14 10:16:39 +00:00
|
|
|
if (BOPConfigurationMisc.achievements)
|
2013-07-03 12:26:06 +00:00
|
|
|
{
|
2013-07-05 04:05:59 +00:00
|
|
|
if (event.entity != null)
|
2013-07-03 12:26:06 +00:00
|
|
|
{
|
2013-07-05 04:05:59 +00:00
|
|
|
if (event.entity instanceof EntityPlayer)
|
2013-07-05 03:19:54 +00:00
|
|
|
{
|
2013-07-05 04:05:59 +00:00
|
|
|
EntityPlayer player = (EntityPlayer)event.entity;
|
|
|
|
World world = player.worldObj;
|
|
|
|
|
|
|
|
int x = MathHelper.floor_double(player.posX);
|
|
|
|
int y = MathHelper.floor_double(player.boundingBox.minY);
|
|
|
|
int z = MathHelper.floor_double(player.posZ);
|
|
|
|
|
|
|
|
int biomeID = world.getBiomeGenForCoords(x, z).biomeID;
|
|
|
|
int i = 0;
|
|
|
|
|
|
|
|
if (world.isRemote)
|
2013-07-05 03:19:54 +00:00
|
|
|
{
|
2013-07-05 04:05:59 +00:00
|
|
|
while (Minecraft.getMinecraft().statFileWriter.hasAchievementUnlocked(biomeFinderAchievementList[i]))
|
2013-07-05 03:58:56 +00:00
|
|
|
{
|
2013-07-05 04:05:59 +00:00
|
|
|
if (i + 1 != biomeFinderAchievementList.length - 1)
|
|
|
|
{
|
|
|
|
i++;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achAllBiomes, 1);
|
|
|
|
break;
|
|
|
|
}
|
2013-07-05 03:58:56 +00:00
|
|
|
}
|
2013-07-05 03:19:54 +00:00
|
|
|
}
|
2013-07-03 12:26:06 +00:00
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.alps.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achAlps, 1);
|
|
|
|
}
|
2013-07-17 10:00:16 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.alpsForest.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achAlps, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.alpsBase.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achAlps, 1);
|
|
|
|
}
|
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.arctic.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achArctic, 1);
|
|
|
|
}
|
2013-07-17 10:00:16 +00:00
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.badlands.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achBadlands, 1);
|
|
|
|
}
|
2013-07-17 10:00:16 +00:00
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.bambooForest.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achBambooForest, 1);
|
|
|
|
}
|
2013-07-17 10:00:16 +00:00
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.bayou.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achBayou, 1);
|
|
|
|
}
|
2013-07-17 10:00:16 +00:00
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.birchForest.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achBirchForest, 1);
|
|
|
|
}
|
2013-07-17 10:00:16 +00:00
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.bog.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achBog, 1);
|
|
|
|
}
|
2013-07-17 10:00:16 +00:00
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.borealForest.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achBorealForest, 1);
|
|
|
|
}
|
2013-07-17 10:00:16 +00:00
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.brushland.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achBrushland, 1);
|
|
|
|
}
|
2013-07-17 10:00:16 +00:00
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.canyon.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achCanyon, 1);
|
|
|
|
}
|
2013-07-09 02:48:14 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.canyonRavine.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achCanyon, 1);
|
|
|
|
}
|
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.chaparral.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achChaparral, 1);
|
|
|
|
}
|
2013-07-17 10:00:16 +00:00
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.cherryBlossomGrove.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achCherryBlossom, 1);
|
|
|
|
}
|
2013-07-03 12:26:06 +00:00
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.coniferousForest.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achConiferousForest, 1);
|
|
|
|
}
|
2013-07-03 12:26:06 +00:00
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.coniferousForestSnow.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achConiferousForestSnow, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.crag.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achCrag, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.deadForest.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achDeadForest, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.deadForestSnow.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achDeadForestSnow, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.deadSwamp.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achDeadSwamp, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.deadlands.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achDeadlands, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.deciduousForest.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achDeciduousForest, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.dunes.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achDunes, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.fen.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achFen, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.field.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achField, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.frostForest.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achFrostForest, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.fungiForest.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achFungiForest, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.garden.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achGarden, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.glacier.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achGlacier, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.grassland.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achGrassland, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.grove.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achGrove, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.heathland.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achHeathland, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.highland.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achHighland, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.hotSprings.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achHotSprings, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.icyHills.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achIcyHills, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.jadeCliffs.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achJadeCliffs, 1);
|
|
|
|
}
|
2013-07-09 17:47:47 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.lushDesert.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achLushDesert, 1);
|
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.lushSwamp.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achLushSwamp, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.mangrove.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achMangrove, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.mapleWoods.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achMapleWoods, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.marsh.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achMarsh, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.meadow.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achMeadow, 1);
|
|
|
|
}
|
2013-07-09 02:48:14 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.meadowForest.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achMeadow, 1);
|
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.mesa.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achMesa, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.moor.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achMoor, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.mountain.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achMountain, 1);
|
|
|
|
}
|
2013-07-09 17:47:47 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.mysticGrove.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achMysticGrove, 1);
|
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.oasis.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achOasis, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.ominousWoods.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achOminousWoods, 1);
|
|
|
|
}
|
2013-07-09 02:48:14 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.ominousWoodsThick.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achOminousWoods, 1);
|
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.orchard.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achOrchard, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.originValley.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achOriginValley, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.outback.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achOutback, 1);
|
|
|
|
}
|
2013-08-12 20:55:28 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.overgrownGreens.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achOvergrownGreens, 1);
|
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.pasture.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achPasture, 1);
|
|
|
|
}
|
2013-07-09 02:48:14 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.pastureMeadow.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achPasture, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.pastureThin.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achPasture, 1);
|
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.polar.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achPolar, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.prairie.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achPrairie, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.quagmire.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achQuagmire, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.rainforest.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achRainforest, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.redwoodForest.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achRedwoodForest, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.sacredSprings.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achSacredSprings, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.savanna.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achSavanna, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.scrubland.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achScrubland, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.seasonalForest.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achSeasonalForest, 1);
|
|
|
|
}
|
2013-07-17 10:00:16 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.seasonalSpruceForest.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achSeasonalForest, 1);
|
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.shield.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achShield, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.shrubland.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achShrubland, 1);
|
|
|
|
}
|
2013-07-09 02:48:14 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.shrublandForest.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achShrubland, 1);
|
|
|
|
}
|
2013-08-09 21:57:27 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.silkglades.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achSilkglades, 1);
|
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.sludgepit.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achSludgepit, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.spruceWoods.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achSpruceWoods, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.steppe.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achSteppe, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.temperateRainforest.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achTemperateRainforest, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.thicket.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achThicket, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.timber.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achTimber, 1);
|
|
|
|
}
|
2013-07-09 02:48:14 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.timberThin.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achTimber, 1);
|
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.tropicalRainforest.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achTropicalRainforest, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.tropics.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achTropics, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.tundra.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achTundra, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.volcano.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achVolcano, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.wasteland.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achWasteland, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.wetland.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achWetland, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.woodland.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achWoodland, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.desertNew.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achDesert, 1);
|
|
|
|
}
|
2013-07-09 17:47:47 +00:00
|
|
|
|
|
|
|
if (biomeID == BiomeGenBase.desert.biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achDesert, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == BiomeGenBase.desertHills.biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achDesert, 1);
|
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.extremeHillsNew.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achExtremeHills, 1);
|
|
|
|
}
|
2013-07-09 17:47:47 +00:00
|
|
|
|
|
|
|
if (biomeID == BiomeGenBase.extremeHills.biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achExtremeHills, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == BiomeGenBase.extremeHillsEdge.biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achExtremeHills, 1);
|
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.forestNew.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achForest, 1);
|
|
|
|
}
|
2013-07-09 17:47:47 +00:00
|
|
|
|
2013-08-09 21:57:27 +00:00
|
|
|
if (biomeID == Biomes.forestHillsNew.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achForest, 1);
|
|
|
|
}
|
|
|
|
|
2013-07-09 17:47:47 +00:00
|
|
|
if (biomeID == BiomeGenBase.forest.biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achForest, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == BiomeGenBase.forestHills.biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achForest, 1);
|
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == BiomeGenBase.icePlains.biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achIcePlains, 1);
|
|
|
|
}
|
2013-07-09 17:47:47 +00:00
|
|
|
|
|
|
|
if (biomeID == BiomeGenBase.iceMountains.biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achIcePlains, 1);
|
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.jungleNew.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achJungle, 1);
|
|
|
|
}
|
2013-07-09 17:47:47 +00:00
|
|
|
|
2013-08-09 21:57:27 +00:00
|
|
|
if (biomeID == Biomes.jungleHillsNew.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achJungle, 1);
|
|
|
|
}
|
|
|
|
|
2013-07-09 17:47:47 +00:00
|
|
|
if (biomeID == BiomeGenBase.jungle.biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achJungle, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == BiomeGenBase.jungleHills.biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achJungle, 1);
|
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == BiomeGenBase.mushroomIsland.biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achMushroomIsland, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.plainsNew.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achPlains, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.swamplandNew.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achSwampland, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.taigaNew.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achTaiga, 1);
|
|
|
|
}
|
2013-07-09 17:47:47 +00:00
|
|
|
|
2013-08-09 21:57:27 +00:00
|
|
|
if (biomeID == Biomes.taigaHillsNew.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achTaiga, 1);
|
|
|
|
}
|
|
|
|
|
2013-07-09 17:47:47 +00:00
|
|
|
if (biomeID == BiomeGenBase.taigaHills.biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achTaiga, 1);
|
|
|
|
}
|
2013-08-06 22:16:08 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.promisedLandForest.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achPromised, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.promisedLandPlains.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achPromised, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.promisedLandSwamp.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(AchievementHelper.achPromised, 1);
|
|
|
|
}
|
2013-07-04 22:45:11 +00:00
|
|
|
}
|
2013-07-03 12:26:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-05-31 10:34:02 +00:00
|
|
|
|
|
|
|
private static void addAchievementDesc(String ach, String name, String desc)
|
|
|
|
{
|
|
|
|
LanguageRegistry.instance().addStringLocalization("achievement." + ach, "en_US", name);
|
|
|
|
LanguageRegistry.instance().addStringLocalization("achievement." + ach + ".desc", "en_US", desc);
|
|
|
|
}
|
2013-07-17 09:42:06 +00:00
|
|
|
}
|