Esempio n. 1
0
		public BowInfo(string p_sResourceName, ItemCodex.ItemTypes p_enItemType, WeaponInfo.WeaponCategory p_enWeaponCategory) : base(p_sResourceName, p_enItemType, p_enWeaponCategory, "blueish")
		{
			if (p_enItemType == ItemCodex.ItemTypes._Bow_WoodenBow)
			{
				this.sResourceName = "WoodenBow";
				this.av2RenderOffsets[0] = new Vector2(4f, 3f);
				this.av2RenderOffsets[1] = new Vector2(4f, 3f);
				this.av2RenderOffsets[2] = new Vector2(6f, 4f);
				this.av2RenderOffsets[3] = new Vector2(8f, 5f);
			}
		}
Esempio n. 2
0
 public WeaponInfo(string p_sResourceName, ItemCodex.ItemTypes p_enItemType, WeaponInfo.WeaponCategory p_enWeaponCategory, string sPalette = "blueish")
     : base(p_sResourceName, p_enItemType)
 {
     PlayerPalette.PaletteData x = new PlayerPalette.PaletteData("Standard", Program.game.Content.Load<Texture2D>("Items/WeaponPalettes/" + sPalette));
     this.av4WeaponPalette = x.av4Palette;
     this.enWeaponCategory = p_enWeaponCategory;
     if (this.enWeaponCategory == WeaponInfo.WeaponCategory.OneHanded)
     {
         this.sWeaponCategory = "OneHanded";
         return;
     }
     if (this.enWeaponCategory == WeaponInfo.WeaponCategory.TwoHanded)
     {
         this.sWeaponCategory = "TwoHanded";
         return;
     }
     if (this.enWeaponCategory == WeaponInfo.WeaponCategory.Bow)
     {
         this.sWeaponCategory = "Bow";
     }
 }
