Updated some potions's sprite.

Changed buy price to sell price.
This commit is contained in:
FyloZ 2020-07-09 18:03:44 -04:00
parent dd5726acf5
commit 884e67c5e2
68 changed files with 98 additions and 90 deletions

View File

@ -23,7 +23,7 @@ namespace Decimation.Content.Items.Accessories
item.width = 46; item.width = 46;
item.height = 62; item.height = 62;
item.rare = Rarity.LightPurple.GetRarityValue(); item.rare = Rarity.LightPurple.GetRarityValue();
this.item.value = Item.buyPrice(0, 4); this.item.value = Item.sellPrice(0, 4);
} }
public override void UpdateAccessory(Player player, bool hideVisual) public override void UpdateAccessory(Player player, bool hideVisual)

View File

@ -26,7 +26,7 @@ namespace Decimation.Content.Items.Accessories
item.height = 62; item.height = 62;
item.rare = Rarity.LightPurple.GetRarityValue(); item.rare = Rarity.LightPurple.GetRarityValue();
this.item.value = Item.buyPrice(0, 4); this.item.value = Item.sellPrice(0, 4);
} }
public override void UpdateAccessory(Player player, bool hideVisual) public override void UpdateAccessory(Player player, bool hideVisual)

View File

@ -18,7 +18,7 @@ namespace Decimation.Content.Items.Accessories
item.width = 35; item.width = 35;
item.height = 22; item.height = 22;
item.rare = Rarity.Green.GetRarityValue(); item.rare = Rarity.Green.GetRarityValue();
item.value = Item.buyPrice(0, 0, 0, 10); item.value = Item.sellPrice(0, 0, 0, 10);
item.defense = 2; item.defense = 2;
} }

View File

@ -22,7 +22,7 @@ namespace Decimation.Content.Items.Accessories
item.width = 30; item.width = 30;
item.height = 30; item.height = 30;
item.rare = Rarity.Red.GetRarityValue(); item.rare = Rarity.Red.GetRarityValue();
this.item.value = Item.buyPrice(0, 15); this.item.value = Item.sellPrice(0, 15);
} }
protected override List<ModRecipe> GetRecipes() protected override List<ModRecipe> GetRecipes()

View File

@ -21,7 +21,7 @@ namespace Decimation.Content.Items.Accessories
item.width = 46; item.width = 46;
item.height = 62; item.height = 62;
item.rare = Rarity.LightPurple.GetRarityValue(); item.rare = Rarity.LightPurple.GetRarityValue();
this.item.value = Item.buyPrice(0, 4); this.item.value = Item.sellPrice(0, 4);
} }
public override void UpdateAccessory(Player player, bool hideVisual) public override void UpdateAccessory(Player player, bool hideVisual)

View File

@ -17,7 +17,7 @@ namespace Decimation.Content.Items.Accessories
item.width = 62; item.width = 62;
item.height = 46; item.height = 46;
item.rare = Rarity.Green.GetRarityValue(); item.rare = Rarity.Green.GetRarityValue();
this.item.value = Item.buyPrice(0, 0, 0, 10); this.item.value = Item.sellPrice(0, 0, 0, 10);
} }
protected override List<ModRecipe> GetRecipes() protected override List<ModRecipe> GetRecipes()

View File

@ -21,7 +21,7 @@ namespace Decimation.Content.Items.Accessories
item.width = 24; item.width = 24;
item.height = 32; item.height = 32;
item.rare = Rarity.Lime.GetRarityValue(); item.rare = Rarity.Lime.GetRarityValue();
this.item.value = Item.buyPrice(0, 50); this.item.value = Item.sellPrice(0, 50);
} }
public override void UpdateAccessory(Player player, bool hideVisual) public override void UpdateAccessory(Player player, bool hideVisual)

View File

@ -17,7 +17,7 @@ namespace Decimation.Content.Items.Accessories
item.width = 62; item.width = 62;
item.height = 46; item.height = 46;
item.rare = Rarity.Green.GetRarityValue(); item.rare = Rarity.Green.GetRarityValue();
this.item.value = Item.buyPrice(0, 0, 0, 10); this.item.value = Item.sellPrice(0, 0, 0, 10);
} }
protected override List<ModRecipe> GetRecipes() protected override List<ModRecipe> GetRecipes()

View File

@ -17,7 +17,7 @@ namespace Decimation.Content.Items.Accessories
item.width = 54; item.width = 54;
item.height = 46; item.height = 46;
item.rare = Rarity.Green.GetRarityValue(); item.rare = Rarity.Green.GetRarityValue();
this.item.value = Item.buyPrice(0, 0, 0, 10); this.item.value = Item.sellPrice(0, 0, 0, 10);
} }
protected override List<ModRecipe> GetRecipes() protected override List<ModRecipe> GetRecipes()

View File

@ -16,7 +16,7 @@ namespace Decimation.Content.Items.Accessories
item.width = 32; item.width = 32;
item.height = 32; item.height = 32;
item.rare = Rarity.Rainbow.GetRarityValue(); item.rare = Rarity.Rainbow.GetRarityValue();
item.value = Item.buyPrice(gold: 5); item.value = Item.sellPrice(gold: 5);
item.expert = true; item.expert = true;
} }

View File

@ -19,7 +19,7 @@ namespace Decimation.Content.Items.Accessories
item.width = 32; item.width = 32;
item.height = 32; item.height = 32;
item.rare = Rarity.Green.GetRarityValue(); item.rare = Rarity.Green.GetRarityValue();
this.item.value = Item.buyPrice(0, 0, 0, 10); this.item.value = Item.sellPrice(0, 0, 0, 10);
} }
protected override List<ModRecipe> GetRecipes() protected override List<ModRecipe> GetRecipes()

View File

@ -18,7 +18,7 @@ namespace Decimation.Content.Items.Accessories
item.width = 24; item.width = 24;
item.height = 24; item.height = 24;
item.rare = Rarity.Green.GetRarityValue(); item.rare = Rarity.Green.GetRarityValue();
item.value = Item.buyPrice(0, 0, 2); item.value = Item.sellPrice(0, 0, 2);
item.defense = 1; item.defense = 1;
} }

View File

@ -14,7 +14,7 @@ namespace Decimation.Content.Items.Accessories
item.width = 30; item.width = 30;
item.height = 28; item.height = 28;
item.rare = Rarity.Rainbow.GetRarityValue(); item.rare = Rarity.Rainbow.GetRarityValue();
this.item.value = Item.buyPrice(0, 45); this.item.value = Item.sellPrice(0, 45);
this.item.expert = true; this.item.expert = true;
} }

View File

@ -18,7 +18,7 @@ namespace Decimation.Content.Items.Accessories
item.height = 24; item.height = 24;
item.rare = Rarity.Green.GetRarityValue(); item.rare = Rarity.Green.GetRarityValue();
this.item.value = Item.buyPrice(0, 0, 0, 10); this.item.value = Item.sellPrice(0, 0, 0, 10);
} }
protected override List<ModRecipe> GetRecipes() protected override List<ModRecipe> GetRecipes()

View File

@ -23,7 +23,7 @@ namespace Decimation.Content.Items.Accessories
item.width = 46; item.width = 46;
item.height = 36; item.height = 36;
item.rare = Rarity.Rainbow.GetRarityValue(); item.rare = Rarity.Rainbow.GetRarityValue();
item.value = Item.buyPrice(0, 3); item.value = Item.sellPrice(0, 3);
item.defense = 3; item.defense = 3;
item.shieldSlot = 5; item.shieldSlot = 5;
item.expert = true; item.expert = true;

View File

@ -20,7 +20,7 @@ namespace Decimation.Content.Items.Accessories
{ {
item.width = 26; item.width = 26;
item.height = 32; item.height = 32;
item.value = Item.buyPrice(gold: 19, silver: 70); item.value = Item.sellPrice(gold: 19, silver: 70);
item.rare = Rarity.LightPurple.GetRarityValue(); item.rare = Rarity.LightPurple.GetRarityValue();
} }

View File

@ -18,7 +18,7 @@ namespace Decimation.Content.Items.Accessories
{ {
item.width = 32; item.width = 32;
item.height = 32; item.height = 32;
item.value = Item.buyPrice(gold: 1, silver: 70); item.value = Item.sellPrice(gold: 1, silver: 70);
item.rare = Rarity.Green.GetRarityValue(); item.rare = Rarity.Green.GetRarityValue();
} }

View File

@ -17,7 +17,7 @@ namespace Decimation.Content.Items.Accessories
{ {
item.width = 32; item.width = 32;
item.height = 30; item.height = 30;
item.value = Item.buyPrice(silver: 10); item.value = Item.sellPrice(silver: 10);
item.rare = Rarity.Blue.GetRarityValue(); item.rare = Rarity.Blue.GetRarityValue();
} }

View File

@ -24,7 +24,7 @@ namespace Decimation.Content.Items.Accessories.Wings
item.height = 26; item.height = 26;
item.rare = Rarity.Red.GetRarityValue(); item.rare = Rarity.Red.GetRarityValue();
this.item.value = Item.buyPrice(0, 5); this.item.value = Item.sellPrice(0, 5);
} }
public override void UpdateAccessory(Player player, bool hideVisual) public override void UpdateAccessory(Player player, bool hideVisual)

