예제 #1
0
 public override void Unload()
 {
     currentDate    = null;
     Bumble         = false;
     Wulfrumset     = false;
     day            = -1;
     month          = -1;
     compactFraming = null;
     ChristmasTextureChange.Unload();
     DraedonHelmetTextureCache.Unload(this);
     DraedonChestplateCache.Unload(this);
 }
예제 #2
0
        public override void Load()
        {
            DateTime dateTime = DateTime.Now;

            currentDate = dateTime.ToString("dd/MM/yyyy");
            day         = dateTime.Day;
            month       = dateTime.Month;
            if (!Main.dedServ)
            {
                AddEquipTexture(null, EquipType.Head, "SandElemental_Head", "CalValEX/Items/Equips/Transformations/SandElemental_Head");
                AddEquipTexture(null, EquipType.Head, "SandElemental_Body", "CalValEX/Items/Equips/Transformations/SandElemental_Body", "CalValEX/Items/Equips/Transformations/SandElemental_Arms");
                AddEquipTexture(null, EquipType.Head, "SandElemental_Legs", "CalValEX/Items/Equips/Transformations/SandElemental_Legs");
                GameShaders.Armor.BindShader(ModContent.ItemType <DraedonHologramDye>(), new ArmorShaderData(new Ref <Effect>(GetEffect("Effects/DraedonHologramDye")), "DraedonHologramDyePass"));
            }
            DraedonHelmetTextureCache.Load(this);
            DraedonChestplateCache.Load(this);
        }
예제 #3
0
        public override void Load()
        {
            DateTime dateTime = DateTime.Now;

            currentDate = dateTime.ToString("dd/MM/yyyy");
            day         = dateTime.Day;
            month       = dateTime.Month;

            if (Main.dedServ)
            {
                return;
            }
            //Signus transformation
            AddEquipTexture(new SignusHead(), null, EquipType.Head, "SignusHead", "CalValEX/Items/Equips/Transformations/SignusTrans_Head");
            AddEquipTexture(new SignusBody(), null, EquipType.Body, "SignusBody", "CalValEX/Items/Equips/Transformations/SignusTrans_Body", "CalValEX/Items/Equips/Transformations/SignusTrans_Arms");
            AddEquipTexture(new SignusLegs(), null, EquipType.Legs, "SignusLegs", "CalValEX/Items/Equips/Transformations/SignusTrans_Legs");
            //TinyIbanRobotofDoom
            AddEquipTexture(new TinyIbanRobotOfDoomHead(), null, EquipType.Head, "TinyIbanRobotOfDoomHead", "CalValEX/Items/Equips/Transformations/TinyIbanRobotOfDoom_Head");
            AddEquipTexture(new TinyIbanRobotOfDoomBody(), null, EquipType.Body, "TinyIbanRobotOfDoomBody", "CalValEX/Items/Equips/Transformations/TinyIbanRobotOfDoom_Body", "CalValEX/Items/Equips/Transformations/TinyIbanRobotOfDoom_Arms");
            AddEquipTexture(new TinyIbanRobotOfDoomLegs(), null, EquipType.Legs, "TinyIbanRobotOfDoomLegs", "CalValEX/Items/Equips/Transformations/TinyIbanRobotOfDoom_Legs");
            //Classic Brimmy
            AddEquipTexture(new ClassicBrimmyHead(), null, EquipType.Head, "ClassicBrimmyHead", "CalValEX/Items/Equips/Transformations/ClassicBrimmy_Head");
            AddEquipTexture(new ClassicBrimmyBody(), null, EquipType.Body, "ClassicBrimmyBody", "CalValEX/Items/Equips/Transformations/ClassicBrimmy_Body", "CalValEX/Items/Equips/Transformations/ClassicBrimmy_Arms");
            AddEquipTexture(new ClassicBrimmyLegs(), null, EquipType.Legs, "ClassicBrimmyLegs", "CalValEX/Items/Equips/Transformations/ClassicBrimmy_Legs");
            //Cloud transformation
            AddEquipTexture(new CloudHead(), null, EquipType.Head, "CloudHead", "CalValEX/Items/Equips/Transformations/Cloud_Head");
            AddEquipTexture(new CloudBody(), null, EquipType.Body, "CloudBody", "CalValEX/Items/Equips/Transformations/Cloud_Body", "CalValEX/Items/Equips/Transformations/Cloud_Arms");
            AddEquipTexture(new CloudLegs(), null, EquipType.Legs, "CloudLegs", "CalValEX/Items/Equips/Transformations/Cloud_Legs");
            //Sand transformation
            AddEquipTexture(new SandHead(), null, EquipType.Head, "SandHead", "CalValEX/Items/Equips/Transformations/Sand_Head");
            AddEquipTexture(new SandBody(), null, EquipType.Body, "SandBody", "CalValEX/Items/Equips/Transformations/Sand_Body", "CalValEX/Items/Equips/Transformations/Sand_Arms");
            AddEquipTexture(new SandLegs(), null, EquipType.Legs, "SandLegs", "CalValEX/Items/Equips/Transformations/Sand_Legs");

            GameShaders.Armor.BindShader(ModContent.ItemType <DraedonHologramDye>(),
                                         new ArmorShaderData(new Ref <Effect>(GetEffect("Effects/DraedonHologramDye")),
                                                             "DraedonHologramDyePass"));

            DraedonHelmetTextureCache.Load();
            DraedonChestplateCache.Load();

            AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/AstralBlight"), ItemType("AstralMusicBox"), TileType("AstralMusicBoxPlaced"));
        }