Example #1
0
        public static void Load()
        {
            if (Main.netMode == 2)
            {
                return;
            }
            Achievement achievement1 = new Achievement("TIMBER");

            achievement1.AddCondition(ItemPickupCondition.Create((short)9, (short)619, (short)2504, (short)620, (short)2503, (short)2260, (short)621, (short)911, (short)1729));
            Main.Achievements.Register(achievement1);
            Achievement achievement2 = new Achievement("NO_HOBO");

            achievement2.AddCondition((AchievementCondition)ProgressionEventCondition.Create(8));
            Main.Achievements.Register(achievement2);
            Achievement achievement3 = new Achievement("OBTAIN_HAMMER");

            achievement3.AddCondition(ItemPickupCondition.Create((short)2775, (short)2746, (short)3505, (short)654, (short)3517, (short)7, (short)3493, (short)2780, (short)1513, (short)2516, (short)660, (short)3481, (short)657, (short)922, (short)3511, (short)2785, (short)3499, (short)3487, (short)196, (short)367, (short)104, (short)797, (short)2320, (short)787, (short)1234, (short)1262, (short)3465, (short)204, (short)217, (short)1507, (short)3524, (short)3522, (short)3525, (short)3523, (short)1305));
            Main.Achievements.Register(achievement3);
            Achievement achievement4 = new Achievement("OOO_SHINY");

            achievement4.AddCondition(TileDestroyedCondition.Create((ushort)7, (ushort)6, (ushort)9, (ushort)8, (ushort)166, (ushort)167, (ushort)168, (ushort)169, (ushort)22, (ushort)204, (ushort)58, (ushort)107, (ushort)108, (ushort)111, (ushort)221, (ushort)222, (ushort)223, (ushort)211));
            Main.Achievements.Register(achievement4);
            Achievement achievement5 = new Achievement("HEART_BREAKER");

            achievement5.AddCondition(TileDestroyedCondition.Create((ushort)12));
            Main.Achievements.Register(achievement5);
            Achievement achievement6 = new Achievement("HEAVY_METAL");

            achievement6.AddCondition(ItemPickupCondition.Create((short)35, (short)716));
            Main.Achievements.Register(achievement6);
            Achievement achievement7 = new Achievement("I_AM_LOOT");

            achievement7.AddCondition(CustomFlagCondition.Create("Peek"));
            Main.Achievements.Register(achievement7);
            Achievement achievement8 = new Achievement("STAR_POWER");

            achievement8.AddCondition(CustomFlagCondition.Create("Use"));
            Main.Achievements.Register(achievement8);
            Achievement achievement9 = new Achievement("HOLD_ON_TIGHT");

            achievement9.AddCondition(CustomFlagCondition.Create("Equip"));
            Main.Achievements.Register(achievement9);
            Achievement achievement10 = new Achievement("EYE_ON_YOU");

            achievement10.AddCondition(NPCKilledCondition.Create((short)4));
            Main.Achievements.Register(achievement10);
            Achievement achievement11 = new Achievement("SMASHING_POPPET");

            achievement11.AddCondition((AchievementCondition)ProgressionEventCondition.Create(7));
            Main.Achievements.Register(achievement11);
            Achievement achievement12 = new Achievement("WORM_FODDER");

            achievement12.AddCondition(NPCKilledCondition.Create((short)13, (short)14, (short)15));
            Main.Achievements.Register(achievement12);
            Achievement achievement13 = new Achievement("MASTERMIND");

            achievement13.AddCondition(NPCKilledCondition.Create((short)266));
            Main.Achievements.Register(achievement13);
            Achievement achievement14 = new Achievement("WHERES_MY_HONEY");

            achievement14.AddCondition(CustomFlagCondition.Create("Reach"));
            Main.Achievements.Register(achievement14);
            Achievement achievement15 = new Achievement("STING_OPERATION");

            achievement15.AddCondition(NPCKilledCondition.Create((short)222));
            Main.Achievements.Register(achievement15);
            Achievement achievement16 = new Achievement("BONED");

            achievement16.AddCondition(NPCKilledCondition.Create((short)35));
            Main.Achievements.Register(achievement16);
            Achievement achievement17 = new Achievement("DUNGEON_HEIST");

            achievement17.AddCondition(ItemPickupCondition.Create((short)327));
            achievement17.AddCondition((AchievementCondition)ProgressionEventCondition.Create(19));
            Main.Achievements.Register(achievement17);
            Achievement achievement18 = new Achievement("ITS_GETTING_HOT_IN_HERE");

            achievement18.AddCondition(CustomFlagCondition.Create("Reach"));
            Main.Achievements.Register(achievement18);
            Achievement achievement19 = new Achievement("MINER_FOR_FIRE");

            achievement19.AddCondition(ItemCraftCondition.Create((short)122));
            Main.Achievements.Register(achievement19);
            Achievement achievement20 = new Achievement("STILL_HUNGRY");

            achievement20.AddCondition(NPCKilledCondition.Create((short)113, (short)114));
            Main.Achievements.Register(achievement20);
            Achievement achievement21 = new Achievement("ITS_HARD");

            achievement21.AddCondition((AchievementCondition)ProgressionEventCondition.Create(9));
            Main.Achievements.Register(achievement21);
            Achievement achievement22 = new Achievement("BEGONE_EVIL");

            achievement22.AddCondition((AchievementCondition)ProgressionEventCondition.Create(6));
            Main.Achievements.Register(achievement22);
            Achievement achievement23 = new Achievement("EXTRA_SHINY");

            achievement23.AddCondition(TileDestroyedCondition.Create((ushort)107, (ushort)108, (ushort)111, (ushort)221, (ushort)222, (ushort)223));
            Main.Achievements.Register(achievement23);
            Achievement achievement24 = new Achievement("HEAD_IN_THE_CLOUDS");

            achievement24.AddCondition(CustomFlagCondition.Create("Equip"));
            Main.Achievements.Register(achievement24);
            Achievement achievement25 = new Achievement("LIKE_A_BOSS");

            achievement25.AddCondition(ItemPickupCondition.Create((short)1133, (short)1331, (short)1307, (short)267, (short)1293, (short)557, (short)544, (short)556, (short)560, (short)43, (short)70));
            Main.Achievements.Register(achievement25);
            Achievement achievement26 = new Achievement("BUCKETS_OF_BOLTS");

            achievement26.AddCondition(NPCKilledCondition.Create((short)125, (short)126));
            achievement26.AddConditions(NPCKilledCondition.CreateMany((short)sbyte.MaxValue, (short)134));
            achievement26.UseConditionsCompletedTracker();
            Main.Achievements.Register(achievement26);
            Achievement achievement27 = new Achievement("DRAX_ATTAX");

            achievement27.AddCondition(ItemCraftCondition.Create((short)579, (short)990));
            Main.Achievements.Register(achievement27);
            Achievement achievement28 = new Achievement("PHOTOSYNTHESIS");

            achievement28.AddCondition(TileDestroyedCondition.Create((ushort)211));
            Main.Achievements.Register(achievement28);
            Achievement achievement29 = new Achievement("GET_A_LIFE");

            achievement29.AddCondition(CustomFlagCondition.Create("Use"));
            Main.Achievements.Register(achievement29);
            Achievement achievement30 = new Achievement("THE_GREAT_SOUTHERN_PLANTKILL");

            achievement30.AddCondition(NPCKilledCondition.Create((short)262));
            Main.Achievements.Register(achievement30);
            Achievement achievement31 = new Achievement("TEMPLE_RAIDER");

            achievement31.AddCondition(TileDestroyedCondition.Create((ushort)226));
            Main.Achievements.Register(achievement31);
            Achievement achievement32 = new Achievement("LIHZAHRDIAN_IDOL");

            achievement32.AddCondition(NPCKilledCondition.Create((short)245));
            Main.Achievements.Register(achievement32);
            Achievement achievement33 = new Achievement("ROBBING_THE_GRAVE");

            achievement33.AddCondition(ItemPickupCondition.Create((short)1513, (short)938, (short)963, (short)977, (short)1300, (short)1254, (short)1514, (short)679, (short)759, (short)1446, (short)1445, (short)1444, (short)1183, (short)1266, (short)671));
            Main.Achievements.Register(achievement33);
            Achievement achievement34 = new Achievement("BIG_BOOTY");

            achievement34.AddCondition((AchievementCondition)ProgressionEventCondition.Create(20));
            Main.Achievements.Register(achievement34);
            Achievement achievement35 = new Achievement("FISH_OUT_OF_WATER");

            achievement35.AddCondition(NPCKilledCondition.Create((short)370));
            Main.Achievements.Register(achievement35);
            Achievement achievement36 = new Achievement("OBSESSIVE_DEVOTION");

            achievement36.AddCondition(NPCKilledCondition.Create((short)439));
            Main.Achievements.Register(achievement36);
            Achievement achievement37 = new Achievement("STAR_DESTROYER");

            achievement37.AddConditions(NPCKilledCondition.CreateMany((short)517, (short)422, (short)507, (short)493));
            Main.Achievements.Register(achievement37);
            Achievement achievement38 = new Achievement("CHAMPION_OF_TERRARIA");

            achievement38.AddCondition(NPCKilledCondition.Create((short)398));
            Main.Achievements.Register(achievement38);
            Achievement achievement39 = new Achievement("BLOODBATH");

            achievement39.AddCondition((AchievementCondition)ProgressionEventCondition.Create(5));
            Main.Achievements.Register(achievement39);
            Achievement achievement40 = new Achievement("SLIPPERY_SHINOBI");

            achievement40.AddCondition(NPCKilledCondition.Create((short)50));
            Main.Achievements.Register(achievement40);
            Achievement achievement41 = new Achievement("GOBLIN_PUNTER");

            achievement41.AddCondition((AchievementCondition)ProgressionEventCondition.Create(10));
            Main.Achievements.Register(achievement41);
            Achievement achievement42 = new Achievement("WALK_THE_PLANK");

            achievement42.AddCondition((AchievementCondition)ProgressionEventCondition.Create(11));
            Main.Achievements.Register(achievement42);
            Achievement achievement43 = new Achievement("KILL_THE_SUN");

            achievement43.AddCondition((AchievementCondition)ProgressionEventCondition.Create(3));
            Main.Achievements.Register(achievement43);
            Achievement achievement44 = new Achievement("DO_YOU_WANT_TO_SLAY_A_SNOWMAN");

            achievement44.AddCondition((AchievementCondition)ProgressionEventCondition.Create(12));
            Main.Achievements.Register(achievement44);
            Achievement achievement45 = new Achievement("TIN_FOIL_HATTER");

            achievement45.AddCondition((AchievementCondition)ProgressionEventCondition.Create(13));
            Main.Achievements.Register(achievement45);
            Achievement achievement46 = new Achievement("BALEFUL_HARVEST");

            achievement46.AddCondition((AchievementCondition)ProgressionEventCondition.Create(15));
            Main.Achievements.Register(achievement46);
            Achievement achievement47 = new Achievement("ICE_SCREAM");

            achievement47.AddCondition((AchievementCondition)ProgressionEventCondition.Create(14));
            Main.Achievements.Register(achievement47);
            Achievement achievement48 = new Achievement("STICKY_SITUATION");

            achievement48.AddCondition((AchievementCondition)ProgressionEventCondition.Create(16));
            Main.Achievements.Register(achievement48);
            Achievement achievement49 = new Achievement("REAL_ESTATE_AGENT");

            achievement49.AddCondition((AchievementCondition)ProgressionEventCondition.Create(17));
            Main.Achievements.Register(achievement49);
            Achievement achievement50 = new Achievement("NOT_THE_BEES");

            achievement50.AddCondition(CustomFlagCondition.Create("Use"));
            Main.Achievements.Register(achievement50);
            Achievement achievement51 = new Achievement("JEEPERS_CREEPERS");

            achievement51.AddCondition(CustomFlagCondition.Create("Reach"));
            Main.Achievements.Register(achievement51);
            Achievement achievement52 = new Achievement("FUNKYTOWN");

            achievement52.AddCondition(CustomFlagCondition.Create("Reach"));
            Main.Achievements.Register(achievement52);
            Achievement achievement53 = new Achievement("INTO_ORBIT");

            achievement53.AddCondition(CustomFlagCondition.Create("Reach"));
            Main.Achievements.Register(achievement53);
            Achievement achievement54 = new Achievement("ROCK_BOTTOM");

            achievement54.AddCondition(CustomFlagCondition.Create("Reach"));
            Main.Achievements.Register(achievement54);
            Achievement achievement55 = new Achievement("MECHA_MAYHEM");

            achievement55.AddCondition((AchievementCondition)ProgressionEventCondition.Create(21));
            Main.Achievements.Register(achievement55);
            Achievement achievement56 = new Achievement("GELATIN_WORLD_TOUR");

            achievement56.AddConditions(NPCKilledCondition.CreateMany((short)-5, (short)-6, (short)1, (short)81, (short)71, (short)-3, (short)147, (short)138, (short)-10, (short)50, (short)59, (short)16, (short)-7, (short)244, (short)-8, (short)-1, (short)-2, (short)184, (short)204, (short)225, (short)-9, (short)141, (short)183, (short)-4));
            achievement56.UseConditionsCompletedTracker();
            Main.Achievements.Register(achievement56);
            Achievement achievement57 = new Achievement("FASHION_STATEMENT");

            achievement57.AddCondition(CustomFlagCondition.Create("Equip"));
            Main.Achievements.Register(achievement57);
            Achievement achievement58 = new Achievement("VEHICULAR_MANSLAUGHTER");

            achievement58.AddCondition(CustomFlagCondition.Create("Hit"));
            Main.Achievements.Register(achievement58);
            Achievement achievement59 = new Achievement("BULLDOZER");

            achievement59.AddCondition(CustomIntCondition.Create("Pick", 10000));
            achievement59.UseTrackerFromCondition("Pick");
            Main.Achievements.Register(achievement59);
            Achievement achievement60 = new Achievement("THERE_ARE_SOME_WHO_CALL_HIM");

            achievement60.AddCondition(NPCKilledCondition.Create((short)45));
            Main.Achievements.Register(achievement60);
            Achievement achievement61 = new Achievement("DECEIVER_OF_FOOLS");

            achievement61.AddCondition(NPCKilledCondition.Create((short)196));
            Main.Achievements.Register(achievement61);
            Achievement achievement62 = new Achievement("SWORD_OF_THE_HERO");

            achievement62.AddCondition(ItemPickupCondition.Create((short)757));
            Main.Achievements.Register(achievement62);
            Achievement achievement63 = new Achievement("LUCKY_BREAK");

            achievement63.AddCondition(CustomFlagCondition.Create("Hit"));
            Main.Achievements.Register(achievement63);
            Achievement achievement64 = new Achievement("THROWING_LINES");

            achievement64.AddCondition(CustomFlagCondition.Create("Use"));
            Main.Achievements.Register(achievement64);
            Achievement achievement65 = new Achievement("DYE_HARD");

            achievement65.AddCondition(CustomFlagCondition.Create("Equip"));
            Main.Achievements.Register(achievement65);
            Achievement achievement66 = new Achievement("SICK_THROW");

            achievement66.AddCondition(ItemPickupCondition.Create((short)3389));
            Main.Achievements.Register(achievement66);
            Achievement achievement67 = new Achievement("FREQUENT_FLYER");

            achievement67.AddCondition(CustomFloatCondition.Create("Pay", 10000f));
            achievement67.UseTrackerFromCondition("Pay");
            Main.Achievements.Register(achievement67);
            Achievement achievement68 = new Achievement("THE_CAVALRY");

            achievement68.AddCondition(CustomFlagCondition.Create("Equip"));
            Main.Achievements.Register(achievement68);
            Achievement achievement69 = new Achievement("COMPLETELY_AWESOME");

            achievement69.AddCondition(ItemPickupCondition.Create((short)98));
            Main.Achievements.Register(achievement69);
            Achievement achievement70 = new Achievement("TIL_DEATH");

            achievement70.AddCondition(NPCKilledCondition.Create((short)53));
            Main.Achievements.Register(achievement70);
            Achievement achievement71 = new Achievement("ARCHAEOLOGIST");

            achievement71.AddCondition(NPCKilledCondition.Create((short)52));
            Main.Achievements.Register(achievement71);
            Achievement achievement72 = new Achievement("PRETTY_IN_PINK");

            achievement72.AddCondition(NPCKilledCondition.Create((short)-4));
            Main.Achievements.Register(achievement72);
            Achievement achievement73 = new Achievement("RAINBOWS_AND_UNICORNS");

            achievement73.AddCondition(CustomFlagCondition.Create("Use"));
            Main.Achievements.Register(achievement73);
            Achievement achievement74 = new Achievement("YOU_AND_WHAT_ARMY");

            achievement74.AddCondition(CustomFlagCondition.Create("Spawn"));
            Main.Achievements.Register(achievement74);
            Achievement achievement75 = new Achievement("PRISMANCER");

            achievement75.AddCondition(ItemPickupCondition.Create((short)495));
            Main.Achievements.Register(achievement75);
            Achievement achievement76 = new Achievement("IT_CAN_TALK");

            achievement76.AddCondition((AchievementCondition)ProgressionEventCondition.Create(18));
            Main.Achievements.Register(achievement76);
            Achievement achievement77 = new Achievement("WATCH_YOUR_STEP");

            achievement77.AddCondition(CustomFlagCondition.Create("Hit"));
            Main.Achievements.Register(achievement77);
            Achievement achievement78 = new Achievement("MARATHON_MEDALIST");

            achievement78.AddCondition(CustomFloatCondition.Create("Move", 1106688f));
            achievement78.UseTrackerFromCondition("Move");
            Main.Achievements.Register(achievement78);
            Achievement achievement79 = new Achievement("GLORIOUS_GOLDEN_POLE");

            achievement79.AddCondition(ItemPickupCondition.Create((short)2294));
            Main.Achievements.Register(achievement79);
            Achievement achievement80 = new Achievement("SERVANT_IN_TRAINING");

            achievement80.AddCondition(CustomFlagCondition.Create("Finish"));
            Main.Achievements.Register(achievement80);
            Achievement achievement81 = new Achievement("GOOD_LITTLE_SLAVE");

            achievement81.AddCondition(CustomIntCondition.Create("Finish", 10));
            achievement81.UseTrackerFromCondition("Finish");
            Main.Achievements.Register(achievement81);
            Achievement achievement82 = new Achievement("TROUT_MONKEY");

            achievement82.AddCondition(CustomIntCondition.Create("Finish", 25));
            achievement82.UseTrackerFromCondition("Finish");
            Main.Achievements.Register(achievement82);
            Achievement achievement83 = new Achievement("FAST_AND_FISHIOUS");

            achievement83.AddCondition(CustomIntCondition.Create("Finish", 50));
            achievement83.UseTrackerFromCondition("Finish");
            Main.Achievements.Register(achievement83);
            Achievement achievement84 = new Achievement("SUPREME_HELPER_MINION");

            achievement84.AddCondition(CustomIntCondition.Create("Finish", 200));
            achievement84.UseTrackerFromCondition("Finish");
            Main.Achievements.Register(achievement84);
            Achievement achievement85 = new Achievement("TOPPED_OFF");

            achievement85.AddCondition(CustomFlagCondition.Create("Use"));
            Main.Achievements.Register(achievement85);
            Achievement achievement86 = new Achievement("SLAYER_OF_WORLDS");

            achievement86.AddCondition(NPCKilledCondition.Create((short)13, (short)14, (short)15));
            achievement86.AddCondition(NPCKilledCondition.Create((short)113, (short)114));
            achievement86.AddCondition(NPCKilledCondition.Create((short)125, (short)126));
            achievement86.AddConditions(NPCKilledCondition.CreateMany((short)4, (short)35, (short)50, (short)222, (short)113, (short)134, (short)sbyte.MaxValue, (short)262, (short)245, (short)439, (short)398, (short)370));
            achievement86.UseConditionsCompletedTracker();
            Main.Achievements.Register(achievement86);
            Achievement achievement87 = new Achievement("YOU_CAN_DO_IT");

            achievement87.AddCondition((AchievementCondition)ProgressionEventCondition.Create(1));
            Main.Achievements.Register(achievement87);
            Achievement achievement88 = new Achievement("MATCHING_ATTIRE");

            achievement88.AddCondition(CustomFlagCondition.Create("Equip"));
            Main.Achievements.Register(achievement88);
            Main.Achievements.RegisterIconIndex("TIMBER", 0);
            Main.Achievements.RegisterIconIndex("NO_HOBO", 1);
            Main.Achievements.RegisterIconIndex("OBTAIN_HAMMER", 2);
            Main.Achievements.RegisterIconIndex("HEART_BREAKER", 3);
            Main.Achievements.RegisterIconIndex("OOO_SHINY", 4);
            Main.Achievements.RegisterIconIndex("HEAVY_METAL", 5);
            Main.Achievements.RegisterIconIndex("I_AM_LOOT", 6);
            Main.Achievements.RegisterIconIndex("STAR_POWER", 7);
            Main.Achievements.RegisterIconIndex("HOLD_ON_TIGHT", 8);
            Main.Achievements.RegisterIconIndex("EYE_ON_YOU", 9);
            Main.Achievements.RegisterIconIndex("SMASHING_POPPET", 10);
            Main.Achievements.RegisterIconIndex("WORM_FODDER", 11);
            Main.Achievements.RegisterIconIndex("MASTERMIND", 12);
            Main.Achievements.RegisterIconIndex("WHERES_MY_HONEY", 13);
            Main.Achievements.RegisterIconIndex("STING_OPERATION", 14);
            Main.Achievements.RegisterIconIndex("BONED", 15);
            Main.Achievements.RegisterIconIndex("DUNGEON_HEIST", 16);
            Main.Achievements.RegisterIconIndex("ITS_GETTING_HOT_IN_HERE", 17);
            Main.Achievements.RegisterIconIndex("MINER_FOR_FIRE", 18);
            Main.Achievements.RegisterIconIndex("STILL_HUNGRY", 19);
            Main.Achievements.RegisterIconIndex("ITS_HARD", 20);
            Main.Achievements.RegisterIconIndex("BEGONE_EVIL", 21);
            Main.Achievements.RegisterIconIndex("EXTRA_SHINY", 22);
            Main.Achievements.RegisterIconIndex("HEAD_IN_THE_CLOUDS", 23);
            Main.Achievements.RegisterIconIndex("LIKE_A_BOSS", 24);
            Main.Achievements.RegisterIconIndex("BUCKETS_OF_BOLTS", 25);
            Main.Achievements.RegisterIconIndex("DRAX_ATTAX", 26);
            Main.Achievements.RegisterIconIndex("PHOTOSYNTHESIS", 27);
            Main.Achievements.RegisterIconIndex("GET_A_LIFE", 28);
            Main.Achievements.RegisterIconIndex("THE_GREAT_SOUTHERN_PLANTKILL", 29);
            Main.Achievements.RegisterIconIndex("TEMPLE_RAIDER", 30);
            Main.Achievements.RegisterIconIndex("LIHZAHRDIAN_IDOL", 31);
            Main.Achievements.RegisterIconIndex("ROBBING_THE_GRAVE", 32);
            Main.Achievements.RegisterIconIndex("BIG_BOOTY", 33);
            Main.Achievements.RegisterIconIndex("FISH_OUT_OF_WATER", 34);
            Main.Achievements.RegisterIconIndex("OBSESSIVE_DEVOTION", 35);
            Main.Achievements.RegisterIconIndex("STAR_DESTROYER", 36);
            Main.Achievements.RegisterIconIndex("CHAMPION_OF_TERRARIA", 37);
            Main.Achievements.RegisterIconIndex("BLOODBATH", 38);
            Main.Achievements.RegisterIconIndex("GOBLIN_PUNTER", 39);
            Main.Achievements.RegisterIconIndex("KILL_THE_SUN", 40);
            Main.Achievements.RegisterIconIndex("WALK_THE_PLANK", 41);
            Main.Achievements.RegisterIconIndex("DO_YOU_WANT_TO_SLAY_A_SNOWMAN", 42);
            Main.Achievements.RegisterIconIndex("TIN_FOIL_HATTER", 43);
            Main.Achievements.RegisterIconIndex("BALEFUL_HARVEST", 44);
            Main.Achievements.RegisterIconIndex("ICE_SCREAM", 45);
            Main.Achievements.RegisterIconIndex("SLIPPERY_SHINOBI", 46);
            Main.Achievements.RegisterIconIndex("STICKY_SITUATION", 47);
            Main.Achievements.RegisterIconIndex("REAL_ESTATE_AGENT", 48);
            Main.Achievements.RegisterIconIndex("NOT_THE_BEES", 49);
            Main.Achievements.RegisterIconIndex("JEEPERS_CREEPERS", 50);
            Main.Achievements.RegisterIconIndex("FUNKYTOWN", 51);
            Main.Achievements.RegisterIconIndex("INTO_ORBIT", 52);
            Main.Achievements.RegisterIconIndex("ROCK_BOTTOM", 53);
            Main.Achievements.RegisterIconIndex("MECHA_MAYHEM", 54);
            Main.Achievements.RegisterIconIndex("GELATIN_WORLD_TOUR", 55);
            Main.Achievements.RegisterIconIndex("FASHION_STATEMENT", 56);
            Main.Achievements.RegisterIconIndex("VEHICULAR_MANSLAUGHTER", 57);
            Main.Achievements.RegisterIconIndex("BULLDOZER", 58);
            Main.Achievements.RegisterIconIndex("THERE_ARE_SOME_WHO_CALL_HIM", 59);
            Main.Achievements.RegisterIconIndex("DECEIVER_OF_FOOLS", 60);
            Main.Achievements.RegisterIconIndex("SWORD_OF_THE_HERO", 61);
            Main.Achievements.RegisterIconIndex("LUCKY_BREAK", 62);
            Main.Achievements.RegisterIconIndex("THROWING_LINES", 63);
            Main.Achievements.RegisterIconIndex("DYE_HARD", 64);
            Main.Achievements.RegisterIconIndex("FREQUENT_FLYER", 65);
            Main.Achievements.RegisterIconIndex("THE_CAVALRY", 66);
            Main.Achievements.RegisterIconIndex("COMPLETELY_AWESOME", 67);
            Main.Achievements.RegisterIconIndex("TIL_DEATH", 68);
            Main.Achievements.RegisterIconIndex("ARCHAEOLOGIST", 69);
            Main.Achievements.RegisterIconIndex("PRETTY_IN_PINK", 70);
            Main.Achievements.RegisterIconIndex("RAINBOWS_AND_UNICORNS", 71);
            Main.Achievements.RegisterIconIndex("YOU_AND_WHAT_ARMY", 72);
            Main.Achievements.RegisterIconIndex("PRISMANCER", 73);
            Main.Achievements.RegisterIconIndex("IT_CAN_TALK", 74);
            Main.Achievements.RegisterIconIndex("WATCH_YOUR_STEP", 75);
            Main.Achievements.RegisterIconIndex("MARATHON_MEDALIST", 76);
            Main.Achievements.RegisterIconIndex("GLORIOUS_GOLDEN_POLE", 77);
            Main.Achievements.RegisterIconIndex("SERVANT_IN_TRAINING", 78);
            Main.Achievements.RegisterIconIndex("GOOD_LITTLE_SLAVE", 79);
            Main.Achievements.RegisterIconIndex("TROUT_MONKEY", 80);
            Main.Achievements.RegisterIconIndex("FAST_AND_FISHIOUS", 81);
            Main.Achievements.RegisterIconIndex("SUPREME_HELPER_MINION", 82);
            Main.Achievements.RegisterIconIndex("TOPPED_OFF", 83);
            Main.Achievements.RegisterIconIndex("SLAYER_OF_WORLDS", 84);
            Main.Achievements.RegisterIconIndex("YOU_CAN_DO_IT", 85);
            Main.Achievements.RegisterIconIndex("SICK_THROW", 86);
            Main.Achievements.RegisterIconIndex("MATCHING_ATTIRE", 87);
            Main.Achievements.RegisterAchievementCategory("EYE_ON_YOU", AchievementCategory.Slayer);
            Main.Achievements.RegisterAchievementCategory("SLIPPERY_SHINOBI", AchievementCategory.Slayer);
            Main.Achievements.RegisterAchievementCategory("WORM_FODDER", AchievementCategory.Slayer);
            Main.Achievements.RegisterAchievementCategory("MASTERMIND", AchievementCategory.Slayer);
            Main.Achievements.RegisterAchievementCategory("STING_OPERATION", AchievementCategory.Slayer);
            Main.Achievements.RegisterAchievementCategory("BONED", AchievementCategory.Slayer);
            Main.Achievements.RegisterAchievementCategory("STILL_HUNGRY", AchievementCategory.Slayer);
            Main.Achievements.RegisterAchievementCategory("BUCKETS_OF_BOLTS", AchievementCategory.Slayer);
            Main.Achievements.RegisterAchievementCategory("THE_GREAT_SOUTHERN_PLANTKILL", AchievementCategory.Slayer);
            Main.Achievements.RegisterAchievementCategory("LIHZAHRDIAN_IDOL", AchievementCategory.Slayer);
            Main.Achievements.RegisterAchievementCategory("FISH_OUT_OF_WATER", AchievementCategory.Slayer);
            Main.Achievements.RegisterAchievementCategory("OBSESSIVE_DEVOTION", AchievementCategory.Slayer);
            Main.Achievements.RegisterAchievementCategory("STAR_DESTROYER", AchievementCategory.Slayer);
            Main.Achievements.RegisterAchievementCategory("CHAMPION_OF_TERRARIA", AchievementCategory.Slayer);
            Main.Achievements.RegisterAchievementCategory("GOBLIN_PUNTER", AchievementCategory.Slayer);
            Main.Achievements.RegisterAchievementCategory("DO_YOU_WANT_TO_SLAY_A_SNOWMAN", AchievementCategory.Slayer);
            Main.Achievements.RegisterAchievementCategory("WALK_THE_PLANK", AchievementCategory.Slayer);
            Main.Achievements.RegisterAchievementCategory("BALEFUL_HARVEST", AchievementCategory.Slayer);
            Main.Achievements.RegisterAchievementCategory("ICE_SCREAM", AchievementCategory.Slayer);
            Main.Achievements.RegisterAchievementCategory("TIN_FOIL_HATTER", AchievementCategory.Slayer);
            Main.Achievements.RegisterAchievementCategory("TIL_DEATH", AchievementCategory.Slayer);
            Main.Achievements.RegisterAchievementCategory("THERE_ARE_SOME_WHO_CALL_HIM", AchievementCategory.Slayer);
            Main.Achievements.RegisterAchievementCategory("ARCHAEOLOGIST", AchievementCategory.Slayer);
            Main.Achievements.RegisterAchievementCategory("PRETTY_IN_PINK", AchievementCategory.Slayer);
            Main.Achievements.RegisterAchievementCategory("DECEIVER_OF_FOOLS", AchievementCategory.Slayer);
            Main.Achievements.RegisterAchievementCategory("VEHICULAR_MANSLAUGHTER", AchievementCategory.Slayer);
            Main.Achievements.RegisterAchievementCategory("SMASHING_POPPET", AchievementCategory.Explorer);
            Main.Achievements.RegisterAchievementCategory("BEGONE_EVIL", AchievementCategory.Explorer);
            Main.Achievements.RegisterAchievementCategory("ITS_HARD", AchievementCategory.Explorer);
            Main.Achievements.RegisterAchievementCategory("FUNKYTOWN", AchievementCategory.Explorer);
            Main.Achievements.RegisterAchievementCategory("WATCH_YOUR_STEP", AchievementCategory.Explorer);
            Main.Achievements.RegisterAchievementCategory("YOU_CAN_DO_IT", AchievementCategory.Explorer);
            Main.Achievements.RegisterAchievementCategory("BLOODBATH", AchievementCategory.Explorer);
            Main.Achievements.RegisterAchievementCategory("KILL_THE_SUN", AchievementCategory.Explorer);
            Main.Achievements.RegisterAchievementCategory("STICKY_SITUATION", AchievementCategory.Explorer);
            Main.Achievements.RegisterAchievementCategory("NO_HOBO", AchievementCategory.Explorer);
            Main.Achievements.RegisterAchievementCategory("IT_CAN_TALK", AchievementCategory.Explorer);
            Main.Achievements.RegisterAchievementCategory("HEART_BREAKER", AchievementCategory.Explorer);
            Main.Achievements.RegisterAchievementCategory("I_AM_LOOT", AchievementCategory.Explorer);
            Main.Achievements.RegisterAchievementCategory("ROBBING_THE_GRAVE", AchievementCategory.Explorer);
            Main.Achievements.RegisterAchievementCategory("GET_A_LIFE", AchievementCategory.Explorer);
            Main.Achievements.RegisterAchievementCategory("JEEPERS_CREEPERS", AchievementCategory.Explorer);
            Main.Achievements.RegisterAchievementCategory("WHERES_MY_HONEY", AchievementCategory.Explorer);
            Main.Achievements.RegisterAchievementCategory("DUNGEON_HEIST", AchievementCategory.Explorer);
            Main.Achievements.RegisterAchievementCategory("BIG_BOOTY", AchievementCategory.Explorer);
            Main.Achievements.RegisterAchievementCategory("ITS_GETTING_HOT_IN_HERE", AchievementCategory.Explorer);
            Main.Achievements.RegisterAchievementCategory("INTO_ORBIT", AchievementCategory.Explorer);
            Main.Achievements.RegisterAchievementCategory("ROCK_BOTTOM", AchievementCategory.Explorer);
            Main.Achievements.RegisterAchievementCategory("OOO_SHINY", AchievementCategory.Explorer);
            Main.Achievements.RegisterAchievementCategory("EXTRA_SHINY", AchievementCategory.Explorer);
            Main.Achievements.RegisterAchievementCategory("PHOTOSYNTHESIS", AchievementCategory.Explorer);
            Main.Achievements.RegisterAchievementCategory("GELATIN_WORLD_TOUR", AchievementCategory.Challenger);
            Main.Achievements.RegisterAchievementCategory("SLAYER_OF_WORLDS", AchievementCategory.Challenger);
            Main.Achievements.RegisterAchievementCategory("REAL_ESTATE_AGENT", AchievementCategory.Challenger);
            Main.Achievements.RegisterAchievementCategory("YOU_AND_WHAT_ARMY", AchievementCategory.Challenger);
            Main.Achievements.RegisterAchievementCategory("TOPPED_OFF", AchievementCategory.Challenger);
            Main.Achievements.RegisterAchievementCategory("MECHA_MAYHEM", AchievementCategory.Challenger);
            Main.Achievements.RegisterAchievementCategory("BULLDOZER", AchievementCategory.Challenger);
            Main.Achievements.RegisterAchievementCategory("NOT_THE_BEES", AchievementCategory.Challenger);
            Main.Achievements.RegisterAchievementCategory("RAINBOWS_AND_UNICORNS", AchievementCategory.Challenger);
            Main.Achievements.RegisterAchievementCategory("THROWING_LINES", AchievementCategory.Challenger);
            Main.Achievements.RegisterAchievementCategory("FREQUENT_FLYER", AchievementCategory.Challenger);
            Main.Achievements.RegisterAchievementCategory("LUCKY_BREAK", AchievementCategory.Challenger);
            Main.Achievements.RegisterAchievementCategory("MARATHON_MEDALIST", AchievementCategory.Challenger);
            Main.Achievements.RegisterAchievementCategory("SERVANT_IN_TRAINING", AchievementCategory.Challenger);
            Main.Achievements.RegisterAchievementCategory("GOOD_LITTLE_SLAVE", AchievementCategory.Challenger);
            Main.Achievements.RegisterAchievementCategory("TROUT_MONKEY", AchievementCategory.Challenger);
            Main.Achievements.RegisterAchievementCategory("FAST_AND_FISHIOUS", AchievementCategory.Challenger);
            Main.Achievements.RegisterAchievementCategory("SUPREME_HELPER_MINION", AchievementCategory.Challenger);
            Main.Achievements.RegisterAchievementCategory("OBTAIN_HAMMER", AchievementCategory.Collector);
            Main.Achievements.RegisterAchievementCategory("HEAVY_METAL", AchievementCategory.Collector);
            Main.Achievements.RegisterAchievementCategory("STAR_POWER", AchievementCategory.Collector);
            Main.Achievements.RegisterAchievementCategory("MINER_FOR_FIRE", AchievementCategory.Collector);
            Main.Achievements.RegisterAchievementCategory("HEAD_IN_THE_CLOUDS", AchievementCategory.Collector);
            Main.Achievements.RegisterAchievementCategory("DRAX_ATTAX", AchievementCategory.Collector);
            Main.Achievements.RegisterAchievementCategory("PRISMANCER", AchievementCategory.Collector);
            Main.Achievements.RegisterAchievementCategory("SWORD_OF_THE_HERO", AchievementCategory.Collector);
            Main.Achievements.RegisterAchievementCategory("HOLD_ON_TIGHT", AchievementCategory.Collector);
            Main.Achievements.RegisterAchievementCategory("THE_CAVALRY", AchievementCategory.Collector);
            Main.Achievements.RegisterAchievementCategory("DYE_HARD", AchievementCategory.Collector);
            Main.Achievements.RegisterAchievementCategory("MATCHING_ATTIRE", AchievementCategory.Collector);
            Main.Achievements.RegisterAchievementCategory("FASHION_STATEMENT", AchievementCategory.Collector);
            Main.Achievements.RegisterAchievementCategory("COMPLETELY_AWESOME", AchievementCategory.Collector);
            Main.Achievements.RegisterAchievementCategory("TIMBER", AchievementCategory.Collector);
            Main.Achievements.RegisterAchievementCategory("SICK_THROW", AchievementCategory.Collector);
            Main.Achievements.RegisterAchievementCategory("GLORIOUS_GOLDEN_POLE", AchievementCategory.Collector);
            Main.Achievements.RegisterAchievementCategory("TEMPLE_RAIDER", AchievementCategory.Collector);
            Main.Achievements.RegisterAchievementCategory("LIKE_A_BOSS", AchievementCategory.Collector);
            Main.Achievements.Load();
            Main.Achievements.OnAchievementCompleted += new Achievement.AchievementCompleted(AchievementInitializer.OnAchievementCompleted);
            AchievementsHelper.Initialize();
        }
 public static void Load()
 {
     if (Main.netMode != 2)
     {
         Achievement achievement = new Achievement("TIMBER");
         achievement.AddCondition(ItemPickupCondition.Create(9, 619, 2504, 620, 2503, 2260, 621, 911, 1729));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("BENCHED");
         achievement.AddCondition(ItemCraftCondition.Create(ItemID.Sets.Workbenches));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("NO_HOBO");
         achievement.AddCondition(ProgressionEventCondition.Create(8));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("OBTAIN_HAMMER");
         achievement.AddCondition(ItemPickupCondition.Create(2775, 2746, 3505, 654, 3517, 7, 3493, 2780, 1513, 2516, 660, 3481, 657, 922, 3511, 2785, 3499, 3487, 196, 367, 104, 797, 2320, 787, 1234, 1262, 3465, 204, 217, 1507, 3524, 3522, 3525, 3523, 4317, 1305));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("OOO_SHINY");
         achievement.AddCondition(TileDestroyedCondition.Create(7, 6, 9, 8, 166, 167, 168, 169, 22, 204, 58, 107, 108, 111, 221, 222, 223, 211));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("HEART_BREAKER");
         achievement.AddCondition(TileDestroyedCondition.Create(12));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("HEAVY_METAL");
         achievement.AddCondition(ItemPickupCondition.Create(35, 716));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("I_AM_LOOT");
         achievement.AddCondition(CustomFlagCondition.Create("Peek"));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("STAR_POWER");
         achievement.AddCondition(CustomFlagCondition.Create("Use"));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("HOLD_ON_TIGHT");
         achievement.AddCondition(CustomFlagCondition.Create("Equip"));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("EYE_ON_YOU");
         achievement.AddCondition(NPCKilledCondition.Create(4));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("SMASHING_POPPET");
         achievement.AddCondition(ProgressionEventCondition.Create(7));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("WORM_FODDER");
         achievement.AddCondition(NPCKilledCondition.Create(13, 14, 15));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("MASTERMIND");
         achievement.AddCondition(NPCKilledCondition.Create(266));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("WHERES_MY_HONEY");
         achievement.AddCondition(CustomFlagCondition.Create("Reach"));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("STING_OPERATION");
         achievement.AddCondition(NPCKilledCondition.Create(222));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("BONED");
         achievement.AddCondition(NPCKilledCondition.Create(35));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("DUNGEON_HEIST");
         achievement.AddCondition(ItemPickupCondition.Create(327));
         achievement.AddCondition(ProgressionEventCondition.Create(19));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("ITS_GETTING_HOT_IN_HERE");
         achievement.AddCondition(CustomFlagCondition.Create("Reach"));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("MINER_FOR_FIRE");
         achievement.AddCondition(ItemCraftCondition.Create(122));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("STILL_HUNGRY");
         achievement.AddCondition(NPCKilledCondition.Create(113, 114));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("ITS_HARD");
         achievement.AddCondition(ProgressionEventCondition.Create(9));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("BEGONE_EVIL");
         achievement.AddCondition(ProgressionEventCondition.Create(6));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("EXTRA_SHINY");
         achievement.AddCondition(TileDestroyedCondition.Create(107, 108, 111, 221, 222, 223));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("HEAD_IN_THE_CLOUDS");
         achievement.AddCondition(CustomFlagCondition.Create("Equip"));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("LIKE_A_BOSS");
         achievement.AddCondition(ItemPickupCondition.Create(1133, 1331, 1307, 267, 1293, 557, 544, 556, 560, 43, 70));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("BUCKETS_OF_BOLTS");
         achievement.AddCondition(NPCKilledCondition.Create(125, 126));
         achievement.AddConditions(NPCKilledCondition.CreateMany(127, 134));
         achievement.UseConditionsCompletedTracker();
         Main.Achievements.Register(achievement);
         achievement = new Achievement("DRAX_ATTAX");
         achievement.AddCondition(ItemCraftCondition.Create(579, 990));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("PHOTOSYNTHESIS");
         achievement.AddCondition(TileDestroyedCondition.Create(211));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("GET_A_LIFE");
         achievement.AddCondition(CustomFlagCondition.Create("Use"));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("THE_GREAT_SOUTHERN_PLANTKILL");
         achievement.AddCondition(NPCKilledCondition.Create(262));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("TEMPLE_RAIDER");
         achievement.AddCondition(ProgressionEventCondition.Create(22));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("LIHZAHRDIAN_IDOL");
         achievement.AddCondition(NPCKilledCondition.Create(245));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("ROBBING_THE_GRAVE");
         achievement.AddCondition(ItemPickupCondition.Create(1513, 938, 963, 977, 1300, 1254, 1514, 679, 759, 1446, 1445, 1444, 1183, 1266, 671, 3291, 4679));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("BIG_BOOTY");
         achievement.AddCondition(ProgressionEventCondition.Create(20));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("FISH_OUT_OF_WATER");
         achievement.AddCondition(NPCKilledCondition.Create(370));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("OBSESSIVE_DEVOTION");
         achievement.AddCondition(NPCKilledCondition.Create(439));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("STAR_DESTROYER");
         achievement.AddConditions(NPCKilledCondition.CreateMany(517, 422, 507, 493));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("CHAMPION_OF_TERRARIA");
         achievement.AddCondition(NPCKilledCondition.Create(398));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("BLOODBATH");
         achievement.AddCondition(ProgressionEventCondition.Create(5));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("SLIPPERY_SHINOBI");
         achievement.AddCondition(NPCKilledCondition.Create(50));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("GOBLIN_PUNTER");
         achievement.AddCondition(ProgressionEventCondition.Create(10));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("WALK_THE_PLANK");
         achievement.AddCondition(ProgressionEventCondition.Create(11));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("KILL_THE_SUN");
         achievement.AddCondition(ProgressionEventCondition.Create(3));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("DO_YOU_WANT_TO_SLAY_A_SNOWMAN");
         achievement.AddCondition(ProgressionEventCondition.Create(12));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("TIN_FOIL_HATTER");
         achievement.AddCondition(ProgressionEventCondition.Create(13));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("BALEFUL_HARVEST");
         achievement.AddCondition(ProgressionEventCondition.Create(15));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("ICE_SCREAM");
         achievement.AddCondition(ProgressionEventCondition.Create(14));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("STICKY_SITUATION");
         achievement.AddCondition(ProgressionEventCondition.Create(16));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("REAL_ESTATE_AGENT");
         achievement.AddCondition(ProgressionEventCondition.Create(17));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("NOT_THE_BEES");
         achievement.AddCondition(CustomFlagCondition.Create("Use"));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("JEEPERS_CREEPERS");
         achievement.AddCondition(CustomFlagCondition.Create("Reach"));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("FUNKYTOWN");
         achievement.AddCondition(CustomFlagCondition.Create("Reach"));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("INTO_ORBIT");
         achievement.AddCondition(CustomFlagCondition.Create("Reach"));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("ROCK_BOTTOM");
         achievement.AddCondition(CustomFlagCondition.Create("Reach"));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("MECHA_MAYHEM");
         achievement.AddCondition(ProgressionEventCondition.Create(21));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("GELATIN_WORLD_TOUR");
         achievement.AddConditions(NPCKilledCondition.CreateMany(-5, -6, 1, 81, 71, -3, 147, 138, -10, 50, 59, 16, -7, 244, -8, -1, -2, 184, 204, 225, -9, 141, 183, -4));
         achievement.UseConditionsCompletedTracker();
         Main.Achievements.Register(achievement);
         achievement = new Achievement("FASHION_STATEMENT");
         achievement.AddCondition(CustomFlagCondition.Create("Equip"));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("VEHICULAR_MANSLAUGHTER");
         achievement.AddCondition(CustomFlagCondition.Create("Hit"));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("BULLDOZER");
         achievement.AddCondition(CustomIntCondition.Create("Pick", 10000));
         achievement.UseTrackerFromCondition("Pick");
         Main.Achievements.Register(achievement);
         achievement = new Achievement("THERE_ARE_SOME_WHO_CALL_HIM");
         achievement.AddCondition(NPCKilledCondition.Create(45));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("DECEIVER_OF_FOOLS");
         achievement.AddCondition(NPCKilledCondition.Create(196));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("SWORD_OF_THE_HERO");
         achievement.AddCondition(ItemPickupCondition.Create(757));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("LUCKY_BREAK");
         achievement.AddCondition(CustomFlagCondition.Create("Hit"));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("THROWING_LINES");
         achievement.AddCondition(CustomFlagCondition.Create("Use"));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("DYE_HARD");
         achievement.AddCondition(CustomFlagCondition.Create("Equip"));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("SICK_THROW");
         achievement.AddCondition(ItemPickupCondition.Create(3389));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("FREQUENT_FLYER");
         achievement.AddCondition(CustomFloatCondition.Create("Pay", 10000f));
         achievement.UseTrackerFromCondition("Pay");
         Main.Achievements.Register(achievement);
         achievement = new Achievement("THE_CAVALRY");
         achievement.AddCondition(CustomFlagCondition.Create("Equip"));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("COMPLETELY_AWESOME");
         achievement.AddCondition(ItemPickupCondition.Create(98));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("TIL_DEATH");
         achievement.AddCondition(NPCKilledCondition.Create(53));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("ARCHAEOLOGIST");
         achievement.AddCondition(NPCKilledCondition.Create(52));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("PRETTY_IN_PINK");
         achievement.AddCondition(NPCKilledCondition.Create(-4));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("RAINBOWS_AND_UNICORNS");
         achievement.AddCondition(CustomFlagCondition.Create("Use"));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("YOU_AND_WHAT_ARMY");
         achievement.AddCondition(CustomFlagCondition.Create("Spawn"));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("PRISMANCER");
         achievement.AddCondition(ItemPickupCondition.Create(495));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("IT_CAN_TALK");
         achievement.AddCondition(ProgressionEventCondition.Create(18));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("WATCH_YOUR_STEP");
         achievement.AddCondition(CustomFlagCondition.Create("Hit"));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("MARATHON_MEDALIST");
         achievement.AddCondition(CustomFloatCondition.Create("Move", 1106688f));
         achievement.UseTrackerFromCondition("Move");
         Main.Achievements.Register(achievement);
         achievement = new Achievement("GLORIOUS_GOLDEN_POLE");
         achievement.AddCondition(ItemPickupCondition.Create(2294));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("SERVANT_IN_TRAINING");
         achievement.AddCondition(CustomFlagCondition.Create("Finish"));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("GOOD_LITTLE_SLAVE");
         achievement.AddCondition(CustomIntCondition.Create("Finish", 10));
         achievement.UseTrackerFromCondition("Finish");
         Main.Achievements.Register(achievement);
         achievement = new Achievement("TROUT_MONKEY");
         achievement.AddCondition(CustomIntCondition.Create("Finish", 25));
         achievement.UseTrackerFromCondition("Finish");
         Main.Achievements.Register(achievement);
         achievement = new Achievement("FAST_AND_FISHIOUS");
         achievement.AddCondition(CustomIntCondition.Create("Finish", 50));
         achievement.UseTrackerFromCondition("Finish");
         Main.Achievements.Register(achievement);
         achievement = new Achievement("SUPREME_HELPER_MINION");
         achievement.AddCondition(CustomIntCondition.Create("Finish", 200));
         achievement.UseTrackerFromCondition("Finish");
         Main.Achievements.Register(achievement);
         achievement = new Achievement("TOPPED_OFF");
         achievement.AddCondition(CustomFlagCondition.Create("Use"));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("SLAYER_OF_WORLDS");
         achievement.AddCondition(NPCKilledCondition.Create(13, 14, 15));
         achievement.AddCondition(NPCKilledCondition.Create(113, 114));
         achievement.AddCondition(NPCKilledCondition.Create(125, 126));
         achievement.AddConditions(NPCKilledCondition.CreateMany(4, 266, 35, 50, 222, 134, 127, 262, 245, 439, 398, 370));
         achievement.UseConditionsCompletedTracker();
         Main.Achievements.Register(achievement);
         achievement = new Achievement("YOU_CAN_DO_IT");
         achievement.AddCondition(ProgressionEventCondition.Create(1));
         Main.Achievements.Register(achievement);
         achievement = new Achievement("MATCHING_ATTIRE");
         achievement.AddCondition(CustomFlagCondition.Create("Equip"));
         Main.Achievements.Register(achievement);
         int num = 0;
         Main.Achievements.RegisterIconIndex("TIMBER", num++);
         Main.Achievements.RegisterIconIndex("NO_HOBO", num++);
         Main.Achievements.RegisterIconIndex("OBTAIN_HAMMER", num++);
         Main.Achievements.RegisterIconIndex("HEART_BREAKER", num++);
         Main.Achievements.RegisterIconIndex("OOO_SHINY", num++);
         Main.Achievements.RegisterIconIndex("HEAVY_METAL", num++);
         Main.Achievements.RegisterIconIndex("I_AM_LOOT", num++);
         Main.Achievements.RegisterIconIndex("STAR_POWER", num++);
         Main.Achievements.RegisterIconIndex("HOLD_ON_TIGHT", num++);
         Main.Achievements.RegisterIconIndex("EYE_ON_YOU", num++);
         Main.Achievements.RegisterIconIndex("SMASHING_POPPET", num++);
         Main.Achievements.RegisterIconIndex("WORM_FODDER", num++);
         Main.Achievements.RegisterIconIndex("MASTERMIND", num++);
         Main.Achievements.RegisterIconIndex("WHERES_MY_HONEY", num++);
         Main.Achievements.RegisterIconIndex("STING_OPERATION", num++);
         Main.Achievements.RegisterIconIndex("BONED", num++);
         Main.Achievements.RegisterIconIndex("DUNGEON_HEIST", num++);
         Main.Achievements.RegisterIconIndex("ITS_GETTING_HOT_IN_HERE", num++);
         Main.Achievements.RegisterIconIndex("MINER_FOR_FIRE", num++);
         Main.Achievements.RegisterIconIndex("STILL_HUNGRY", num++);
         Main.Achievements.RegisterIconIndex("ITS_HARD", num++);
         Main.Achievements.RegisterIconIndex("BEGONE_EVIL", num++);
         Main.Achievements.RegisterIconIndex("EXTRA_SHINY", num++);
         Main.Achievements.RegisterIconIndex("HEAD_IN_THE_CLOUDS", num++);
         Main.Achievements.RegisterIconIndex("LIKE_A_BOSS", num++);
         Main.Achievements.RegisterIconIndex("BUCKETS_OF_BOLTS", num++);
         Main.Achievements.RegisterIconIndex("DRAX_ATTAX", num++);
         Main.Achievements.RegisterIconIndex("PHOTOSYNTHESIS", num++);
         Main.Achievements.RegisterIconIndex("GET_A_LIFE", num++);
         Main.Achievements.RegisterIconIndex("THE_GREAT_SOUTHERN_PLANTKILL", num++);
         Main.Achievements.RegisterIconIndex("TEMPLE_RAIDER", num++);
         Main.Achievements.RegisterIconIndex("LIHZAHRDIAN_IDOL", num++);
         Main.Achievements.RegisterIconIndex("ROBBING_THE_GRAVE", num++);
         Main.Achievements.RegisterIconIndex("BIG_BOOTY", num++);
         Main.Achievements.RegisterIconIndex("FISH_OUT_OF_WATER", num++);
         Main.Achievements.RegisterIconIndex("OBSESSIVE_DEVOTION", num++);
         Main.Achievements.RegisterIconIndex("STAR_DESTROYER", num++);
         Main.Achievements.RegisterIconIndex("CHAMPION_OF_TERRARIA", num++);
         Main.Achievements.RegisterIconIndex("BLOODBATH", num++);
         Main.Achievements.RegisterIconIndex("GOBLIN_PUNTER", num++);
         Main.Achievements.RegisterIconIndex("KILL_THE_SUN", num++);
         Main.Achievements.RegisterIconIndex("WALK_THE_PLANK", num++);
         Main.Achievements.RegisterIconIndex("DO_YOU_WANT_TO_SLAY_A_SNOWMAN", num++);
         Main.Achievements.RegisterIconIndex("TIN_FOIL_HATTER", num++);
         Main.Achievements.RegisterIconIndex("BALEFUL_HARVEST", num++);
         Main.Achievements.RegisterIconIndex("ICE_SCREAM", num++);
         Main.Achievements.RegisterIconIndex("SLIPPERY_SHINOBI", num++);
         Main.Achievements.RegisterIconIndex("STICKY_SITUATION", num++);
         Main.Achievements.RegisterIconIndex("REAL_ESTATE_AGENT", num++);
         Main.Achievements.RegisterIconIndex("NOT_THE_BEES", num++);
         Main.Achievements.RegisterIconIndex("JEEPERS_CREEPERS", num++);
         Main.Achievements.RegisterIconIndex("FUNKYTOWN", num++);
         Main.Achievements.RegisterIconIndex("INTO_ORBIT", num++);
         Main.Achievements.RegisterIconIndex("ROCK_BOTTOM", num++);
         Main.Achievements.RegisterIconIndex("MECHA_MAYHEM", num++);
         Main.Achievements.RegisterIconIndex("GELATIN_WORLD_TOUR", num++);
         Main.Achievements.RegisterIconIndex("FASHION_STATEMENT", num++);
         Main.Achievements.RegisterIconIndex("VEHICULAR_MANSLAUGHTER", num++);
         Main.Achievements.RegisterIconIndex("BULLDOZER", num++);
         Main.Achievements.RegisterIconIndex("THERE_ARE_SOME_WHO_CALL_HIM", num++);
         Main.Achievements.RegisterIconIndex("DECEIVER_OF_FOOLS", num++);
         Main.Achievements.RegisterIconIndex("SWORD_OF_THE_HERO", num++);
         Main.Achievements.RegisterIconIndex("LUCKY_BREAK", num++);
         Main.Achievements.RegisterIconIndex("THROWING_LINES", num++);
         Main.Achievements.RegisterIconIndex("DYE_HARD", num++);
         Main.Achievements.RegisterIconIndex("FREQUENT_FLYER", num++);
         Main.Achievements.RegisterIconIndex("THE_CAVALRY", num++);
         Main.Achievements.RegisterIconIndex("COMPLETELY_AWESOME", num++);
         Main.Achievements.RegisterIconIndex("TIL_DEATH", num++);
         Main.Achievements.RegisterIconIndex("ARCHAEOLOGIST", num++);
         Main.Achievements.RegisterIconIndex("PRETTY_IN_PINK", num++);
         Main.Achievements.RegisterIconIndex("RAINBOWS_AND_UNICORNS", num++);
         Main.Achievements.RegisterIconIndex("YOU_AND_WHAT_ARMY", num++);
         Main.Achievements.RegisterIconIndex("PRISMANCER", num++);
         Main.Achievements.RegisterIconIndex("IT_CAN_TALK", num++);
         Main.Achievements.RegisterIconIndex("WATCH_YOUR_STEP", num++);
         Main.Achievements.RegisterIconIndex("MARATHON_MEDALIST", num++);
         Main.Achievements.RegisterIconIndex("GLORIOUS_GOLDEN_POLE", num++);
         Main.Achievements.RegisterIconIndex("SERVANT_IN_TRAINING", num++);
         Main.Achievements.RegisterIconIndex("GOOD_LITTLE_SLAVE", num++);
         Main.Achievements.RegisterIconIndex("TROUT_MONKEY", num++);
         Main.Achievements.RegisterIconIndex("FAST_AND_FISHIOUS", num++);
         Main.Achievements.RegisterIconIndex("SUPREME_HELPER_MINION", num++);
         Main.Achievements.RegisterIconIndex("TOPPED_OFF", num++);
         Main.Achievements.RegisterIconIndex("SLAYER_OF_WORLDS", num++);
         Main.Achievements.RegisterIconIndex("YOU_CAN_DO_IT", num++);
         Main.Achievements.RegisterIconIndex("SICK_THROW", num++);
         Main.Achievements.RegisterIconIndex("MATCHING_ATTIRE", num++);
         Main.Achievements.RegisterIconIndex("BENCHED", num++);
         AchievementCategory category = AchievementCategory.Slayer;
         Main.Achievements.RegisterAchievementCategory("EYE_ON_YOU", category);
         Main.Achievements.RegisterAchievementCategory("SLIPPERY_SHINOBI", category);
         Main.Achievements.RegisterAchievementCategory("WORM_FODDER", category);
         Main.Achievements.RegisterAchievementCategory("MASTERMIND", category);
         Main.Achievements.RegisterAchievementCategory("STING_OPERATION", category);
         Main.Achievements.RegisterAchievementCategory("BONED", category);
         Main.Achievements.RegisterAchievementCategory("STILL_HUNGRY", category);
         Main.Achievements.RegisterAchievementCategory("BUCKETS_OF_BOLTS", category);
         Main.Achievements.RegisterAchievementCategory("THE_GREAT_SOUTHERN_PLANTKILL", category);
         Main.Achievements.RegisterAchievementCategory("LIHZAHRDIAN_IDOL", category);
         Main.Achievements.RegisterAchievementCategory("FISH_OUT_OF_WATER", category);
         Main.Achievements.RegisterAchievementCategory("OBSESSIVE_DEVOTION", category);
         Main.Achievements.RegisterAchievementCategory("STAR_DESTROYER", category);
         Main.Achievements.RegisterAchievementCategory("CHAMPION_OF_TERRARIA", category);
         Main.Achievements.RegisterAchievementCategory("GOBLIN_PUNTER", category);
         Main.Achievements.RegisterAchievementCategory("DO_YOU_WANT_TO_SLAY_A_SNOWMAN", category);
         Main.Achievements.RegisterAchievementCategory("WALK_THE_PLANK", category);
         Main.Achievements.RegisterAchievementCategory("BALEFUL_HARVEST", category);
         Main.Achievements.RegisterAchievementCategory("ICE_SCREAM", category);
         Main.Achievements.RegisterAchievementCategory("TIN_FOIL_HATTER", category);
         Main.Achievements.RegisterAchievementCategory("TIL_DEATH", category);
         Main.Achievements.RegisterAchievementCategory("THERE_ARE_SOME_WHO_CALL_HIM", category);
         Main.Achievements.RegisterAchievementCategory("ARCHAEOLOGIST", category);
         Main.Achievements.RegisterAchievementCategory("PRETTY_IN_PINK", category);
         Main.Achievements.RegisterAchievementCategory("DECEIVER_OF_FOOLS", category);
         Main.Achievements.RegisterAchievementCategory("VEHICULAR_MANSLAUGHTER", category);
         category = AchievementCategory.Explorer;
         Main.Achievements.RegisterAchievementCategory("SMASHING_POPPET", category);
         Main.Achievements.RegisterAchievementCategory("BEGONE_EVIL", category);
         Main.Achievements.RegisterAchievementCategory("ITS_HARD", category);
         Main.Achievements.RegisterAchievementCategory("FUNKYTOWN", category);
         Main.Achievements.RegisterAchievementCategory("WATCH_YOUR_STEP", category);
         Main.Achievements.RegisterAchievementCategory("YOU_CAN_DO_IT", category);
         Main.Achievements.RegisterAchievementCategory("BLOODBATH", category);
         Main.Achievements.RegisterAchievementCategory("KILL_THE_SUN", category);
         Main.Achievements.RegisterAchievementCategory("STICKY_SITUATION", category);
         Main.Achievements.RegisterAchievementCategory("NO_HOBO", category);
         Main.Achievements.RegisterAchievementCategory("IT_CAN_TALK", category);
         Main.Achievements.RegisterAchievementCategory("HEART_BREAKER", category);
         Main.Achievements.RegisterAchievementCategory("I_AM_LOOT", category);
         Main.Achievements.RegisterAchievementCategory("ROBBING_THE_GRAVE", category);
         Main.Achievements.RegisterAchievementCategory("GET_A_LIFE", category);
         Main.Achievements.RegisterAchievementCategory("JEEPERS_CREEPERS", category);
         Main.Achievements.RegisterAchievementCategory("WHERES_MY_HONEY", category);
         Main.Achievements.RegisterAchievementCategory("DUNGEON_HEIST", category);
         Main.Achievements.RegisterAchievementCategory("BIG_BOOTY", category);
         Main.Achievements.RegisterAchievementCategory("ITS_GETTING_HOT_IN_HERE", category);
         Main.Achievements.RegisterAchievementCategory("INTO_ORBIT", category);
         Main.Achievements.RegisterAchievementCategory("ROCK_BOTTOM", category);
         Main.Achievements.RegisterAchievementCategory("OOO_SHINY", category);
         Main.Achievements.RegisterAchievementCategory("EXTRA_SHINY", category);
         Main.Achievements.RegisterAchievementCategory("PHOTOSYNTHESIS", category);
         category = AchievementCategory.Challenger;
         Main.Achievements.RegisterAchievementCategory("GELATIN_WORLD_TOUR", category);
         Main.Achievements.RegisterAchievementCategory("SLAYER_OF_WORLDS", category);
         Main.Achievements.RegisterAchievementCategory("REAL_ESTATE_AGENT", category);
         Main.Achievements.RegisterAchievementCategory("YOU_AND_WHAT_ARMY", category);
         Main.Achievements.RegisterAchievementCategory("TOPPED_OFF", category);
         Main.Achievements.RegisterAchievementCategory("MECHA_MAYHEM", category);
         Main.Achievements.RegisterAchievementCategory("BULLDOZER", category);
         Main.Achievements.RegisterAchievementCategory("NOT_THE_BEES", category);
         Main.Achievements.RegisterAchievementCategory("RAINBOWS_AND_UNICORNS", category);
         Main.Achievements.RegisterAchievementCategory("THROWING_LINES", category);
         Main.Achievements.RegisterAchievementCategory("FREQUENT_FLYER", category);
         Main.Achievements.RegisterAchievementCategory("LUCKY_BREAK", category);
         Main.Achievements.RegisterAchievementCategory("MARATHON_MEDALIST", category);
         Main.Achievements.RegisterAchievementCategory("SERVANT_IN_TRAINING", category);
         Main.Achievements.RegisterAchievementCategory("GOOD_LITTLE_SLAVE", category);
         Main.Achievements.RegisterAchievementCategory("TROUT_MONKEY", category);
         Main.Achievements.RegisterAchievementCategory("FAST_AND_FISHIOUS", category);
         Main.Achievements.RegisterAchievementCategory("SUPREME_HELPER_MINION", category);
         category = AchievementCategory.Collector;
         Main.Achievements.RegisterAchievementCategory("OBTAIN_HAMMER", category);
         Main.Achievements.RegisterAchievementCategory("BENCHED", category);
         Main.Achievements.RegisterAchievementCategory("HEAVY_METAL", category);
         Main.Achievements.RegisterAchievementCategory("STAR_POWER", category);
         Main.Achievements.RegisterAchievementCategory("MINER_FOR_FIRE", category);
         Main.Achievements.RegisterAchievementCategory("HEAD_IN_THE_CLOUDS", category);
         Main.Achievements.RegisterAchievementCategory("DRAX_ATTAX", category);
         Main.Achievements.RegisterAchievementCategory("PRISMANCER", category);
         Main.Achievements.RegisterAchievementCategory("SWORD_OF_THE_HERO", category);
         Main.Achievements.RegisterAchievementCategory("HOLD_ON_TIGHT", category);
         Main.Achievements.RegisterAchievementCategory("THE_CAVALRY", category);
         Main.Achievements.RegisterAchievementCategory("DYE_HARD", category);
         Main.Achievements.RegisterAchievementCategory("MATCHING_ATTIRE", category);
         Main.Achievements.RegisterAchievementCategory("FASHION_STATEMENT", category);
         Main.Achievements.RegisterAchievementCategory("COMPLETELY_AWESOME", category);
         Main.Achievements.RegisterAchievementCategory("TIMBER", category);
         Main.Achievements.RegisterAchievementCategory("SICK_THROW", category);
         Main.Achievements.RegisterAchievementCategory("GLORIOUS_GOLDEN_POLE", category);
         Main.Achievements.RegisterAchievementCategory("TEMPLE_RAIDER", category);
         Main.Achievements.RegisterAchievementCategory("LIKE_A_BOSS", category);
         Main.Achievements.Load();
         Main.Achievements.OnAchievementCompleted += OnAchievementCompleted;
         AchievementsHelper.Initialize();
     }
 }