View File

@ -24,7 +24,7 @@ namespace Decimation.Content.Items.Ammo
item.height = 8; item.height = 8;
item.knockBack = 1; item.knockBack = 1;
item.rare = Rarity.Orange.GetRarityValue(); item.rare = Rarity.Orange.GetRarityValue();
item.value = Item.buyPrice(0, 0, 10); item.value = Item.sellPrice(0, 0, 10);
item.consumable = true; item.consumable = true;
this.item.shootSpeed = 2f; this.item.shootSpeed = 2f;

View File

@ -20,7 +20,7 @@ namespace Decimation.Content.Items.Ammo
item.knockBack = 2; item.knockBack = 2;
item.width = 14; item.width = 14;
item.height = 32; item.height = 32;
item.value = Item.buyPrice(0, 0, 0, 55); item.value = Item.sellPrice(0, 0, 0, 55);
this.item.shootSpeed = 2.5f; this.item.shootSpeed = 2.5f;
} }

View File

@ -25,7 +25,7 @@ namespace Decimation.Content.Items.Ammo
item.rare = Rarity.Orange.GetRarityValue(); item.rare = Rarity.Orange.GetRarityValue();
item.width = 8; item.width = 8;
item.height = 8; item.height = 8;
item.value = Item.buyPrice(0, 0, 10); item.value = Item.sellPrice(0, 0, 10);
item.consumable = true; item.consumable = true;
this.item.shootSpeed = 2f; this.item.shootSpeed = 2f;

View File

@ -17,7 +17,7 @@ namespace Decimation.Content.Items.Boss.Arachnus
{ {
item.width = 32; item.width = 32;
item.height = 32; item.height = 32;
item.value = Item.buyPrice(0, 45); item.value = Item.sellPrice(0, 45);
item.rare = Rarity.Red.GetRarityValue(); item.rare = Rarity.Red.GetRarityValue();
item.consumable = true; item.consumable = true;
item.useStyle = 4; item.useStyle = 4;

View File

@ -16,7 +16,7 @@ namespace Decimation.Content.Items.Boss.Arachnus
item.width = 20; item.width = 20;
item.height = 36; item.height = 36;
item.consumable = true; item.consumable = true;
item.value = Item.buyPrice(0, 45); item.value = Item.sellPrice(0, 45);
item.rare = Rarity.Red.GetRarityValue(); item.rare = Rarity.Red.GetRarityValue();
item.maxStack = 1; item.maxStack = 1;
} }

View File

@ -16,7 +16,7 @@ namespace Decimation.Content.Items.Boss.DuneWyrm
{ {
item.width = 32; item.width = 32;
item.height = 32; item.height = 32;
item.value = Item.buyPrice(0, 0, 13); item.value = Item.sellPrice(0, 0, 13);
item.useStyle = 4; item.useStyle = 4;
item.useAnimation = 30; item.useAnimation = 30;
item.useTime = 30; item.useTime = 30;

View File

@ -14,7 +14,7 @@ namespace Decimation.Content.Items.Misc
item.width = 30; item.width = 30;
item.height = 40; item.height = 40;
item.rare = Rarity.Green.GetRarityValue(); item.rare = Rarity.Green.GetRarityValue();
item.value = Item.buyPrice(gold: 5); item.value = Item.sellPrice(gold: 5);
item.useStyle = 1; item.useStyle = 1;
item.useTime = 20; item.useTime = 20;
item.useAnimation = 20; item.useAnimation = 20;

View File

@ -21,7 +21,7 @@ namespace Decimation.Content.Items.Misc.CondensedSouls
item.width = 44; item.width = 44;
item.height = 44; item.height = 44;
item.value = Item.buyPrice(0, 50); item.value = Item.sellPrice(0, 50);
item.rare = Rarity.Red.GetRarityValue(); item.rare = Rarity.Red.GetRarityValue();
ItemID.Sets.AnimatesAsSoul[this.item.type] = true; ItemID.Sets.AnimatesAsSoul[this.item.type] = true;

View File

@ -14,7 +14,7 @@ namespace Decimation.Content.Items.Misc
item.width = 30; item.width = 30;
item.height = 40; item.height = 40;
item.consumable = true; item.consumable = true;
item.value = Item.buyPrice(gold: 2, silver: 50); item.value = Item.sellPrice(gold: 2, silver: 50);
item.rare = Rarity.Green.GetRarityValue(); item.rare = Rarity.Green.GetRarityValue();
item.useStyle = 1; item.useStyle = 1;
item.useTime = 20; item.useTime = 20;

View File

@ -16,7 +16,7 @@ namespace Decimation.Content.Items.Misc
item.width = 28; item.width = 28;
item.height = 20; item.height = 20;
item.rare = Rarity.Gray.GetRarityValue(); item.rare = Rarity.Gray.GetRarityValue();
item.value = Item.buyPrice(0, 2); item.value = Item.sellPrice(0, 2);
this.item.maxStack = 99; this.item.maxStack = 99;
} }

