Updated Titanic Pike's sprite.

This commit is contained in:
FyloZ 2020-06-30 15:54:17 -04:00
parent 7c760fc0f5
commit 60af568958
4 changed files with 10 additions and 13 deletions

View File

@ -1,4 +1,5 @@
using Decimation.Content.Items.Ores; using Decimation.Content.Items.Ores;
using Decimation.Content.Projectiles;
using Decimation.Content.Tiles; using Decimation.Content.Tiles;
using Decimation.Lib.Items; using Decimation.Lib.Items;
using Decimation.Lib.Util; using Decimation.Lib.Util;
@ -12,20 +13,20 @@ namespace Decimation.Content.Items.Weapons
{ {
protected override string ItemName => "Titanic Pike"; protected override string ItemName => "Titanic Pike";
protected override int Damages => 120; protected override int Damages => 120;
protected override string ProjectileName => "TitanicPikeProjectile"; protected override int ProjectileId => ModContent.ProjectileType<TitanicPikeProjectile>();
protected override void InitWeapon() protected override void InitWeapon()
{ {
item.crit = 14; item.crit = 14;
item.knockBack = 12; item.knockBack = 12;
item.useStyle = 5; item.useStyle = 5;
this.item.value = Item.buyPrice(gold: 45); item.value = Item.buyPrice(gold: 45);
item.rare = Rarity.LightPurple.GetRarityValue(); item.rare = Rarity.LightPurple.GetRarityValue();
this.item.noUseGraphic = true; item.noUseGraphic = true;
this.item.useTurn = true; item.useTurn = true;
item.autoReuse = true; item.autoReuse = true;
item.width = 94; item.width = 88;
item.height = 94; item.height = 88;
item.useAnimation = 18; item.useAnimation = 18;
item.useTime = 24; item.useTime = 24;
item.shootSpeed = 3.7f; item.shootSpeed = 3.7f;
@ -34,7 +35,7 @@ namespace Decimation.Content.Items.Weapons
public override bool CanUseItem(Player player) public override bool CanUseItem(Player player)
{ {
// Ensures no more than one spear can be thrown out, use this when using autoReuse // Ensures no more than one spear can be thrown out, use this when using autoReuse
return player.ownedProjectileCounts[this.item.shoot] < 1; return player.ownedProjectileCounts[item.shoot] < 1;
} }
protected override ModRecipe GetRecipe() protected override ModRecipe GetRecipe()

Binary file not shown.

Before

Width:  |  Height:  |  Size: 828 B

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -1,8 +1,5 @@
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework;
using System;
using Terraria; using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Decimation.Content.Projectiles namespace Decimation.Content.Projectiles
{ {
@ -10,13 +7,12 @@ namespace Decimation.Content.Projectiles
{ {
protected override void Init() protected override void Init()
{ {
projectile.width = 18; projectile.width = 88;
projectile.height = 18; projectile.height = 88;
projectile.aiStyle = 19; projectile.aiStyle = 19;
projectile.penetrate = -1; projectile.penetrate = -1;
projectile.scale = 1.3f; projectile.scale = 1.3f;
projectile.alpha = 0; projectile.alpha = 0;
projectile.hide = true; projectile.hide = true;
projectile.ownerHitCheck = true; projectile.ownerHitCheck = true;
projectile.tileCollide = false; projectile.tileCollide = false;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB