Desert prowler resprite & old hunter vanity
No files matched your search
@@ -26,8 +26,17 @@ namespace CalamityMod.CalPlayer.DrawLayers
|
||||
if (drawPlayer.armor[11].type > ItemID.None)
|
||||
bodyItem = drawPlayer.armor[11].type;
|
||||
|
||||
|
||||
if (ModContent.GetModItem(bodyItem) is IBulkyArmor chestplateBulkDrawer)
|
||||
{
|
||||
int equipSlot = chestplateBulkDrawer.BodySlot(drawPlayer);
|
||||
if (equipSlot == -1)
|
||||
equipSlot = EquipLoader.GetEquipSlot(Mod, ModContent.GetModItem(bodyItem).Name, EquipType.Body);
|
||||
|
||||
if (drawPlayer.body != equipSlot)
|
||||
return;
|
||||
|
||||
|
||||
int dyeShader = drawPlayer.dye?[1].dye ?? 0;
|
||||
Vector2 drawPosition = drawInfo.Position - Main.screenPosition;
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria;
|
||||
|
||||
/// <summary>
|
||||
/// Interface that can be used by chestplates to appear extra bulky, by drawing partly over the players helmet with an extra layer
|
||||
@@ -11,4 +12,11 @@ public interface IBulkyArmor
|
||||
/// This should be the same size as a regular equipped sprite (20 x 560 in 1x1)
|
||||
/// </summary>
|
||||
string BulkTexture { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The slot for the body equip texture.
|
||||
/// Defaults to -1, which will have it search itself for the appropriate body slot using the name of the item.
|
||||
/// If your item has different body slot types depending on other factors, you can specify it here.
|
||||
/// </summary>
|
||||
int BodySlot(Player drawPlayer) => -1;
|
||||
}
|
||||
@@ -1,56 +0,0 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.DesertProwler
|
||||
{
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
public class DesertProwlerHat : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
DisplayName.SetDefault("Desert Prowler Hat");
|
||||
Tooltip.SetDefault("4% increased ranged critical strike chance and 20% chance to not consume ammo");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.Rarity1BuyPrice;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.defense = 1; //6
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
{
|
||||
return body.type == ModContent.ItemType<DesertProwlerShirt>() && legs.type == ModContent.ItemType<DesertProwlerPants>();
|
||||
}
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = "Ranged attacks deal an extra 1 flat damage\n" +
|
||||
"Ranged crits can rarely whip up a sandstorm";
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.desertProwler = true;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetCritChance<RangedDamageClass>() += 4;
|
||||
player.ammoCost80 = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<DesertFeather>(2).
|
||||
AddIngredient(ItemID.Silk, 8).
|
||||
AddTile(TileID.Loom).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 677 B After Width: | Height: | Size: 642 B |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.7 KiB |
@@ -1,42 +0,0 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.DesertProwler
|
||||
{
|
||||
[AutoloadEquip(EquipType.Legs)]
|
||||
public class DesertProwlerPants : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
DisplayName.SetDefault("Desert Prowler Pants");
|
||||
Tooltip.SetDefault("10% increased movement speed and immunity to the Mighty Wind debuff");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.Rarity1BuyPrice;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.defense = 2;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.buffImmune[BuffID.WindPushed] = true;
|
||||
player.moveSpeed += 0.1f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<DesertFeather>().
|
||||
AddIngredient(ItemID.Silk, 5).
|
||||
AddTile(TileID.Loom).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 380 B After Width: | Height: | Size: 280 B |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 3.3 KiB |
@@ -0,0 +1,135 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.DesertProwler
|
||||
{
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
public class DesertProwlerHat : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
DisplayName.SetDefault("Desert Prowler Hat");
|
||||
Tooltip.SetDefault("4% increased ranged critical strike chance and 20% chance to not consume ammo");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.Rarity1BuyPrice;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.defense = 1; //6
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
{
|
||||
return body.type == ModContent.ItemType<DesertProwlerShirt>() && legs.type == ModContent.ItemType<DesertProwlerPants>();
|
||||
}
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = "Ranged attacks deal an extra 1 flat damage\n" +
|
||||
"Ranged crits can rarely whip up a sandstorm";
|
||||
player.Calamity().desertProwler = true;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetCritChance<RangedDamageClass>() += 4;
|
||||
player.ammoCost80 = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<DesertFeather>(2).
|
||||
AddIngredient(ItemID.Silk, 8).
|
||||
AddTile(TileID.Loom).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
[AutoloadEquip(EquipType.Body)]
|
||||
public class DesertProwlerShirt : ModItem, IBulkyArmor
|
||||
{
|
||||
public string BulkTexture => "CalamityMod/Items/Armor/DesertProwler/DesertProwlerShirt_Bulk";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
DisplayName.SetDefault("Desert Prowler Shirt");
|
||||
Tooltip.SetDefault("5% increased ranged critical strike chance");
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
ArmorIDs.Body.Sets.HidesTopSkin[equipSlot] = true;
|
||||
ArmorIDs.Body.Sets.HidesArms[equipSlot] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.Rarity1BuyPrice;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.defense = 3;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetCritChance<RangedDamageClass>() += 5;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<DesertFeather>(3).
|
||||
AddIngredient(ItemID.Silk, 10).
|
||||
AddTile(TileID.Loom).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
[AutoloadEquip(EquipType.Legs)]
|
||||
public class DesertProwlerPants : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
DisplayName.SetDefault("Desert Prowler Pants");
|
||||
Tooltip.SetDefault("10% increased movement speed and immunity to the Mighty Wind debuff");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.Rarity1BuyPrice;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.defense = 2;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.buffImmune[BuffID.WindPushed] = true;
|
||||
player.moveSpeed += 0.1f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<DesertFeather>().
|
||||
AddIngredient(ItemID.Silk, 5).
|
||||
AddTile(TileID.Loom).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,49 +0,0 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.DesertProwler
|
||||
{
|
||||
[AutoloadEquip(EquipType.Body)]
|
||||
public class DesertProwlerShirt : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
DisplayName.SetDefault("Desert Prowler Shirt");
|
||||
Tooltip.SetDefault("5% increased ranged critical strike chance");
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
ArmorIDs.Body.Sets.HidesTopSkin[equipSlot] = true;
|
||||
ArmorIDs.Body.Sets.HidesArms[equipSlot] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.Rarity1BuyPrice;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.defense = 3;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetCritChance<RangedDamageClass>() += 5;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<DesertFeather>(3).
|
||||
AddIngredient(ItemID.Silk, 10).
|
||||
AddTile(TileID.Loom).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 550 B After Width: | Height: | Size: 482 B |
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.8 KiB |
|
After Width: | Height: | Size: 779 B |
|
After Width: | Height: | Size: 586 B |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 248 B |
|
After Width: | Height: | Size: 2.8 KiB |
@@ -0,0 +1,120 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Items.Armor.DesertProwler;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Vanity
|
||||
{
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
public class OldHunterHat : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
DisplayName.SetDefault("Old Hunter Hat");
|
||||
Tooltip.SetDefault("Piece of attire fashioned after hunters from a far away place..");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.Rarity1BuyPrice;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.vanity = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<DesertProwlerHat>().
|
||||
AddIngredient(ItemID.BlackInk).
|
||||
AddTile(TileID.DyeVat).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
[AutoloadEquip(EquipType.Body)]
|
||||
public class OldHunterShirt : ModItem, IBulkyArmor
|
||||
{
|
||||
public string BulkTexture => "CalamityMod/Items/Armor/Vanity/OldHunterShirt_Bulk";
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
return;
|
||||
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/Vanity/OldHunterShirt_Back", EquipType.Back, this);
|
||||
}
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
DisplayName.SetDefault("Old Hunter Shirt");
|
||||
Tooltip.SetDefault("Piece of attire fashioned after hunters from a far away place...");
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
ArmorIDs.Body.Sets.HidesTopSkin[equipSlot] = true;
|
||||
ArmorIDs.Body.Sets.HidesArms[equipSlot] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.Rarity1BuyPrice;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.vanity = true;
|
||||
}
|
||||
|
||||
|
||||
public override void EquipFrameEffects(Player player, EquipType type)
|
||||
{
|
||||
player.back = (sbyte)EquipLoader.GetEquipSlot(Mod, Name, EquipType.Back);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<DesertProwlerShirt>().
|
||||
AddIngredient(ItemID.BlackInk).
|
||||
AddTile(TileID.DyeVat).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
[AutoloadEquip(EquipType.Legs)]
|
||||
public class OldHunterPants : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
DisplayName.SetDefault("Old Hunter Pants");
|
||||
Tooltip.SetDefault("Piece of attire fashioned after hunters from a far away place...");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.Rarity1BuyPrice;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.vanity = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<DesertProwlerPants>().
|
||||
AddIngredient(ItemID.BlackInk).
|
||||
AddTile(TileID.DyeVat).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 536 B |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 4.9 KiB |
|
After Width: | Height: | Size: 930 B |