View File

@ -21,7 +21,7 @@ namespace Decimation.Content.Items.Misc.Souls
item.height = refItem.height; item.height = refItem.height;
item.width = 20; item.width = 20;
item.height = 20; item.height = 20;
item.value = Item.buyPrice(silver: 2); item.value = Item.sellPrice(silver: 2);
this.item.maxStack = 999; this.item.maxStack = 999;

View File

@ -16,7 +16,7 @@ namespace Decimation.Content.Items.Misc.Souls
{ {
item.width = 22; item.width = 22;
item.height = 24; item.height = 24;
item.value = Item.buyPrice(0, 0, 1); item.value = Item.sellPrice(0, 0, 1);
item.rare = Rarity.Orange.GetRarityValue(); item.rare = Rarity.Orange.GetRarityValue();
this.item.maxStack = 999; this.item.maxStack = 999;

View File

@ -14,7 +14,7 @@ namespace Decimation.Content.Items.Misc
{ {
item.width = 26; item.width = 26;
item.height = 36; item.height = 36;
item.value = Item.buyPrice(silver: 50); item.value = Item.sellPrice(silver: 50);
item.rare = Rarity.Yellow.GetRarityValue(); item.rare = Rarity.Yellow.GetRarityValue();
} }
} }

View File

@ -15,7 +15,7 @@ namespace Decimation.Content.Items.Placeable.DuneWyrm
item.width = 32; item.width = 32;
item.height = 32; item.height = 32;
item.maxStack = 99; item.maxStack = 99;
item.value = Item.buyPrice(0, 5); item.value = Item.sellPrice(0, 5);
} }
} }
} }

View File

@ -17,7 +17,7 @@ namespace Decimation.Content.Items.Placeable
item.width = 44; item.width = 44;
item.height = 20; item.height = 20;
item.maxStack = 1; item.maxStack = 1;
item.value = Item.buyPrice(gold: 1); item.value = Item.sellPrice(gold: 1);
} }
protected override ModRecipe GetRecipe() protected override ModRecipe GetRecipe()

View File

@ -15,7 +15,7 @@ namespace Decimation.Content.Items.Placeable.ShrineoftheMoltenOne
item.width = 14; item.width = 14;
item.height = 28; item.height = 28;
this.item.maxStack = 99; this.item.maxStack = 99;
item.value = Item.buyPrice(0, 0, 1, 50); item.value = Item.sellPrice(0, 0, 1, 50);
} }
} }
} }

View File

@ -24,6 +24,7 @@ namespace Decimation.Content.Items.Potions
item.useTurn = true; item.useTurn = true;
item.useStyle = 2; item.useStyle = 2;
item.rare = Rarity.Blue.GetRarityValue(); item.rare = Rarity.Blue.GetRarityValue();
item.value = Item.sellPrice(copper: 50);
} }
public override bool UseItem(Player player) public override bool UseItem(Player player)

View File

@ -1,5 +1,7 @@
using Decimation.Content.Buffs.Buffs; using Decimation.Content.Buffs.Buffs;
using Decimation.Lib.Items; using Decimation.Lib.Items;
using Decimation.Lib.Util;
using Decimation.Lib.Util.Builder;
using Terraria; using Terraria;
using Terraria.ID; using Terraria.ID;
using Terraria.ModLoader; using Terraria.ModLoader;
@ -18,20 +20,22 @@ namespace Decimation.Content.Items.Potions
protected override void InitPotion() protected override void InitPotion()
{ {
item.value = Item.buyPrice(0, 1); item.width = 24;
item.height = 32;
item.rare = Rarity.Orange.GetRarityValue();
item.value = Item.sellPrice(silver: 62);
} }
protected override ModRecipe GetRecipe() protected override ModRecipe GetRecipe()
{ {
ModRecipe recipe = GetNewModRecipe(this, 1, TileID.AlchemyTable); return new RecipeBuilder(this)
.WithIngredient(ItemID.SummoningPotion)
recipe.AddIngredient(ItemID.SummoningPotion); .WithIngredient(ItemID.SoulofFlight, 20)
recipe.AddIngredient(ItemID.SoulofFlight, 20); .WithIngredient(ItemID.VariegatedLardfish)
recipe.AddIngredient(ItemID.VariegatedLardfish); .WithIngredient(ItemID.MagicPowerPotion, 2)
recipe.AddIngredient(ItemID.MagicPowerPotion, 2); .WithIngredient(ItemID.RottenChunk, 2)
recipe.AddIngredient(ItemID.RottenChunk, 2); .WithIngredient(TileID.AlchemyTable)
.Build();
return recipe;
} }
} }
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 356 B