Example #3
0
        public static void Load()
        {
            if (Main.netMode == 2)
            {
                return;
            }
            Achievement achievement = new Achievement("TIMBER", "Timber!!", "Chop down your first tree.");

            short[] numArray = new short[] { 9, 619, 2504, 620, 2503, 2260, 621, 911, 1729 };
            achievement.AddCondition(ItemPickupCondition.Create(numArray));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("NO_HOBO", "No Hobo", "Build a house suitable enough for your first town NPC, such as the guide, to move into.");
            achievement.AddCondition(ProgressionEventCondition.Create(8));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("OBTAIN_HAMMER", "Stop! Hammer Time!", "Obtain your first hammer via crafting or otherwise.");
            short[] numArray1 = new short[] { 2775, 2746, 3505, 654, 3517, 7, 3493, 2780, 1513, 2516, 660, 3481, 657, 922, 3511, 2785, 3499, 3487, 196, 367, 104, 797, 2320, 787, 1234, 1262, 3465, 204, 217, 1507, 3524, 3522, 3525, 3523, 1305 };
            achievement.AddCondition(ItemPickupCondition.Create(numArray1));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("OOO_SHINY", "Ooo! Shiny!", "Mine your first nugget of ore with a pickaxe.");
            ushort[] numArray2 = new ushort[] { 7, 6, 9, 8, 166, 167, 168, 169, 22, 204, 58, 107, 108, 111, 221, 222, 223, 211 };
            achievement.AddCondition(TileDestroyedCondition.Create(numArray2));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("HEART_BREAKER", "Heart Breaker", "Discover and smash your first heart crystal underground.");
            ushort[] numArray3 = new ushort[] { 12 };
            achievement.AddCondition(TileDestroyedCondition.Create(numArray3));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("HEAVY_METAL", "Heavy Metal", "Obtain an anvil made from iron or lead.");
            short[] numArray4 = new short[] { 35, 716 };
            achievement.AddCondition(ItemPickupCondition.Create(numArray4));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("I_AM_LOOT", "I Am Loot!", "Discover a golden chest underground and take a peek at its contents.");
            achievement.AddCondition(CustomFlagCondition.Create("Peek"));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("STAR_POWER", "Star Power", "Craft a mana crystal out of fallen stars, and consume it.");
            achievement.AddCondition(CustomFlagCondition.Create("Use"));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("HOLD_ON_TIGHT", "Hold on Tight!", "Equip your first grappling hook.");
            achievement.AddCondition(CustomFlagCondition.Create("Equip"));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("EYE_ON_YOU", "Eye on You", "Defeat the Eye of Cthulhu, an ocular menace who only appears at night.");
            achievement.AddCondition(NPCKilledCondition.Create(4));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("SMASHING_POPPET", "Smashing, Poppet!", "Using explosives or your trusty hammer, smash a Shadow Orb or Crimson Heart in the evil parts of your world.");
            achievement.AddCondition(ProgressionEventCondition.Create(7));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("WORM_FODDER", "Worm Fodder", "Defeat the Eater of Worlds, a massive worm whom dwells in the corruption.");
            short[] numArray5 = new short[] { 13, 14, 15 };
            achievement.AddCondition(NPCKilledCondition.Create(numArray5));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("MASTERMIND", "Mastermind", "Defeat the Brain of Cthulhu, an enourmous demon brain which haunts the creeping crimson.");
            achievement.AddCondition(NPCKilledCondition.Create(266));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("WHERES_MY_HONEY", "Where's My Honey?", "Discover a large bee's hive deep in the jungle.");
            achievement.AddCondition(CustomFlagCondition.Create("Reach"));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("STING_OPERATION", "Sting Operation", "Defeat the Queen Bee, the matriarch of the jungle hives.");
            achievement.AddCondition(NPCKilledCondition.Create(222));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("BONED", "Boned", "Defeat Skeletron, the cursed guardian of the dungeon.");
            achievement.AddCondition(NPCKilledCondition.Create(35));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("DUNGEON_HEIST", "Dungeon Heist", "Steal a key from dungeon's undead denizens, and unlock one of their precious golden chests.");
            achievement.AddCondition(ItemPickupCondition.Create(327));
            achievement.AddCondition(ProgressionEventCondition.Create(19));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("ITS_GETTING_HOT_IN_HERE", "It's Getting Hot in Here", "Spelunk deep enough to reach the molten underworld.");
            achievement.AddCondition(CustomFlagCondition.Create("Reach"));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("MINER_FOR_FIRE", "Miner for Fire", "Craft a molten pickaxe using the hottest of materials.");
            achievement.AddCondition(ItemCraftCondition.Create(122));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("STILL_HUNGRY", "Still Hungry", "Defeat the Wall of Flesh, the master and core of the world who arises after a great, burning sacrifice.");
            short[] numArray6 = new short[] { 113, 114 };
            achievement.AddCondition(NPCKilledCondition.Create(numArray6));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("ITS_HARD", "It's Hard!", "Unleash the ancient spirits of light and darkness across your world, enabling much stronger foes and showering the world with dazzling treasures (and rainbows!).");
            achievement.AddCondition(ProgressionEventCondition.Create(9));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("BEGONE_EVIL", "Begone, Evil!", "Smash a demon or crimson altar with a powerful, holy hammer.");
            achievement.AddCondition(ProgressionEventCondition.Create(6));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("EXTRA_SHINY", "Extra Shiny!", "Mine a powerful ore that has been newly blessed upon your world.");
            ushort[] numArray7 = new ushort[] { 107, 108, 111, 221, 222, 223 };
            achievement.AddCondition(TileDestroyedCondition.Create(numArray7));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("HEAD_IN_THE_CLOUDS", "Head in the Clouds", "Equip a pair of wings.");
            achievement.AddCondition(CustomFlagCondition.Create("Equip"));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("LIKE_A_BOSS", "Like a Boss", "Obtain a boss-summoning item.");
            short[] numArray8 = new short[] { 1133, 1331, 1307, 267, 1293, 557, 544, 556, 560, 43, 70 };
            achievement.AddCondition(ItemPickupCondition.Create(numArray8));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("BUCKETS_OF_BOLTS", "Buckets of Bolts", "Defeat the three nocturnal mechanical menaces: the Twins, the Destroyer, and Skeletron Prime.");
            short[] numArray9 = new short[] { 125, 126 };
            achievement.AddCondition(NPCKilledCondition.Create(numArray9));
            short[] numArray10 = new short[] { 127, 134 };
            achievement.AddConditions(NPCKilledCondition.CreateMany(numArray10));
            achievement.UseConditionsCompletedTracker();
            Main.Achievements.Register(achievement);
            achievement = new Achievement("DRAX_ATTAX", "Drax Attax", "Craft a drax or pickaxe axe using hallowed bars, and the souls of the three mechanical bosses.");
            short[] numArray11 = new short[] { 579, 990 };
            achievement.AddCondition(ItemCraftCondition.Create(numArray11));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("PHOTOSYNTHESIS", "Photosynthesis", "Mine chlorophyte, an organic ore found deep among the thickest of flora.");
            ushort[] numArray12 = new ushort[] { 211 };
            achievement.AddCondition(TileDestroyedCondition.Create(numArray12));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("GET_A_LIFE", "Get a Life", "Consume a life fruit, which grows in the thick of subterranean jungle grass.");
            achievement.AddCondition(CustomFlagCondition.Create("Use"));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("THE_GREAT_SOUTHERN_PLANTKILL", "The Great Southern Plantkill", "Defeat Plantera, the overgrown monstrosity of the jungle's depths.");
            achievement.AddCondition(NPCKilledCondition.Create(262));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("TEMPLE_RAIDER", "Temple Raider", "Breach the impenetrable walls of the jungle temple.");
            ushort[] numArray13 = new ushort[] { 226 };
            achievement.AddCondition(TileDestroyedCondition.Create(numArray13));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("LIHZAHRDIAN_IDOL", "Lihzahrdian Idol", "Defeat Golem, the stone-faced ritualistic idol of the lihzahrd tribe.");
            achievement.AddCondition(NPCKilledCondition.Create(245));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("ROBBING_THE_GRAVE", "Robbing the Grave", "Obtain a rare treasure from a difficult monster in the dungeon.");
            short[] numArray14 = new short[] { 1513, 938, 963, 977, 1300, 1254, 1514, 679, 759, 1446, 1445, 1444, 1183, 1266, 671 };
            achievement.AddCondition(ItemPickupCondition.Create(numArray14));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("BIG_BOOTY", "Big Booty", "Unlock one of the dungeon's large, mysterious chests with a special key.");
            achievement.AddCondition(ProgressionEventCondition.Create(20));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("FISH_OUT_OF_WATER", "Fish Out of Water", "Defeat Duke Fishron, mutant terror of the sea.");
            achievement.AddCondition(NPCKilledCondition.Create(370));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("OBSESSIVE_DEVOTION", "Obsessive Devotion", "Defeat the Ancient Cultist, fanatical leader of the dungeon coven.");
            achievement.AddCondition(NPCKilledCondition.Create(439));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("STAR_DESTROYER", "Star Destroyer", "Defeat the four celestial towers of the moon.");
            short[] numArray15 = new short[] { 517, 422, 507, 493 };
            achievement.AddConditions(NPCKilledCondition.CreateMany(numArray15));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("CHAMPION_OF_TERRARIA", "Champion of Terraria", "Defeat the Moon Lord.");
            achievement.AddCondition(NPCKilledCondition.Create(398));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("BLOODBATH", "Bloodbath", "Survive a blood moon, a nocturnal event where the rivers run red and monsters swarm aplenty.");
            achievement.AddCondition(ProgressionEventCondition.Create(5));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("SLIPPERY_SHINOBI", "Slippery Shinobi", "Defeat King Slime, the lord of all things slimy.");
            achievement.AddCondition(NPCKilledCondition.Create(50));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("GOBLIN_PUNTER", "Goblin Punter", "Triumph over a goblin invasion, a ragtag regiment of crude, barbaric, pointy-eared warriors and their shadowflame sorcerers.");
            achievement.AddCondition(ProgressionEventCondition.Create(10));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("WALK_THE_PLANK", "Walk the Plank", "Triumph over a pirate invasion, a group of pillagers from the sea out for your booty... and your life!");
            achievement.AddCondition(ProgressionEventCondition.Create(11));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("KILL_THE_SUN", "Kill the Sun", "Survive a solar eclipse, a day darker than night filled with creatures of horror.");
            achievement.AddCondition(ProgressionEventCondition.Create(3));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("DO_YOU_WANT_TO_SLAY_A_SNOWMAN", "Do You Want to Slay a Snowman?", "Triumph over the frost legion, a festive family of maniacal snowman mobsters.");
            achievement.AddCondition(ProgressionEventCondition.Create(12));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("TIN_FOIL_HATTER", "Tin-Foil Hatter", "Triumph over a martian invasion, when beings from out of this world come to scramble your brains and probe you in uncomfortable places.");
            achievement.AddCondition(ProgressionEventCondition.Create(13));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("BALEFUL_HARVEST", "Baleful Harvest", "Reach the 15th wave of a pumpkin moon, where evil lurks among the autumn harvest.");
            achievement.AddCondition(ProgressionEventCondition.Create(15));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("ICE_SCREAM", "Ice Scream", "Reach the 15th wave of a frost moon, where the festive season quickly degrades into madness.");
            achievement.AddCondition(ProgressionEventCondition.Create(14));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("STICKY_SITUATION", "Sticky Situation", "Survive the slime rain, where gelatinous organisms fall from the sky in droves.");
            achievement.AddCondition(ProgressionEventCondition.Create(16));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("REAL_ESTATE_AGENT", "Real Estate Agent", "Have all possible town NPCs living in your world.");
            achievement.AddCondition(ProgressionEventCondition.Create(17));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("NOT_THE_BEES", "Not the Bees!", "Fire a Bee Gun while wearing a full set of Bee Armor.");
            achievement.AddCondition(CustomFlagCondition.Create("Use"));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("JEEPERS_CREEPERS", "Jeepers Creepers", "Stumble into a spider cavern in the underground.");
            achievement.AddCondition(CustomFlagCondition.Create("Reach"));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("FUNKYTOWN", "Funkytown", "Build or encounter a glowing mushroom field above the surface.");
            achievement.AddCondition(CustomFlagCondition.Create("Reach"));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("INTO_ORBIT", "Into Orbit", "You can only go down from here!");
            achievement.AddCondition(CustomFlagCondition.Create("Reach"));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("ROCK_BOTTOM", "Rock Bottom", "The only way is up!");
            achievement.AddCondition(CustomFlagCondition.Create("Reach"));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("MECHA_MAYHEM", "Mecha Mayhem", "Do battle against the Twins, the Destroyer, and Skeletron Prime simultaneously and emerge victorious.");
            achievement.AddCondition(ProgressionEventCondition.Create(21));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("GELATIN_WORLD_TOUR", "Gelatin World Tour", "Defeat every type of slime there is!");
            short[] numArray16 = new short[] { -5, -6, 1, 81, 71, -3, 147, 138, -10, 50, 59, 16, -7, 244, -8, -1, -2, 184, 204, 225, -9, 141, 183, -4 };
            achievement.AddConditions(NPCKilledCondition.CreateMany(numArray16));
            achievement.UseConditionsCompletedTracker();
            Main.Achievements.Register(achievement);
            achievement = new Achievement("FASHION_STATEMENT", "Fashion Statement", "Equip armor or vanity clothing in all three social slots.");
            achievement.AddCondition(CustomFlagCondition.Create("Equip"));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("VEHICULAR_MANSLAUGHTER", "Vehicular Manslaughter", "Defeat an enemy by running it over with a minecart.");
            achievement.AddCondition(CustomFlagCondition.Create("Hit"));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("BULLDOZER", "Bulldozer", "Destroy a total of 10,000 tiles.");
            achievement.AddCondition(CustomIntCondition.Create("Pick", 10000));
            achievement.UseTrackerFromCondition("Pick");
            Main.Achievements.Register(achievement);
            achievement = new Achievement("THERE_ARE_SOME_WHO_CALL_HIM", "There are Some Who Call Him...", "Kill Tim.");
            achievement.AddCondition(NPCKilledCondition.Create(45));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("DECEIVER_OF_FOOLS", "Deceiver of Fools", "Kill a nymph.");
            achievement.AddCondition(NPCKilledCondition.Create(196));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("SWORD_OF_THE_HERO", "Sword of the Hero", "Obtain a Terra Blade, forged from the finest blades of light and darkness.");
            achievement.AddCondition(ItemPickupCondition.Create(757));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("LUCKY_BREAK", "Lucky Break", "Survive a long fall with just a sliver of health remaining.");
            achievement.AddCondition(CustomFlagCondition.Create("Hit"));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("THROWING_LINES", "Throwing Lines", "Throw a yoyo.");
            achievement.AddCondition(CustomFlagCondition.Create("Use"));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("DYE_HARD", "Dye Hard", "Equip a dye in every possible dye slot.");
            achievement.AddCondition(CustomFlagCondition.Create("Equip"));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("SICK_THROW", "Sick Throw", "Obtain the Terrarian.");
            achievement.AddCondition(ItemPickupCondition.Create(3389));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("FREQUENT_FLYER", "The Frequent Flyer", "Spend over 1 gold being treated by the nurse.");
            achievement.AddCondition(CustomFloatCondition.Create("Pay", 10000f));
            achievement.UseTrackerFromCondition("Pay");
            Main.Achievements.Register(achievement);
            achievement = new Achievement("THE_CAVALRY", "The Cavalry", "Equip a mount.");
            achievement.AddCondition(CustomFlagCondition.Create("Equip"));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("COMPLETELY_AWESOME", "Completely Awesome", "Obtain a minishark.");
            achievement.AddCondition(ItemPickupCondition.Create(98));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("TIL_DEATH", "Til Death...", "Kill the groom.");
            achievement.AddCondition(NPCKilledCondition.Create(53));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("ARCHAEOLOGIST", "Archaeologist", "Kill Doctor Bones.");
            achievement.AddCondition(NPCKilledCondition.Create(52));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("PRETTY_IN_PINK", "Pretty in Pink", "Kill pinky.");
            achievement.AddCondition(NPCKilledCondition.Create(-4));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("RAINBOWS_AND_UNICORNS", "Rainbows and Unicorns", "Fire a rainbow gun while riding on a unicorn.");
            achievement.AddCondition(CustomFlagCondition.Create("Use"));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("YOU_AND_WHAT_ARMY", "You and What Army?", "Command nine summoned minions simultaneously.");
            achievement.AddCondition(CustomFlagCondition.Create("Spawn"));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("PRISMANCER", "Prismancer", "Obtain a rainbow rod.");
            achievement.AddCondition(ItemPickupCondition.Create(495));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("IT_CAN_TALK", "It Can Talk?!", "Build a house in a mushroom biome and have Truffle move in.");
            achievement.AddCondition(ProgressionEventCondition.Create(18));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("WATCH_YOUR_STEP", "Watch Your Step!", "Become a victim to a nasty underground trap.");
            achievement.AddCondition(CustomFlagCondition.Create("Hit"));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("MARATHON_MEDALIST", "Marathon Medalist", "Travel a total of 26.2 miles on foot.");
            achievement.AddCondition(CustomFloatCondition.Create("Move", 1106688f));
            achievement.UseTrackerFromCondition("Move");
            Main.Achievements.Register(achievement);
            achievement = new Achievement("GLORIOUS_GOLDEN_POLE", "Glorious Golden Pole", "Obtain a golden fishing rod.");
            achievement.AddCondition(ItemPickupCondition.Create(2294));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("SERVANT_IN_TRAINING", "Servant-in-Training", "Complete your 1st quest for the angler.");
            achievement.AddCondition(CustomFlagCondition.Create("Finish"));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("GOOD_LITTLE_SLAVE", "Good Little Slave", "Complete your 10th quest for the angler.");
            achievement.AddCondition(CustomFloatCondition.Create("Finish", 10f));
            achievement.UseTrackerFromCondition("Finish");
            Main.Achievements.Register(achievement);
            achievement = new Achievement("TROUT_MONKEY", "Trout Monkey", "Complete your 25th quest for the angler.");
            achievement.AddCondition(CustomFloatCondition.Create("Finish", 25f));
            achievement.UseTrackerFromCondition("Finish");
            Main.Achievements.Register(achievement);
            achievement = new Achievement("FAST_AND_FISHIOUS", "Fast and Fishious", "Complete your 50th quest for the angler.");
            achievement.AddCondition(CustomFloatCondition.Create("Finish", 50f));
            achievement.UseTrackerFromCondition("Finish");
            Main.Achievements.Register(achievement);
            achievement = new Achievement("SUPREME_HELPER_MINION", "Supreme Helper Minion!", "Complete a grand total of 200 quests for the angler.");
            achievement.AddCondition(CustomFloatCondition.Create("Finish", 200f));
            achievement.UseTrackerFromCondition("Finish");
            Main.Achievements.Register(achievement);
            achievement = new Achievement("TOPPED_OFF", "Topped Off", "Attain maximum health and mana possible without accessories or buffs.");
            achievement.AddCondition(CustomFlagCondition.Create("Use"));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("SLAYER_OF_WORLDS", "Slayer of Worlds", "Defeat every boss in Terraria.");
            short[] numArray17 = new short[] { 13, 14, 15 };
            achievement.AddCondition(NPCKilledCondition.Create(numArray17));
            short[] numArray18 = new short[] { 113, 114 };
            achievement.AddCondition(NPCKilledCondition.Create(numArray18));
            short[] numArray19 = new short[] { 125, 126 };
            achievement.AddCondition(NPCKilledCondition.Create(numArray19));
            short[] numArray20 = new short[] { 4, 35, 50, 222, 113, 134, 127, 262, 245, 439, 398, 370 };
            achievement.AddConditions(NPCKilledCondition.CreateMany(numArray20));
            achievement.UseConditionsCompletedTracker();
            Main.Achievements.Register(achievement);
            achievement = new Achievement("YOU_CAN_DO_IT", "You Can Do It!", "Survive your character's first full night.");
            achievement.AddCondition(ProgressionEventCondition.Create(1));
            Main.Achievements.Register(achievement);
            achievement = new Achievement("MATCHING_ATTIRE", "Matching Attire", "Equip armor in all three armor slots: head, chest, and feet.");
            achievement.AddCondition(CustomFlagCondition.Create("Equip"));
            Main.Achievements.Register(achievement);
            int num  = 0;
            int num1 = num + 1;

            Main.Achievements.RegisterIconIndex("TIMBER", num);
            int num2 = num1;

            num1 = num2 + 1;
            Main.Achievements.RegisterIconIndex("NO_HOBO", num2);
            int num3 = num1;

            num1 = num3 + 1;
            Main.Achievements.RegisterIconIndex("OBTAIN_HAMMER", num3);
            int num4 = num1;

            num1 = num4 + 1;
            Main.Achievements.RegisterIconIndex("HEART_BREAKER", num4);
            int num5 = num1;

            num1 = num5 + 1;
            Main.Achievements.RegisterIconIndex("OOO_SHINY", num5);
            int num6 = num1;

            num1 = num6 + 1;
            Main.Achievements.RegisterIconIndex("HEAVY_METAL", num6);
            int num7 = num1;

            num1 = num7 + 1;
            Main.Achievements.RegisterIconIndex("I_AM_LOOT", num7);
            int num8 = num1;

            num1 = num8 + 1;
            Main.Achievements.RegisterIconIndex("STAR_POWER", num8);
            int num9 = num1;

            num1 = num9 + 1;
            Main.Achievements.RegisterIconIndex("HOLD_ON_TIGHT", num9);
            int num10 = num1;

            num1 = num10 + 1;
            Main.Achievements.RegisterIconIndex("EYE_ON_YOU", num10);
            int num11 = num1;

            num1 = num11 + 1;
            Main.Achievements.RegisterIconIndex("SMASHING_POPPET", num11);
            int num12 = num1;

            num1 = num12 + 1;
            Main.Achievements.RegisterIconIndex("WORM_FODDER", num12);
            int num13 = num1;

            num1 = num13 + 1;
            Main.Achievements.RegisterIconIndex("MASTERMIND", num13);
            int num14 = num1;

            num1 = num14 + 1;
            Main.Achievements.RegisterIconIndex("WHERES_MY_HONEY", num14);
            int num15 = num1;

            num1 = num15 + 1;
            Main.Achievements.RegisterIconIndex("STING_OPERATION", num15);
            int num16 = num1;

            num1 = num16 + 1;
            Main.Achievements.RegisterIconIndex("BONED", num16);
            int num17 = num1;

            num1 = num17 + 1;
            Main.Achievements.RegisterIconIndex("DUNGEON_HEIST", num17);
            int num18 = num1;

            num1 = num18 + 1;
            Main.Achievements.RegisterIconIndex("ITS_GETTING_HOT_IN_HERE", num18);
            int num19 = num1;

            num1 = num19 + 1;
            Main.Achievements.RegisterIconIndex("MINER_FOR_FIRE", num19);
            int num20 = num1;

            num1 = num20 + 1;
            Main.Achievements.RegisterIconIndex("STILL_HUNGRY", num20);
            int num21 = num1;

            num1 = num21 + 1;
            Main.Achievements.RegisterIconIndex("ITS_HARD", num21);
            int num22 = num1;

            num1 = num22 + 1;
            Main.Achievements.RegisterIconIndex("BEGONE_EVIL", num22);
            int num23 = num1;

            num1 = num23 + 1;
            Main.Achievements.RegisterIconIndex("EXTRA_SHINY", num23);
            int num24 = num1;

            num1 = num24 + 1;
            Main.Achievements.RegisterIconIndex("HEAD_IN_THE_CLOUDS", num24);
            int num25 = num1;

            num1 = num25 + 1;
            Main.Achievements.RegisterIconIndex("LIKE_A_BOSS", num25);
            int num26 = num1;

            num1 = num26 + 1;
            Main.Achievements.RegisterIconIndex("BUCKETS_OF_BOLTS", num26);
            int num27 = num1;

            num1 = num27 + 1;
            Main.Achievements.RegisterIconIndex("DRAX_ATTAX", num27);
            int num28 = num1;

            num1 = num28 + 1;
            Main.Achievements.RegisterIconIndex("PHOTOSYNTHESIS", num28);
            int num29 = num1;

            num1 = num29 + 1;
            Main.Achievements.RegisterIconIndex("GET_A_LIFE", num29);
            int num30 = num1;

            num1 = num30 + 1;
            Main.Achievements.RegisterIconIndex("THE_GREAT_SOUTHERN_PLANTKILL", num30);
            int num31 = num1;

            num1 = num31 + 1;
            Main.Achievements.RegisterIconIndex("TEMPLE_RAIDER", num31);
            int num32 = num1;

            num1 = num32 + 1;
            Main.Achievements.RegisterIconIndex("LIHZAHRDIAN_IDOL", num32);
            int num33 = num1;

            num1 = num33 + 1;
            Main.Achievements.RegisterIconIndex("ROBBING_THE_GRAVE", num33);
            int num34 = num1;

            num1 = num34 + 1;
            Main.Achievements.RegisterIconIndex("BIG_BOOTY", num34);
            int num35 = num1;

            num1 = num35 + 1;
            Main.Achievements.RegisterIconIndex("FISH_OUT_OF_WATER", num35);
            int num36 = num1;

            num1 = num36 + 1;
            Main.Achievements.RegisterIconIndex("OBSESSIVE_DEVOTION", num36);
            int num37 = num1;

            num1 = num37 + 1;
            Main.Achievements.RegisterIconIndex("STAR_DESTROYER", num37);
            int num38 = num1;

            num1 = num38 + 1;
            Main.Achievements.RegisterIconIndex("CHAMPION_OF_TERRARIA", num38);
            int num39 = num1;

            num1 = num39 + 1;
            Main.Achievements.RegisterIconIndex("BLOODBATH", num39);
            int num40 = num1;

            num1 = num40 + 1;
            Main.Achievements.RegisterIconIndex("GOBLIN_PUNTER", num40);
            int num41 = num1;

            num1 = num41 + 1;
            Main.Achievements.RegisterIconIndex("KILL_THE_SUN", num41);
            int num42 = num1;

            num1 = num42 + 1;
            Main.Achievements.RegisterIconIndex("WALK_THE_PLANK", num42);
            int num43 = num1;

            num1 = num43 + 1;
            Main.Achievements.RegisterIconIndex("DO_YOU_WANT_TO_SLAY_A_SNOWMAN", num43);
            int num44 = num1;

            num1 = num44 + 1;
            Main.Achievements.RegisterIconIndex("TIN_FOIL_HATTER", num44);
            int num45 = num1;

            num1 = num45 + 1;
            Main.Achievements.RegisterIconIndex("BALEFUL_HARVEST", num45);
            int num46 = num1;

            num1 = num46 + 1;
            Main.Achievements.RegisterIconIndex("ICE_SCREAM", num46);
            int num47 = num1;

            num1 = num47 + 1;
            Main.Achievements.RegisterIconIndex("SLIPPERY_SHINOBI", num47);
            int num48 = num1;

            num1 = num48 + 1;
            Main.Achievements.RegisterIconIndex("STICKY_SITUATION", num48);
            int num49 = num1;

            num1 = num49 + 1;
            Main.Achievements.RegisterIconIndex("REAL_ESTATE_AGENT", num49);
            int num50 = num1;

            num1 = num50 + 1;
            Main.Achievements.RegisterIconIndex("NOT_THE_BEES", num50);
            int num51 = num1;

            num1 = num51 + 1;
            Main.Achievements.RegisterIconIndex("JEEPERS_CREEPERS", num51);
            int num52 = num1;

            num1 = num52 + 1;
            Main.Achievements.RegisterIconIndex("FUNKYTOWN", num52);
            int num53 = num1;

            num1 = num53 + 1;
            Main.Achievements.RegisterIconIndex("INTO_ORBIT", num53);
            int num54 = num1;

            num1 = num54 + 1;
            Main.Achievements.RegisterIconIndex("ROCK_BOTTOM", num54);
            int num55 = num1;

            num1 = num55 + 1;
            Main.Achievements.RegisterIconIndex("MECHA_MAYHEM", num55);
            int num56 = num1;

            num1 = num56 + 1;
            Main.Achievements.RegisterIconIndex("GELATIN_WORLD_TOUR", num56);
            int num57 = num1;

            num1 = num57 + 1;
            Main.Achievements.RegisterIconIndex("FASHION_STATEMENT", num57);
            int num58 = num1;

            num1 = num58 + 1;
            Main.Achievements.RegisterIconIndex("VEHICULAR_MANSLAUGHTER", num58);
            int num59 = num1;

            num1 = num59 + 1;
            Main.Achievements.RegisterIconIndex("BULLDOZER", num59);
            int num60 = num1;

            num1 = num60 + 1;
            Main.Achievements.RegisterIconIndex("THERE_ARE_SOME_WHO_CALL_HIM", num60);
            int num61 = num1;

            num1 = num61 + 1;
            Main.Achievements.RegisterIconIndex("DECEIVER_OF_FOOLS", num61);
            int num62 = num1;

            num1 = num62 + 1;
            Main.Achievements.RegisterIconIndex("SWORD_OF_THE_HERO", num62);
            int num63 = num1;

            num1 = num63 + 1;
            Main.Achievements.RegisterIconIndex("LUCKY_BREAK", num63);
            int num64 = num1;

            num1 = num64 + 1;
            Main.Achievements.RegisterIconIndex("THROWING_LINES", num64);
            int num65 = num1;

            num1 = num65 + 1;
            Main.Achievements.RegisterIconIndex("DYE_HARD", num65);
            int num66 = num1;

            num1 = num66 + 1;
            Main.Achievements.RegisterIconIndex("FREQUENT_FLYER", num66);
            int num67 = num1;

            num1 = num67 + 1;
            Main.Achievements.RegisterIconIndex("THE_CAVALRY", num67);
            int num68 = num1;

            num1 = num68 + 1;
            Main.Achievements.RegisterIconIndex("COMPLETELY_AWESOME", num68);
            int num69 = num1;

            num1 = num69 + 1;
            Main.Achievements.RegisterIconIndex("TIL_DEATH", num69);
            int num70 = num1;

            num1 = num70 + 1;
            Main.Achievements.RegisterIconIndex("ARCHAEOLOGIST", num70);
            int num71 = num1;

            num1 = num71 + 1;
            Main.Achievements.RegisterIconIndex("PRETTY_IN_PINK", num71);
            int num72 = num1;

            num1 = num72 + 1;
            Main.Achievements.RegisterIconIndex("RAINBOWS_AND_UNICORNS", num72);
            int num73 = num1;

            num1 = num73 + 1;
            Main.Achievements.RegisterIconIndex("YOU_AND_WHAT_ARMY", num73);
            int num74 = num1;

            num1 = num74 + 1;
            Main.Achievements.RegisterIconIndex("PRISMANCER", num74);
            int num75 = num1;

            num1 = num75 + 1;
            Main.Achievements.RegisterIconIndex("IT_CAN_TALK", num75);
            int num76 = num1;

            num1 = num76 + 1;
            Main.Achievements.RegisterIconIndex("WATCH_YOUR_STEP", num76);
            int num77 = num1;

            num1 = num77 + 1;
            Main.Achievements.RegisterIconIndex("MARATHON_MEDALIST", num77);
            int num78 = num1;

            num1 = num78 + 1;
            Main.Achievements.RegisterIconIndex("GLORIOUS_GOLDEN_POLE", num78);
            int num79 = num1;

            num1 = num79 + 1;
            Main.Achievements.RegisterIconIndex("SERVANT_IN_TRAINING", num79);
            int num80 = num1;

            num1 = num80 + 1;
            Main.Achievements.RegisterIconIndex("GOOD_LITTLE_SLAVE", num80);
            int num81 = num1;

            num1 = num81 + 1;
            Main.Achievements.RegisterIconIndex("TROUT_MONKEY", num81);
            int num82 = num1;

            num1 = num82 + 1;
            Main.Achievements.RegisterIconIndex("FAST_AND_FISHIOUS", num82);
            int num83 = num1;

            num1 = num83 + 1;
            Main.Achievements.RegisterIconIndex("SUPREME_HELPER_MINION", num83);
            int num84 = num1;

            num1 = num84 + 1;
            Main.Achievements.RegisterIconIndex("TOPPED_OFF", num84);
            int num85 = num1;

            num1 = num85 + 1;
            Main.Achievements.RegisterIconIndex("SLAYER_OF_WORLDS", num85);
            int num86 = num1;

            num1 = num86 + 1;
            Main.Achievements.RegisterIconIndex("YOU_CAN_DO_IT", num86);
            int num87 = num1;

            num1 = num87 + 1;
            Main.Achievements.RegisterIconIndex("SICK_THROW", num87);
            int num88 = num1;

            num1 = num88 + 1;
            Main.Achievements.RegisterIconIndex("MATCHING_ATTIRE", num88);
            AchievementCategory achievementCategory = AchievementCategory.Slayer;

            Main.Achievements.RegisterAchievementCategory("EYE_ON_YOU", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("SLIPPERY_SHINOBI", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("WORM_FODDER", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("MASTERMIND", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("STING_OPERATION", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("BONED", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("STILL_HUNGRY", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("BUCKETS_OF_BOLTS", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("THE_GREAT_SOUTHERN_PLANTKILL", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("LIHZAHRDIAN_IDOL", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("FISH_OUT_OF_WATER", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("OBSESSIVE_DEVOTION", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("STAR_DESTROYER", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("CHAMPION_OF_TERRARIA", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("GOBLIN_PUNTER", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("DO_YOU_WANT_TO_SLAY_A_SNOWMAN", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("WALK_THE_PLANK", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("BALEFUL_HARVEST", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("ICE_SCREAM", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("TIN_FOIL_HATTER", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("TIL_DEATH", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("THERE_ARE_SOME_WHO_CALL_HIM", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("ARCHAEOLOGIST", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("PRETTY_IN_PINK", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("DECEIVER_OF_FOOLS", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("VEHICULAR_MANSLAUGHTER", achievementCategory);
            achievementCategory = AchievementCategory.Explorer;
            Main.Achievements.RegisterAchievementCategory("SMASHING_POPPET", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("BEGONE_EVIL", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("ITS_HARD", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("FUNKYTOWN", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("WATCH_YOUR_STEP", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("YOU_CAN_DO_IT", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("BLOODBATH", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("KILL_THE_SUN", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("STICKY_SITUATION", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("NO_HOBO", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("IT_CAN_TALK", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("HEART_BREAKER", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("I_AM_LOOT", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("ROBBING_THE_GRAVE", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("GET_A_LIFE", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("JEEPERS_CREEPERS", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("WHERES_MY_HONEY", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("DUNGEON_HEIST", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("BIG_BOOTY", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("ITS_GETTING_HOT_IN_HERE", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("INTO_ORBIT", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("ROCK_BOTTOM", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("OOO_SHINY", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("EXTRA_SHINY", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("PHOTOSYNTHESIS", achievementCategory);
            achievementCategory = AchievementCategory.Challenger;
            Main.Achievements.RegisterAchievementCategory("GELATIN_WORLD_TOUR", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("SLAYER_OF_WORLDS", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("REAL_ESTATE_AGENT", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("YOU_AND_WHAT_ARMY", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("TOPPED_OFF", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("MECHA_MAYHEM", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("BULLDOZER", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("NOT_THE_BEES", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("RAINBOWS_AND_UNICORNS", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("THROWING_LINES", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("FREQUENT_FLYER", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("LUCKY_BREAK", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("MARATHON_MEDALIST", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("SERVANT_IN_TRAINING", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("GOOD_LITTLE_SLAVE", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("TROUT_MONKEY", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("FAST_AND_FISHIOUS", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("SUPREME_HELPER_MINION", achievementCategory);
            achievementCategory = AchievementCategory.Collector;
            Main.Achievements.RegisterAchievementCategory("OBTAIN_HAMMER", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("HEAVY_METAL", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("STAR_POWER", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("MINER_FOR_FIRE", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("HEAD_IN_THE_CLOUDS", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("DRAX_ATTAX", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("PRISMANCER", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("SWORD_OF_THE_HERO", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("HOLD_ON_TIGHT", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("THE_CAVALRY", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("DYE_HARD", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("MATCHING_ATTIRE", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("FASHION_STATEMENT", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("COMPLETELY_AWESOME", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("TIMBER", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("SICK_THROW", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("GLORIOUS_GOLDEN_POLE", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("TEMPLE_RAIDER", achievementCategory);
            Main.Achievements.RegisterAchievementCategory("LIKE_A_BOSS", achievementCategory);
            Main.Achievements.Load();
            Main.Achievements.OnAchievementCompleted += new Achievement.AchievementCompleted(AchievementInitializer.OnAchievementCompleted);
            AchievementsHelper.Initialize();
        }