public CharacterDisplay(PlayerView xView) { ContentManager Content = RenderMaster.contPlayerStuff; this.txBaseMaleTextures[0] = Content.Load<Texture2D>("Sprites/Heroes/Idle/Up"); this.txBaseMaleTextures[1] = Content.Load<Texture2D>("Sprites/Heroes/Idle/Right"); this.txBaseMaleTextures[2] = Content.Load<Texture2D>("Sprites/Heroes/Idle/Down"); this.txBaseMaleTextures[3] = Content.Load<Texture2D>("Sprites/Heroes/Idle/Left"); this.txBaseFemaleTextures[0] = Content.Load<Texture2D>("Sprites/Heroes/IdleFemale/Up"); this.txBaseFemaleTextures[1] = Content.Load<Texture2D>("Sprites/Heroes/IdleFemale/Right"); this.txBaseFemaleTextures[2] = Content.Load<Texture2D>("Sprites/Heroes/IdleFemale/Down"); this.txBaseFemaleTextures[3] = Content.Load<Texture2D>("Sprites/Heroes/IdleFemale/Left"); if (xView.xEquipment.xHairdo != null) { this.xHairdo = HairdoCodex.GetHairdoInfo(xView.xEquipment.xHairdo.enItemType); } if (xView.xEquipment.xHat != null) { this.xHat = HatCodex.GetHatInfo(xView.xEquipment.xHat.enItemType); } if (xView.xEquipment.xFacegear != null) { this.xFacegear = FacegearCodex.GetHatInfo(xView.xEquipment.xFacegear.enItemType); } this.bIsMale = xView.xViewStats.bIsMale; this.xClothingSet = new PlayerPalette.ClothingSet(xView.xEquipment.xClothingSet); this.rt2dPreRender = new RenderTarget2D(Program.GetTheGame().GraphicsDevice, 150, 150, false, SurfaceFormat.Color, DepthFormat.None); this.av4ShaderFeed = RenderMaster.CreateRecolorArray(this.xClothingSet); this.av4ShaderHairColorFeed = PlayerPalette.denHairPalettes[this.xClothingSet.enHairColor].av4Palette; }
public CharacterDisplay(char p_chBodyType, ItemCodex.ItemTypes p_enHat, ItemCodex.ItemTypes p_enFacegear, ItemCodex.ItemTypes p_enHairdo) { ContentManager Content = RenderMaster.contPlayerStuff; this.chBodyType = p_chBodyType; this.txBaseMaleTextures[0] = Content.Load<Texture2D>("Sprites/Heroes/Idle/Up"); this.txBaseMaleTextures[1] = Content.Load<Texture2D>("Sprites/Heroes/Idle/Right"); this.txBaseMaleTextures[2] = Content.Load<Texture2D>("Sprites/Heroes/Idle/Down"); this.txBaseMaleTextures[3] = Content.Load<Texture2D>("Sprites/Heroes/Idle/Left"); this.txBaseFemaleTextures[0] = Content.Load<Texture2D>("Sprites/Heroes/IdleFemale/Up"); this.txBaseFemaleTextures[1] = Content.Load<Texture2D>("Sprites/Heroes/IdleFemale/Right"); this.txBaseFemaleTextures[2] = Content.Load<Texture2D>("Sprites/Heroes/IdleFemale/Down"); this.txBaseFemaleTextures[3] = Content.Load<Texture2D>("Sprites/Heroes/IdleFemale/Left"); this.xHat = HatCodex.GetHatInfo(p_enHat); this.xFacegear = FacegearCodex.GetHatInfo(p_enFacegear); this.xHairdo = HairdoCodex.GetHairdoInfo(p_enHairdo); this.rt2dPreRender = new RenderTarget2D(Program.GetTheGame().GraphicsDevice, 150, 150, false, SurfaceFormat.Color, DepthFormat.None); }
public static HatInfo GetHatInfo(ItemCodex.ItemTypes enType) { if (enType == ItemCodex.ItemTypes.Null) { return null; } HatInfo xIt = new HatInfo(enType); xIt.enItemType = enType; ContentManager Content = Program.GetTheGame().Content; string sHatPath = "Sprites/Equipment/Hats/"; if (enType == ItemCodex.ItemTypes._Hat_Strawboater) { xIt.sResourceName = "Strawboater"; sHatPath += "Strawboater/"; xIt.xDefaultSet.bObstructsSides = true; xIt.xDefaultSet.bObstructsTop = true; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(4f, 8f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(6f, 6f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(6f, 6f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(4f, 8f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 4; } else if (enType == ItemCodex.ItemTypes._Hat_Halo) { xIt.sResourceName = "Halo"; sHatPath += "Halo/"; xIt.xDefaultSet.bObstructsSides = false; xIt.xDefaultSet.bObstructsTop = false; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(1f, 7f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(2f, 5f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(2f, 5f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(1f, 7f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 2; xIt.deniStatChanges[EquipmentInfo.StatEnum.MATK] = 10; } else if (enType == ItemCodex.ItemTypes._Hat_BabyDevilHorns) { xIt.sResourceName = "Horns"; sHatPath += "Horns/"; xIt.xDefaultSet.bObstructsSides = false; xIt.xDefaultSet.bObstructsTop = false; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(1f, 3f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(-7f, 1f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(2f, 2f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(3f, 3f); xIt.deniStatChanges[EquipmentInfo.StatEnum.ATK] = 15; } else if (enType == ItemCodex.ItemTypes._Hat_SlimeHat) { xIt.sResourceName = "Slimehat"; sHatPath += "Slimehat/"; xIt.xDefaultSet.bObstructsSides = true; xIt.xDefaultSet.bObstructsTop = true; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(4f, 7f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(5f, 5f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(5f, 5f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(4f, 7f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 8; } else if (enType == ItemCodex.ItemTypes._Hat_SlimeHat_Blue) { xIt.sResourceName = "SlimehatBlue"; sHatPath += "SlimehatBlue/"; xIt.xDefaultSet.bObstructsSides = true; xIt.xDefaultSet.bObstructsTop = true; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(4f, 7f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(5f, 5f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(5f, 5f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(4f, 7f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 20; } else if (enType == ItemCodex.ItemTypes._Hat_SlimeHat_Red) { xIt.sResourceName = "SlimehatRed"; sHatPath += "SlimehatRed/"; xIt.xDefaultSet.bObstructsSides = true; xIt.xDefaultSet.bObstructsTop = true; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(4f, 7f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(5f, 5f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(5f, 5f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(4f, 7f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 13; } else if (enType == ItemCodex.ItemTypes._Hat_AppleHat) { xIt.sResourceName = "Applehat"; sHatPath += "Apple/"; xIt.xDefaultSet.bObstructsSides = true; xIt.xDefaultSet.bObstructsTop = true; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(3f, 9f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(5f, 7f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(4f, 7f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(3f, 9f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 12; xIt.deniStatChanges[EquipmentInfo.StatEnum.HP] = 10; } else if (enType == ItemCodex.ItemTypes._Hat_PumpkinMask) { xIt.sResourceName = "PumpkinMask"; sHatPath += "PumpkinMask/"; xIt.bHideHair = true; xIt.bDoubleSlot = true; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(3f, 7f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(4f, 5f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(4f, 5f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(3f, 7f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 10; xIt.deniStatChanges[EquipmentInfo.StatEnum.ATK] = 20; } else if (enType == ItemCodex.ItemTypes._Hat_Bandana) { xIt.sResourceName = "Bandana"; sHatPath += "Bandana/"; xIt.xDefaultSet.bObstructsSides = false; xIt.xDefaultSet.bObstructsTop = false; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(2f, -1f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(3f, -3f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(3f, -3f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(2f, -1f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 1; xIt.deniStatChanges[EquipmentInfo.StatEnum.ATK] = 10; } else if (enType == ItemCodex.ItemTypes._Hat_Can) { xIt.sResourceName = "Can"; sHatPath += "Can/"; xIt.xDefaultSet.bObstructsSides = false; xIt.xDefaultSet.bObstructsTop = false; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(-3f, 14f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(1f, 12f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(-1f, 12f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(-3f, 14f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 1; HatInfo.VisualSet xSet = xIt.denxAlternateVisualSets[ItemCodex.ItemTypes._Hairdo_Saiya] = new HatInfo.VisualSet(); xSet.av2RenderOffsets = new Vector2[] { new Vector2(-3f, 17f), new Vector2(1f, 15f), new Vector2(-1f, 15f), new Vector2(-3f, 17f) }; xSet.abUnderHair = new bool[] { true, true, true, true }; xSet.atxTextures = new Texture2D[] { Content.Load<Texture2D>(sHatPath + "Up"), Content.Load<Texture2D>(sHatPath + "Right"), Content.Load<Texture2D>(sHatPath + "Down"), Content.Load<Texture2D>(sHatPath + "Left") }; xIt.xDefaultSet.abUnderHair[0] = true; } else if (enType == ItemCodex.ItemTypes._Hat_GuardHat) { xIt.sResourceName = "GuardHat"; sHatPath += "GuardHat/"; xIt.xDefaultSet.bObstructsSides = true; xIt.xDefaultSet.bObstructsTop = true; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(2f, 9f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(4f, 7f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(3f, 7f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(4f, 9f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 12; } else if (enType == ItemCodex.ItemTypes._Hat_Keps) { xIt.sResourceName = "Keps"; sHatPath += "Keps/"; xIt.xDefaultSet.bObstructsSides = true; xIt.xDefaultSet.bObstructsTop = true; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(2f, 5f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(3f, 3f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(3f, 3f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(7f, 5f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 4; xIt.deniStatChanges[EquipmentInfo.StatEnum.ASPD] = 5; } else if (enType == ItemCodex.ItemTypes._Hat_Mossa) { xIt.sResourceName = "Mossa"; sHatPath += "Mossa/"; xIt.bHideHair = false; xIt.xDefaultSet.bObstructsSides = true; xIt.xDefaultSet.bObstructsTop = true; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(4f, 10f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(5f, 8f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(5f, 8f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(3f, 10f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 6; } else if (enType == ItemCodex.ItemTypes._Hat_Rosett_Blue) { xIt.sResourceName = "Rosett"; sHatPath += "Rosett/"; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(0f, 5f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(-5f, 3f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(1f, 3f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(0f, 5f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 4; xIt.deniStatChanges[EquipmentInfo.StatEnum.MATK] = 15; xIt.xDefaultSet.abUnderHair[0] = true; string sColor = "blue"; xIt.xDefaultSet.atxTextures[0] = Content.Load<Texture2D>(sHatPath + sColor + "_updown"); xIt.xDefaultSet.atxTextures[1] = Content.Load<Texture2D>(sHatPath + sColor + "_right"); xIt.xDefaultSet.atxTextures[2] = Content.Load<Texture2D>(sHatPath + sColor + "_updown"); xIt.xDefaultSet.atxTextures[3] = Content.Load<Texture2D>(sHatPath + sColor + "_left"); } else if (enType == ItemCodex.ItemTypes._Hat_Rosett_Green) { xIt.sResourceName = "Rosett"; sHatPath += "Rosett/"; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(0f, 5f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(-5f, 3f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(1f, 3f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(0f, 5f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 6; xIt.deniStatChanges[EquipmentInfo.StatEnum.ASPD] = 5; xIt.xDefaultSet.abUnderHair[0] = true; string sColor2 = "green"; xIt.xDefaultSet.atxTextures[0] = Content.Load<Texture2D>(sHatPath + sColor2 + "_updown"); xIt.xDefaultSet.atxTextures[1] = Content.Load<Texture2D>(sHatPath + sColor2 + "_right"); xIt.xDefaultSet.atxTextures[2] = Content.Load<Texture2D>(sHatPath + sColor2 + "_updown"); xIt.xDefaultSet.atxTextures[3] = Content.Load<Texture2D>(sHatPath + sColor2 + "_left"); } else if (enType == ItemCodex.ItemTypes._Hat_Rosett_Pink) { xIt.sResourceName = "Rosett"; sHatPath += "Rosett/"; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(0f, 5f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(-5f, 3f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(1f, 3f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(0f, 5f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 4; xIt.deniStatChanges[EquipmentInfo.StatEnum.EP] = 15; xIt.xDefaultSet.abUnderHair[0] = true; string sColor3 = "pink"; xIt.xDefaultSet.atxTextures[0] = Content.Load<Texture2D>(sHatPath + sColor3 + "_updown"); xIt.xDefaultSet.atxTextures[1] = Content.Load<Texture2D>(sHatPath + sColor3 + "_right"); xIt.xDefaultSet.atxTextures[2] = Content.Load<Texture2D>(sHatPath + sColor3 + "_updown"); xIt.xDefaultSet.atxTextures[3] = Content.Load<Texture2D>(sHatPath + sColor3 + "_left"); } else if (enType == ItemCodex.ItemTypes._Hat_Rosett_Red) { xIt.sResourceName = "Rosett"; sHatPath += "Rosett/"; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(0f, 5f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(-5f, 3f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(1f, 3f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(0f, 5f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 6; xIt.deniStatChanges[EquipmentInfo.StatEnum.ATK] = 15; xIt.xDefaultSet.abUnderHair[0] = true; string sColor4 = "red"; xIt.xDefaultSet.atxTextures[0] = Content.Load<Texture2D>(sHatPath + sColor4 + "_updown"); xIt.xDefaultSet.atxTextures[1] = Content.Load<Texture2D>(sHatPath + sColor4 + "_right"); xIt.xDefaultSet.atxTextures[2] = Content.Load<Texture2D>(sHatPath + sColor4 + "_updown"); xIt.xDefaultSet.atxTextures[3] = Content.Load<Texture2D>(sHatPath + sColor4 + "_left"); } else if (enType == ItemCodex.ItemTypes._Hat_Garland_BluePetals) { xIt.sResourceName = "BlueGarland"; sHatPath += "GarlandofFlowers/Blue/"; xIt.xDefaultSet.bObstructsSides = false; xIt.xDefaultSet.bObstructsTop = false; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(4f, 0f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(5f, -2f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(5f, -2f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(3f, 0f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 2; xIt.deniStatChanges[EquipmentInfo.StatEnum.ATK] = 10; xIt.deniStatChanges[EquipmentInfo.StatEnum.MATK] = 10; xIt.deniStatChanges[EquipmentInfo.StatEnum.Crit] = 2; HatInfo.VisualSet xSet2 = xIt.denxAlternateVisualSets[ItemCodex.ItemTypes._Hairdo_Sidetails] = new HatInfo.VisualSet(); xSet2.av2RenderOffsets = new Vector2[] { new Vector2(4f, 0f), new Vector2(6f, -2f), new Vector2(5f, -2f), new Vector2(3f, 0f) }; xSet2.atxTextures = new Texture2D[] { Content.Load<Texture2D>(sHatPath + "sidetails_up"), Content.Load<Texture2D>(sHatPath + "sidetails_right"), Content.Load<Texture2D>(sHatPath + "sidetails_down"), Content.Load<Texture2D>(sHatPath + "sidetails_left") }; xSet2 = (xIt.denxAlternateVisualSets[ItemCodex.ItemTypes._Hairdo_Buns] = new HatInfo.VisualSet()); xSet2.av2RenderOffsets = xIt.xDefaultSet.av2RenderOffsets; xSet2.atxTextures = new Texture2D[] { Content.Load<Texture2D>(sHatPath + "buns_up"), Content.Load<Texture2D>(sHatPath + "buns_right"), Content.Load<Texture2D>(sHatPath + "buns_down"), Content.Load<Texture2D>(sHatPath + "buns_left") }; } else if (enType == ItemCodex.ItemTypes._Hat_Garland_PurplePetals) { xIt.sResourceName = "PurpleGarland"; sHatPath += "GarlandofFlowers/Purple/"; xIt.xDefaultSet.bObstructsSides = false; xIt.xDefaultSet.bObstructsTop = false; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(4f, 0f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(5f, -2f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(5f, -2f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(3f, 0f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 4; xIt.deniStatChanges[EquipmentInfo.StatEnum.ATK] = 20; xIt.deniStatChanges[EquipmentInfo.StatEnum.MATK] = 20; xIt.deniStatChanges[EquipmentInfo.StatEnum.Crit] = 4; HatInfo.VisualSet xSet3 = xIt.denxAlternateVisualSets[ItemCodex.ItemTypes._Hairdo_Sidetails] = new HatInfo.VisualSet(); xSet3.av2RenderOffsets = new Vector2[] { new Vector2(4f, 0f), new Vector2(6f, -2f), new Vector2(5f, -2f), new Vector2(3f, 0f) }; xSet3.atxTextures = new Texture2D[] { Content.Load<Texture2D>(sHatPath + "sidetails_up"), Content.Load<Texture2D>(sHatPath + "sidetails_right"), Content.Load<Texture2D>(sHatPath + "sidetails_down"), Content.Load<Texture2D>(sHatPath + "sidetails_left") }; xSet3 = (xIt.denxAlternateVisualSets[ItemCodex.ItemTypes._Hairdo_Buns] = new HatInfo.VisualSet()); xSet3.av2RenderOffsets = xIt.xDefaultSet.av2RenderOffsets; xSet3.atxTextures = new Texture2D[] { Content.Load<Texture2D>(sHatPath + "buns_up"), Content.Load<Texture2D>(sHatPath + "buns_right"), Content.Load<Texture2D>(sHatPath + "buns_down"), Content.Load<Texture2D>(sHatPath + "buns_left") }; } else if (enType == ItemCodex.ItemTypes._Hat_Ushanka) { xIt.sResourceName = "Ushanka"; sHatPath += "Ushanka/"; xIt.xDefaultSet.bObstructsSides = true; xIt.xDefaultSet.bObstructsTop = true; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(4f, 7f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(3f, 5f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(5f, 5f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(2f, 7f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 14; } else if (enType == ItemCodex.ItemTypes._Hat_ChickenHat) { xIt.sResourceName = "Chicken"; sHatPath += "Chicken/"; xIt.xDefaultSet.bObstructsSides = true; xIt.xDefaultSet.bObstructsTop = true; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(3f, 12f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(4f, 10f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(4f, 10f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(3f, 12f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 11; } else if (enType == ItemCodex.ItemTypes._Hat_Chimney) { xIt.sResourceName = "Chimney"; sHatPath += "Chimney/"; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(-3f, 13f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(-2f, 11f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(-2f, 11f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(-3f, 13f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 5; HatInfo.VisualSet xSet4 = xIt.denxAlternateVisualSets[ItemCodex.ItemTypes._Hairdo_Saiya] = new HatInfo.VisualSet(); xSet4.av2RenderOffsets = new Vector2[] { new Vector2(-3f, 16f), new Vector2(-2f, 14f), new Vector2(-2f, 14f), new Vector2(-3f, 16f) }; xSet4.abUnderHair = new bool[] { true, true, true, true }; xSet4.atxTextures = new Texture2D[] { Content.Load<Texture2D>(sHatPath + "Up"), Content.Load<Texture2D>(sHatPath + "Right"), Content.Load<Texture2D>(sHatPath + "Down"), Content.Load<Texture2D>(sHatPath + "Left") }; } else if (enType == ItemCodex.ItemTypes._Hat_ArchersApple) { xIt.sResourceName = "ArchersApple"; sHatPath += "ArchersApple/"; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(7f, 12f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(0f, 10f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(6f, 10f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(-2f, 12f); xIt.lxSpecialEffects.Add(EquipmentInfo.SpecialEffect._Unique_ArcherApple); xIt.deniStatChanges[EquipmentInfo.StatEnum.Crit] = 5; HatInfo.VisualSet xSet5 = xIt.denxAlternateVisualSets[ItemCodex.ItemTypes._Hairdo_Saiya] = new HatInfo.VisualSet(); xSet5.av2RenderOffsets = new Vector2[] { new Vector2(7f, 16f), new Vector2(0f, 14f), new Vector2(6f, 14f), new Vector2(-2f, 16f) }; xSet5.abUnderHair = new bool[] { true, true, true, true }; xSet5.atxTextures = new Texture2D[] { Content.Load<Texture2D>(sHatPath + "Up"), Content.Load<Texture2D>(sHatPath + "Right"), Content.Load<Texture2D>(sHatPath + "Down"), Content.Load<Texture2D>(sHatPath + "Left") }; } else if (enType == ItemCodex.ItemTypes._Hat_Crown) { xIt.sResourceName = "Crown"; sHatPath += "Crown/"; xIt.xDefaultSet.bObstructsSides = true; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(3f, 8f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(5f, 6f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(4f, 6f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(2f, 8f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 8; xIt.deniStatChanges[EquipmentInfo.StatEnum.MATK] = 15; xIt.deniStatChanges[EquipmentInfo.StatEnum.ATK] = 15; xIt.deniStatChanges[EquipmentInfo.StatEnum.EP] = 5; } else if (enType == ItemCodex.ItemTypes._Hat_PopeHat) { xIt.sResourceName = "Pope"; sHatPath += "Pope/"; xIt.xDefaultSet.bObstructsSides = true; xIt.xDefaultSet.bObstructsTop = true; xIt.xDefaultSet.bObstructsBottom = true; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(5f, 16f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(8f, 12f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(6f, 14f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(2f, 14f); xIt.deniStatChanges[EquipmentInfo.StatEnum.MATK] = 50; } else if (enType == ItemCodex.ItemTypes._Hat_Fish) { xIt.sResourceName = "Fish"; sHatPath += "Fish/"; xIt.xDefaultSet.bObstructsBottom = true; xIt.xDefaultSet.bObstructsSides = true; xIt.xDefaultSet.bObstructsTop = true; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(3f, 15f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(17f, 13f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(4f, 13f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(2f, 15f); xIt.deniStatChanges[EquipmentInfo.StatEnum.HP] = 50; xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 5; } else if (enType == ItemCodex.ItemTypes._Hat_Eggshell) { xIt.sResourceName = "Eggshell"; sHatPath += "Eggshell/"; xIt.xDefaultSet.bObstructsSides = true; xIt.xDefaultSet.bObstructsTop = true; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(3f, 7f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(4f, 5f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(4f, 5f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(3f, 7f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 14; } else if (enType == ItemCodex.ItemTypes._Hat_BrawlerHelmet) { xIt.sResourceName = "Brawler Helmet"; sHatPath += "Brawler Helmet/"; xIt.xDefaultSet.bObstructsSides = true; xIt.xDefaultSet.bObstructsTop = true; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(3f, 7f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(5f, 5f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(4f, 5f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(3f, 7f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 18; } else if (enType == ItemCodex.ItemTypes._Hat_IronCap) { xIt.sResourceName = "Cap Iron"; sHatPath += "Cap Iron/"; xIt.bHideHair = true; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(2f, 6f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(3f, 4f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(3f, 4f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(2f, 6f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 7; } else if (enType == ItemCodex.ItemTypes._Hat_LeatherCap) { xIt.sResourceName = "Cap Leather"; sHatPath += "Cap Leather/"; xIt.bHideHair = true; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(2f, 6f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(3f, 4f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(3f, 4f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(2f, 6f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 1; } else if (enType == ItemCodex.ItemTypes._Hat_Phaseface) { xIt.sResourceName = "Phase Face"; sHatPath += "Phase Face/"; xIt.bHideHair = true; xIt.bDoubleSlot = true; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(2f, 14f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(7f, 13f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(3f, 12f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(2f, 15f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 24; xIt.deniStatChanges[EquipmentInfo.StatEnum.Crit] = 14; } else if (enType == ItemCodex.ItemTypes._Hat_WitchHat) { xIt.sResourceName = "Witch Hat"; sHatPath += "Witch Hat/"; xIt.xDefaultSet.bObstructsSides = true; xIt.xDefaultSet.bObstructsTop = true; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(7f, 13f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(7f, 11f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(8f, 11f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(6f, 13f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 4; xIt.deniStatChanges[EquipmentInfo.StatEnum.MATK] = 30; } else if (enType == ItemCodex.ItemTypes._Hat_GoblinHat) { xIt.sResourceName = "Frostling Hood"; sHatPath += "Frostling Hood/"; xIt.bHideHair = true; xIt.bDoubleSlot = true; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(2f, 4f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(3f, 2f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(3f, 2f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(2f, 4f); xIt.deniStatChanges[EquipmentInfo.StatEnum.DEF] = 30; } else if (enType == ItemCodex.ItemTypes._Hat_Earmuffs) { xIt.sResourceName = "Earmuffs"; sHatPath += "Earmuffs/"; xIt.bHideHair = false; xIt.bDoubleSlot = false; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(4f, 6f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(2f, 4f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(5f, 3f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(-2f, 6f); } else if (enType == ItemCodex.ItemTypes._Hat_Paperbag) { xIt.sResourceName = "Paperbag"; sHatPath += "Paperbag/"; xIt.bHideHair = true; xIt.bDoubleSlot = true; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(2f, 5f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(4f, 3f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(3f, 3f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(2f, 5f); } else if (enType == ItemCodex.ItemTypes._Hat_CatEars) { xIt.sResourceName = "Cat Ears"; sHatPath += "Cat Ears/"; xIt.bHideHair = false; xIt.bDoubleSlot = false; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(3f, 8f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(-2f, 6f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(4f, 6f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(3f, 8f); } else if (enType == ItemCodex.ItemTypes._Hat_ChefHat) { xIt.sResourceName = "Chef Hat"; sHatPath += "Chef Hat/"; xIt.xDefaultSet.bObstructsSides = true; xIt.xDefaultSet.bObstructsTop = true; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(5f, 14f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(8f, 13f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(6f, 12f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(2f, 15f); } else if (enType == ItemCodex.ItemTypes._Hat_Turban) { xIt.sResourceName = "Turban"; sHatPath += "Turban/"; xIt.xDefaultSet.bObstructsSides = true; xIt.xDefaultSet.bObstructsTop = true; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(3f, 7f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(6f, 5f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(4f, 5f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(2f, 7f); } else if (enType == ItemCodex.ItemTypes._Hat_ValkyrieHat_Neutral) { xIt.sResourceName = "Valkyrie"; sHatPath += "Valkyrie/"; xIt.xDefaultSet.bObstructsSides = true; xIt.xDefaultSet.bObstructsTop = true; xIt.xDefaultSet.av2RenderOffsets[0] = new Vector2(7f, 9f); xIt.xDefaultSet.av2RenderOffsets[1] = new Vector2(5f, 7f); xIt.xDefaultSet.av2RenderOffsets[2] = new Vector2(8f, 7f); xIt.xDefaultSet.av2RenderOffsets[3] = new Vector2(2f, 9f); } if (xIt.xDefaultSet.atxTextures[0] == null) { xIt.xDefaultSet.atxTextures[0] = Content.Load<Texture2D>(sHatPath + "Up"); } if (xIt.xDefaultSet.atxTextures[1] == null) { xIt.xDefaultSet.atxTextures[1] = Content.Load<Texture2D>(sHatPath + "Right"); } if (xIt.xDefaultSet.atxTextures[2] == null) { xIt.xDefaultSet.atxTextures[2] = Content.Load<Texture2D>(sHatPath + "Down"); } if (xIt.xDefaultSet.atxTextures[3] == null) { xIt.xDefaultSet.atxTextures[3] = Content.Load<Texture2D>(sHatPath + "Left"); } return xIt; }