After

Width:  |  Height:  |  Size: 525 B

View File

@ -1,5 +1,6 @@
using Decimation.Lib.Items; using Decimation.Lib.Items;
using Decimation.Lib.Util; using Decimation.Lib.Util;
using Decimation.Lib.Util.Builder;
using Terraria; using Terraria;
using Terraria.ID; using Terraria.ID;
using Terraria.ModLoader; using Terraria.ModLoader;
@ -16,7 +17,7 @@ namespace Decimation.Content.Items.Potions
protected override void InitPotion() protected override void InitPotion()
{ {
item.value = Item.buyPrice(0, 0, 15); item.value = Item.sellPrice(0, 0, 8);
item.rare = Rarity.Blue.GetRarityValue(); item.rare = Rarity.Blue.GetRarityValue();
} }
@ -28,14 +29,13 @@ namespace Decimation.Content.Items.Potions
protected override ModRecipe GetRecipe() protected override ModRecipe GetRecipe()
{ {
ModRecipe recipe = GetNewModRecipe(this, 1, TileID.AlchemyTable); return new RecipeBuilder(this)
.WithIngredient(ItemID.Mushroom)
recipe.AddIngredient(ItemID.Mushroom); .WithIngredient(ItemID.GlowingMushroom)
recipe.AddIngredient(ItemID.GlowingMushroom); .WithIngredient(ItemID.BottledHoney)
recipe.AddIngredient(ItemID.BottledHoney); .WithIngredient(ItemID.FallenStar)
recipe.AddIngredient(ItemID.FallenStar); .WithStation(TileID.AlchemyTable)
.Build();
return recipe;
} }
} }
} }

View File

@ -17,9 +17,10 @@ namespace Decimation.Content.Items.Potions
{ {
item.CloneDefaults(ModContent.ItemType<Antidote>()); item.CloneDefaults(ModContent.ItemType<Antidote>());
item.width = 24; item.width = 20;
item.height = 26; item.height = 26;
item.rare = Rarity.Orange.GetRarityValue(); item.rare = Rarity.Orange.GetRarityValue();
item.value = Item.sellPrice(silver: 52);
} }
public override bool UseItem(Player player) public override bool UseItem(Player player)
@ -35,9 +36,9 @@ namespace Decimation.Content.Items.Potions
protected override ModRecipe GetRecipe() protected override ModRecipe GetRecipe()
{ {
return new RecipeBuilder(this, 5) return new RecipeBuilder(this, 5)
.WithIngredient(ModContent.ItemType<Antidote>())
.WithIngredient(ItemID.ManaPotion) .WithIngredient(ItemID.ManaPotion)
.WithIngredient(ItemID.GreaterHealingPotion) .WithIngredient(ItemID.GreaterHealingPotion)
.WithIngredient(ModContent.ItemType<Antidote>())
.WithIngredient(ModContent.ItemType<EnchantedMushroom>(), 5) .WithIngredient(ModContent.ItemType<EnchantedMushroom>(), 5)
.WithStation(TileID.AlchemyTable) .WithStation(TileID.AlchemyTable)
.Build(); .Build();

Binary file not shown.

Before

Width:  |  Height:  |  Size: 367 B

After

Width:  |  Height:  |  Size: 415 B

View File

@ -1,5 +1,6 @@
using Decimation.Content.Buffs.Buffs; using Decimation.Content.Buffs.Buffs;
using Decimation.Lib.Items; using Decimation.Lib.Items;
using Decimation.Lib.Util.Builder;
using Terraria; using Terraria;
using Terraria.ID; using Terraria.ID;
using Terraria.ModLoader; using Terraria.ModLoader;
@ -18,19 +19,20 @@ namespace Decimation.Content.Items.Potions
protected override void InitPotion() protected override void InitPotion()
{ {
item.value = Item.buyPrice(0, 0, 80); item.width = 20;
item.height = 34;
item.value = Item.sellPrice(gold: 8);
} }
protected override ModRecipe GetRecipe() protected override ModRecipe GetRecipe()
{ {
ModRecipe recipe = GetNewModRecipe(this, 1, TileID.AlchemyTable); return new RecipeBuilder(this)
.WithIngredient(ItemID.ManaRegenerationPotion)
recipe.AddIngredient(ItemID.ManaRegenerationPotion); .WithIngredient(ItemID.ManaCrystal)
recipe.AddIngredient(ItemID.ManaCrystal); .WithIngredient(ItemID.SoulofMight, 10)
recipe.AddIngredient(ItemID.SoulofMight, 10); .WithIngredient(ItemID.BottledHoney)
recipe.AddIngredient(ItemID.BottledHoney); .WithStation(TileID.AlchemyTable)
.Build();
return recipe;
} }
} }
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 345 B

