Example #1
0
 public override void Unload()
 {
     Instance              = null;
     clientConfigInstance  = null;
     serverConfigInstance  = null;
     PlantInfo             = null;
     PlantInfo             = null;
     extraTexture          = null;
     ItemCastCache         = null;
     NPCAITimerCache       = null;
     NPCNoEnviroDropsCache = null;
     TileEmberGladesCache  = null;
     screenShaderFade      = null;
     screenShaderColor     = null;
     //tileWandUI = null;
     // necroniusCarverUI = null;
     mapBGTexture = null;
     //sTreeTexture = null;
     //sTreeUIs = null;
     devStarTexture                  = null;
     TextureContainer.chain          = null;
     TextureContainer.invisible      = null;
     TextureContainer.mapBG          = null;
     TextureContainer.pixle          = null;
     TextureContainer.popupTexture   = null;
     TextureContainer.skillTreeStar  = null;
     TextureContainer.skillTreeUI    = null;
     TextureContainer.trailTextures  = null;
     TextureContainer.algaeConnecter = null;
     TextureContainer.segment        = null;
     AZTreeLoader.trees              = null;
     AZTreeLoader.saplings           = null;
     AzercadmiumUtils.Unload();
 }
Example #2
0
        public override void PostSetupContent()
        {
            Mod bossChecklist = ModLoader.GetMod("BossChecklist");

            if (bossChecklist != null)
            {
                bossChecklist.Call(
                    "AddBoss",
                    2.33f,
                    new List <int> {
                    ModContent.NPCType <NPCs.Dirtball.Dirtball>()
                },
                    this,
                    "$Mods.Azercadmium.NPCName.Dirtball",
                    (Func <bool>)(() => AzercadmiumWorld.downedDirtball),
                    ModContent.ItemType <Items.Dirtball.CreepyMud>(),
                    new List <int> {
                    ModContent.ItemType <Items.Dirtball.MuddyGreatsword>()
                },                                                                                               //collectables
                    new List <int> {
                    ModContent.ItemType <Items.Dirtball.MuddyGreatsword>()
                },                                                                                              //other
                    $"Dirtball has an extremely low chance of spawning if not defeated and any player's max health is 300 or more. It can also be manually summoned with a [i:{ModContent.ItemType<Items.Dirtball.CreepyMud>()}], which can be crafted or rarely dropped from enemies."
                    );
                bossChecklist.Call(
                    "AddBoss",
                    6.75f,
                    new List <int> {
                    ModContent.NPCType <NPCs.Titan.TitanTankorb>()
                },
                    this,
                    "$Mods.Azercadmium.NPCName.TitanTankorb",
                    (Func <bool>)(() => AzercadmiumWorld.downedTitan),
                    ModContent.ItemType <Items.Titan.TitansCapsule>(),
                    new List <int> {
                    ModContent.ItemType <Items.Titan.TitanicEnergy>()
                },                                                                                          //collectables
                    new List <int> {
                    ModContent.ItemType <Items.Titan.TitanicEnergy>()
                },                                                                                          //other
                    $"Use a [i:{ModContent.ItemType<Items.Titan.TitansCapsule>()}]."
                    );
                bossChecklist.Call(
                    "AddBoss",
                    9.25f,
                    new List <int> {
                    ModContent.NPCType <NPCs.Scavenger.MatrixScavenger>()
                },
                    this,
                    "$Mods.Azercadmium.NPCName.MatrixScavenger",
                    (Func <bool>)(() => AzercadmiumWorld.downedScavenger),
                    ModContent.ItemType <Items.Scavenger.FloppyDisc>(),
                    new List <int> {
                    ModContent.ItemType <Items.Scavenger.SoulofByte>()
                },                                                                                           //collectables
                    new List <int> {
                    ModContent.ItemType <Items.Scavenger.SoulofByte>()
                },                                                                                           //other
                    $"Use a [i:{ModContent.ItemType<Items.Scavenger.FloppyDisc>()}]."
                    );
            }
            JavelinCache = new bool[ProjectileLoader.ProjectileCount];
            JavelinCache[ProjectileID.JavelinFriendly] = true;
            JavelinCache[ProjectileID.BoneJavelin]     = true;
            JavelinCache[ProjectileID.Daybreak]        = true;
            JavelinCache[ProjectileID.TinyEater]       = true;
            JavelinCache[ProjectileID.FrostDaggerfish] = true;
            JavelinCache[ModContent.ProjectileType <Projectiles.Wood.WoodenSplinter>()]          = true;
            JavelinCache[ModContent.ProjectileType <Projectiles.Corruption.DemoniteJavelin>()]   = true;
            JavelinCache[ModContent.ProjectileType <Projectiles.Crimson.CrimtaneJavelin>()]      = true;
            JavelinCache[ModContent.ProjectileType <Projectiles.Jungle.Snarevine>()]             = true;
            JavelinCache[ModContent.ProjectileType <Projectiles.Underworld.InfernalJavelin>()]   = true;
            JavelinCache[ModContent.ProjectileType <Projectiles.Underworld.HungeringJavelin>()]  = true;
            JavelinCache[ModContent.ProjectileType <Projectiles.Underworld.HungeringJavelin2>()] = true;
            JavelinCache[ModContent.ProjectileType <Projectiles.Mech.France>()] = true;
            JavelinCache[ModContent.ProjectileType <Projectiles.Ember.CinderCedarJavelin>()] = true;
            TileEmberGladesCache = new bool[TileLoader.TileCount];
            TileEmberGladesCache[ModContent.TileType <EmberGrass>()]     = true;
            TileEmberGladesCache[ModContent.TileType <EmberThornTile>()] = true;
            ItemCastCache   = new bool[ItemLoader.ItemCount];
            NPCAITimerCache = new int[NPCLoader.NPCCount];
            for (int i = 0; i < NPCLoader.NPCCount; i++)
            {
                NPCAITimerCache[i] = 4;
            }
            NPCAITimerCache[NPCID.EyeofCthulhu] = 5;
            NPCNoEnviroDropsCache = new bool[NPCLoader.NPCCount];
            NPCNoEnviroDropsCache[NPCID.ServantofCthulhu]      = true;
            NPCNoEnviroDropsCache[NPCID.EaterofWorldsHead]     = true;
            NPCNoEnviroDropsCache[NPCID.EaterofWorldsBody]     = true;
            NPCNoEnviroDropsCache[NPCID.EaterofWorldsTail]     = true;
            NPCNoEnviroDropsCache[NPCID.MeteorHead]            = true;
            NPCNoEnviroDropsCache[NPCID.BurningSphere]         = true;
            NPCNoEnviroDropsCache[NPCID.WaterSphere]           = true;
            NPCNoEnviroDropsCache[NPCID.ChaosBall]             = true;
            NPCNoEnviroDropsCache[NPCID.VileSpit]              = true;
            NPCNoEnviroDropsCache[NPCID.Slimer]                = true;
            NPCNoEnviroDropsCache[NPCID.ShadowFlameApparition] = true;
            NPCNoEnviroDropsCache[NPCID.WyvernHead]            = true;
            NPCNoEnviroDropsCache[NPCID.WyvernBody]            = true;
            NPCNoEnviroDropsCache[NPCID.WyvernBody2]           = true;
            NPCNoEnviroDropsCache[NPCID.WyvernBody3]           = true;
            NPCNoEnviroDropsCache[NPCID.WyvernLegs]            = true;
            NPCNoEnviroDropsCache[NPCID.WyvernTail]            = true;
            NPCNoEnviroDropsCache[NPCID.SlimeSpiked]           = true;
            NPCNoEnviroDropsCache[NPCID.BlueSlime]             = true;
            NPCXPCache = new int[NPCLoader.NPCCount];
            AzercadmiumUtils.Initialize();
        }