Esempio n. 3
0
 public static WeaponInfo GetWeaponInfo(ItemCodex.ItemTypes enType)
 {
     WeaponInfo xIt = null;
     if (enType == ItemCodex.ItemTypes._OneHanded_WoodenSword)
     {
         xIt = new WeaponInfo("WoodenSword", enType, WeaponInfo.WeaponCategory.OneHanded, "blueish");
         xIt.deniStatChanges[EquipmentInfo.StatEnum.ATK] = 25;
         xIt.iDamageMultiplier = 85;
     }
     else if (enType == ItemCodex.ItemTypes._OneHanded_CarrotSword)
     {
         xIt = new WeaponInfo("CarrotSword", enType, WeaponInfo.WeaponCategory.OneHanded, "carrot");
         xIt.deniStatChanges[EquipmentInfo.StatEnum.ATK] = 50;
         xIt.iDamageMultiplier = 90;
     }
     else if (enType == ItemCodex.ItemTypes._OneHanded_IronSword)
     {
         xIt = new WeaponInfo("IronSword", enType, WeaponInfo.WeaponCategory.OneHanded, "blueish");
         xIt.deniStatChanges[EquipmentInfo.StatEnum.ATK] = 35;
         xIt.iDamageMultiplier = 90;
     }
     else if (enType == ItemCodex.ItemTypes._OneHanded_Morningstar)
     {
         xIt = new WeaponInfo("MorningStar", enType, WeaponInfo.WeaponCategory.OneHanded, "blueish");
         xIt.deniStatChanges[EquipmentInfo.StatEnum.ATK] = 50;
         xIt.deniStatChanges[EquipmentInfo.StatEnum.ASPD] = -5;
         xIt.iDamageMultiplier = 90;
     }
     else if (enType == ItemCodex.ItemTypes._OneHanded_Stinger)
     {
         xIt = new WeaponInfo("Stinger", enType, WeaponInfo.WeaponCategory.OneHanded, "teal");
         xIt.deniStatChanges[EquipmentInfo.StatEnum.ATK] = 60;
         xIt.lxSpecialEffects.Add(EquipmentInfo.SpecialEffect._Unique_StingerBonuses);
         xIt.iDamageMultiplier = 90;
     }
     else if (enType == ItemCodex.ItemTypes._OneHanded_Rod)
     {
         xIt = new WeaponInfo("Rod", enType, WeaponInfo.WeaponCategory.OneHanded, "mossgreen");
         xIt.deniStatChanges[EquipmentInfo.StatEnum.ATK] = 15;
         xIt.deniStatChanges[EquipmentInfo.StatEnum.MATK] = 25;
         xIt.iDamageMultiplier = 90;
     }
     else if (enType == ItemCodex.ItemTypes._OneHanded_RubyRod)
     {
         xIt = new WeaponInfo("RubyRod", enType, WeaponInfo.WeaponCategory.OneHanded, "purple");
         xIt.deniStatChanges[EquipmentInfo.StatEnum.ATK] = 25;
         xIt.deniStatChanges[EquipmentInfo.StatEnum.MATK] = 40;
         xIt.iDamageMultiplier = 90;
     }
     else if (enType == ItemCodex.ItemTypes._OneHanded_SteelSword)
     {
         xIt = new WeaponInfo("SteelSword", enType, WeaponInfo.WeaponCategory.OneHanded, "blueish");
         xIt.deniStatChanges[EquipmentInfo.StatEnum.ATK] = 60;
         xIt.iDamageMultiplier = 90;
     }
     else if (enType == ItemCodex.ItemTypes._OneHanded_LaserSword)
     {
         xIt = new WeaponInfo("LaserSword", enType, WeaponInfo.WeaponCategory.OneHanded, "blueish");
         xIt.deniStatChanges[EquipmentInfo.StatEnum.ATK] = 80;
         xIt.iDamageMultiplier = 90;
     }
     else if (enType == ItemCodex.ItemTypes._TwoHanded_Claymore)
     {
         xIt = new WeaponInfo("Claymore", enType, WeaponInfo.WeaponCategory.TwoHanded, "blueish");
         xIt.deniStatChanges[EquipmentInfo.StatEnum.ATK] = 45;
         xIt.iDamageMultiplier = 125;
     }
     else if (enType == ItemCodex.ItemTypes._TwoHanded_Stick)
     {
         xIt = new WeaponInfo("Stick", enType, WeaponInfo.WeaponCategory.TwoHanded, "blueish");
         xIt.deniStatChanges[EquipmentInfo.StatEnum.ATK] = 35;
         xIt.iDamageMultiplier = 125;
     }
     else if (enType == ItemCodex.ItemTypes._TwoHanded_Lantern)
     {
         xIt = new WeaponInfo("Lantern", enType, WeaponInfo.WeaponCategory.TwoHanded, "fire");
         xIt.deniStatChanges[EquipmentInfo.StatEnum.ATK] = 70;
         xIt.iDamageMultiplier = 125;
     }
     else if (enType == ItemCodex.ItemTypes._TwoHanded_Club)
     {
         xIt = new WeaponInfo("Club", enType, WeaponInfo.WeaponCategory.TwoHanded, "blueish");
         xIt.deniStatChanges[EquipmentInfo.StatEnum.ATK] = 55;
         xIt.iDamageMultiplier = 125;
     }
     else if (enType == ItemCodex.ItemTypes._TwoHanded_SpikedClub)
     {
         xIt = new WeaponInfo("SpikedClub", enType, WeaponInfo.WeaponCategory.TwoHanded, "blueish");
         xIt.deniStatChanges[EquipmentInfo.StatEnum.ATK] = 90;
         xIt.iDamageMultiplier = 125;
     }
     else if (enType == ItemCodex.ItemTypes._TwoHanded_LumberAxe)
     {
         xIt = new WeaponInfo("LumberAxe", enType, WeaponInfo.WeaponCategory.TwoHanded, "blueish");
         xIt.deniStatChanges[EquipmentInfo.StatEnum.ATK] = 150;
         xIt.iDamageMultiplier = 125;
     }
     else if (enType == ItemCodex.ItemTypes._TwoHanded_GreatAxe)
     {
         xIt = new WeaponInfo("GreatAxe", enType, WeaponInfo.WeaponCategory.TwoHanded, "blueish");
         xIt.deniStatChanges[EquipmentInfo.StatEnum.ATK] = 250;
         xIt.iDamageMultiplier = 125;
     }
     else if (enType == ItemCodex.ItemTypes._TwoHanded_SlimeHammer)
     {
         xIt = new WeaponInfo("SlimeHammer", enType, WeaponInfo.WeaponCategory.TwoHanded, "Slime");
         xIt.deniStatChanges[EquipmentInfo.StatEnum.ATK] = 60;
         xIt.iDamageMultiplier = 125;
     }
     else if (enType == ItemCodex.ItemTypes._Bow_WoodenBow)
     {
         xIt = new BowInfo("WoodenBow", enType, WeaponInfo.WeaponCategory.Bow);
         xIt.deniStatChanges[EquipmentInfo.StatEnum.ATK] = 30;
         xIt.iDamageMultiplier = 70;
     }
     else if (enType == ItemCodex.ItemTypes.Null)
     {
         return null;
     }
     return xIt;
 }