After

Width:  |  Height:  |  Size: 524 B

View File

@ -17,7 +17,7 @@ namespace Decimation.Content.Items.Tools
item.width = 16; item.width = 16;
item.height = 16; item.height = 16;
item.value = Item.buyPrice(0, 0, 1); item.value = Item.sellPrice(0, 0, 1);
this.item.knockBack = 5; this.item.knockBack = 5;
item.useTime = 14; item.useTime = 14;
item.useAnimation = 14; item.useAnimation = 14;

View File

@ -20,7 +20,7 @@ namespace Decimation.Content.Items.Tools
item.useTime = 10; item.useTime = 10;
item.useAnimation = 25; item.useAnimation = 25;
this.item.knockBack = 5; this.item.knockBack = 5;
item.value = Item.buyPrice(0, 0, 10); item.value = Item.sellPrice(0, 0, 10);
item.rare = Rarity.Green.GetRarityValue(); item.rare = Rarity.Green.GetRarityValue();
item.UseSound = SoundID.Item1; item.UseSound = SoundID.Item1;
} }

View File

@ -21,7 +21,7 @@ namespace Decimation.Content.Items.Tools
item.useTime = 20; item.useTime = 20;
item.useAnimation = 20; item.useAnimation = 20;
this.item.knockBack = 5; this.item.knockBack = 5;
item.value = Item.buyPrice(0, 0, 10); item.value = Item.sellPrice(0, 0, 10);
item.rare = Rarity.Green.GetRarityValue(); item.rare = Rarity.Green.GetRarityValue();
this.item.crit = 3; this.item.crit = 3;
item.UseSound = SoundID.Item1; item.UseSound = SoundID.Item1;

View File

@ -24,7 +24,7 @@ namespace Decimation.Content.Items.Weapons.Arachnus
item.crit *= 2; item.crit *= 2;
item.knockBack *= 2; item.knockBack *= 2;
item.rare = 10; item.rare = 10;
item.value = Item.buyPrice(0, 45); item.value = Item.sellPrice(0, 45);
} }
public override void OnHitNPC(Player player, NPC target, int damage, float knockBack, bool crit) public override void OnHitNPC(Player player, NPC target, int damage, float knockBack, bool crit)

View File

@ -15,7 +15,7 @@ namespace Decimation.Content.Items.Weapons.Arachnus
{ {
item.width = 42; item.width = 42;
item.height = 46; item.height = 46;
item.value = Item.buyPrice(0, 45); item.value = Item.sellPrice(0, 45);
item.rare = Rarity.Red.GetRarityValue(); item.rare = Rarity.Red.GetRarityValue();
item.useTime = 15; item.useTime = 15;
item.useAnimation = 15; item.useAnimation = 15;

View File

@ -22,7 +22,7 @@ namespace Decimation.Content.Items.Weapons.Arachnus
item.knockBack = 6; item.knockBack = 6;
item.useTime = 10; item.useTime = 10;
item.useAnimation = 10; item.useAnimation = 10;
item.value = Item.buyPrice(0, 45); item.value = Item.sellPrice(0, 45);
item.rare = Rarity.Red.GetRarityValue(); item.rare = Rarity.Red.GetRarityValue();
item.shootSpeed = 15f; item.shootSpeed = 15f;
} }

View File

@ -21,7 +21,7 @@ namespace Decimation.Content.Items.Weapons.Bloodshot
{ {
item.width = 28; item.width = 28;
item.height = 28; item.height = 28;
item.value = Item.buyPrice(0, 2); item.value = Item.sellPrice(0, 2);
item.rare = Rarity.Green.GetRarityValue(); item.rare = Rarity.Green.GetRarityValue();
item.useStyle = 5; item.useStyle = 5;
item.shootSpeed = 7f; item.shootSpeed = 7f;

View File

@ -20,7 +20,7 @@ namespace Decimation.Content.Items.Weapons.Bloodshot
{ {
item.width = 22; item.width = 22;
item.height = 38; item.height = 38;
item.value = Item.buyPrice(0, 2); item.value = Item.sellPrice(0, 2);
item.rare = Rarity.Green.GetRarityValue(); item.rare = Rarity.Green.GetRarityValue();
item.useAmmo = AmmoID.Arrow; item.useAmmo = AmmoID.Arrow;
item.shootSpeed = 6.8f; item.shootSpeed = 6.8f;

View File

@ -28,7 +28,7 @@ namespace Decimation.Content.Items.Weapons.Bloodshot
item.shootSpeed = 5f; item.shootSpeed = 5f;
item.rare = Rarity.Green.GetRarityValue(); item.rare = Rarity.Green.GetRarityValue();
item.knockBack = 5; item.knockBack = 5;
item.value = Item.buyPrice(0, 2); item.value = Item.sellPrice(0, 2);
} }
public override void UpdateInventory(Player player) public override void UpdateInventory(Player player)

View File

@ -23,7 +23,7 @@ namespace Decimation.Content.Items.Weapons.DuneWyrm
item.width = 42; item.width = 42;
item.height = 42; item.height = 42;
item.rare = Rarity.LightRed.GetRarityValue(); item.rare = Rarity.LightRed.GetRarityValue();
item.value = Item.buyPrice(gold: 2); item.value = Item.sellPrice(gold: 2);
} }
protected override List<ModRecipe> GetRecipes() protected override List<ModRecipe> GetRecipes()

View File

@ -29,7 +29,7 @@ namespace Decimation.Content.Items.Weapons.DuneWyrm
item.useAnimation = 24; item.useAnimation = 24;
item.crit = 15; item.crit = 15;
item.rare = Rarity.LightRed.GetRarityValue(); item.rare = Rarity.LightRed.GetRarityValue();
item.value = Item.buyPrice(gold: 1, silver: 50); item.value = Item.sellPrice(gold: 1, silver: 50);
item.UseSound = SoundID.Item28; item.UseSound = SoundID.Item28;
} }

View File

@ -29,7 +29,7 @@ namespace Decimation.Content.Items.Weapons.DuneWyrm
item.crit = 6; item.crit = 6;
item.shootSpeed = 10f; item.shootSpeed = 10f;
item.rare = Rarity.LightRed.GetRarityValue(); item.rare = Rarity.LightRed.GetRarityValue();
item.value = Item.buyPrice(gold: 2, silver: 10); item.value = Item.sellPrice(gold: 2, silver: 10);
} }
protected override List<ModRecipe> GetRecipes() protected override List<ModRecipe> GetRecipes()

View File

@ -26,7 +26,7 @@ namespace Decimation.Content.Items.Weapons
item.useTime = 28; item.useTime = 28;
item.useAnimation = 28; item.useAnimation = 28;
item.knockBack = 5; item.knockBack = 5;
item.value = Item.buyPrice(gold: 4, silver: 70); item.value = Item.sellPrice(gold: 4, silver: 70);
item.rare = 2; item.rare = 2;
item.crit = 7; item.crit = 7;
item.shootSpeed = 10f; item.shootSpeed = 10f;

View File

@ -20,7 +20,7 @@ namespace Decimation.Content.Items.Weapons
item.useTime = 26; item.useTime = 26;
item.useAnimation = 26; item.useAnimation = 26;
item.knockBack = 5; item.knockBack = 5;
item.value = Item.buyPrice(0, 0, 40); item.value = Item.sellPrice(0, 0, 40);
item.rare = Rarity.Green.GetRarityValue(); item.rare = Rarity.Green.GetRarityValue();
item.crit = 4; item.crit = 4;
item.autoReuse = true; item.autoReuse = true;

View File

@ -22,7 +22,7 @@ namespace Decimation.Content.Items.Weapons
item.CloneDefaults(ItemID.SlimeGun); item.CloneDefaults(ItemID.SlimeGun);
item.width = 46; item.width = 46;
item.height = 24; item.height = 24;
item.value = Item.buyPrice(silver: 40); item.value = Item.sellPrice(silver: 40);
item.rare = Rarity.Green.GetRarityValue(); item.rare = Rarity.Green.GetRarityValue();
} }

View File

@ -19,7 +19,7 @@ namespace Decimation.Content.Items.Weapons
item.useTime = 25; item.useTime = 25;
item.useAnimation = 25; item.useAnimation = 25;
item.knockBack = 5; item.knockBack = 5;
this.item.value = Item.buyPrice(silver: 40); this.item.value = Item.sellPrice(silver: 40);
item.rare = Rarity.Green.GetRarityValue(); item.rare = Rarity.Green.GetRarityValue();
item.autoReuse = true; item.autoReuse = true;
this.item.expert = false; this.item.expert = false;

View File

@ -30,7 +30,7 @@ namespace Decimation.Content.Items.Weapons
item.useAnimation = 10; item.useAnimation = 10;
item.rare = 10; item.rare = 10;
item.autoReuse = true; item.autoReuse = true;
item.value = Item.buyPrice(0, 60); item.value = Item.sellPrice(0, 60);
} }
protected override ModRecipe GetRecipe() protected override ModRecipe GetRecipe()

View File

@ -20,7 +20,7 @@ namespace Decimation.Content.Items.Weapons
item.useAnimation = 88; item.useAnimation = 88;
item.crit = 14; item.crit = 14;
item.knockBack = 7; item.knockBack = 7;
item.value = Item.buyPrice(gold: 45); item.value = Item.sellPrice(gold: 45);
item.rare = Rarity.LightPurple.GetRarityValue(); item.rare = Rarity.LightPurple.GetRarityValue();
item.autoReuse = true; item.autoReuse = true;
} }

View File

@ -20,7 +20,7 @@ namespace Decimation.Content.Items.Weapons
item.crit = 14; item.crit = 14;
item.knockBack = 12; item.knockBack = 12;
item.useStyle = 5; item.useStyle = 5;
item.value = Item.buyPrice(gold: 45); item.value = Item.sellPrice(gold: 45);
item.rare = Rarity.LightPurple.GetRarityValue(); item.rare = Rarity.LightPurple.GetRarityValue();
item.noUseGraphic = true; item.noUseGraphic = true;
item.useTurn = true; item.useTurn = true;

View File

@ -28,7 +28,7 @@ namespace Decimation.Content.Items.Weapons
item.UseSound = SoundID.Item5; item.UseSound = SoundID.Item5;
item.shootSpeed = 25; item.shootSpeed = 25;
item.autoReuse = true; item.autoReuse = true;
item.value = Item.buyPrice(gold: 45); item.value = Item.sellPrice(gold: 45);
item.rare = Rarity.LightPurple.GetRarityValue(); item.rare = Rarity.LightPurple.GetRarityValue();
} }

View File

@ -27,7 +27,7 @@ namespace Decimation.Content.Items.Weapons
item.useTime = 20; item.useTime = 20;
item.useAnimation = 20; item.useAnimation = 20;
item.shootSpeed = 5f; item.shootSpeed = 5f;
item.value = Item.buyPrice(0, 3); item.value = Item.sellPrice(0, 3);
item.rare = Rarity.Green.GetRarityValue(); item.rare = Rarity.Green.GetRarityValue();
item.autoReuse = true; item.autoReuse = true;
} }

View File

@ -18,7 +18,7 @@ namespace Decimation.Content.NPCs.DuneWyrm.AncientTombCrawler
npc.defense = 5; npc.defense = 5;
npc.width = 38; npc.width = 38;
npc.height = 38; npc.height = 38;
npc.value = Item.buyPrice(gold: 3); npc.value = Item.sellPrice(gold: 3);
npc.npcSlots = 1f; npc.npcSlots = 1f;
npc.aiStyle = -1; npc.aiStyle = -1;
npc.boss = true; npc.boss = true;

View File

@ -19,7 +19,7 @@ namespace Decimation.Content.NPCs.DuneWyrm.AncientTombCrawler
npc.defense = 5; npc.defense = 5;
npc.width = 38; npc.width = 38;
npc.height = 38; npc.height = 38;
npc.value = Item.buyPrice(gold: 3); npc.value = Item.sellPrice(gold: 3);
npc.npcSlots = 1f; npc.npcSlots = 1f;
npc.aiStyle = -1; npc.aiStyle = -1;
npc.dontTakeDamage = true; npc.dontTakeDamage = true;

View File

@ -295,7 +295,7 @@ namespace Decimation.Content.NPCs.DuneWyrm
headType = ModContent.NPCType<DuneWyrmHead>(); headType = ModContent.NPCType<DuneWyrmHead>();
speed = BaseSpeed; speed = BaseSpeed;
turnSpeed = 0.045f; turnSpeed = 0.045f;
npc.value = Item.buyPrice(gold: 16); npc.value = Item.sellPrice(gold: 16);
npc.scale = 1.5f; npc.scale = 1.5f;
npc.lavaImmune = true; npc.lavaImmune = true;
npc.noGravity = true; npc.noGravity = true;

View File

@ -82,7 +82,7 @@ namespace Decimation.Content.Projectiles.DuneWyrm
TailType = ModContent.ProjectileType<AncientTombCrawlerTail>(); TailType = ModContent.ProjectileType<AncientTombCrawlerTail>();
BodyType = ModContent.ProjectileType<AncientTombCrawlerBody>(); BodyType = ModContent.ProjectileType<AncientTombCrawlerBody>();
HeadType = ModContent.ProjectileType<AncientTombCrawlerHead>(); HeadType = ModContent.ProjectileType<AncientTombCrawlerHead>();
Speed = 8f; Speed = 5f;
TurnSpeed = 0.1f; TurnSpeed = 0.1f;
} }