Updated The Scythe

This commit is contained in:
FyloZ 2020-07-19 19:17:47 -04:00
parent a14c036ffb
commit 847841c181
6 changed files with 19 additions and 18 deletions

View File

@ -11,9 +11,9 @@ using Terraria.ModLoader;
namespace Decimation.Content.Items.Ammo namespace Decimation.Content.Items.Ammo
{ {
internal class TitanicStyngerBolt : DecimationAmmo internal class ScytheStyngerBolt : DecimationAmmo
{ {
protected override string ItemName => "Titanic Stynger Bolt"; protected override string ItemName => "The Scythe Stynger Bolt";
protected override string ItemTooltip => "Explodes into deadly shrapnel."; protected override string ItemTooltip => "Explodes into deadly shrapnel.";
protected override string Projectile => "TitanicStyngerBolt"; protected override string Projectile => "TitanicStyngerBolt";
protected override int Ammo => AmmoID.StyngerBolt; protected override int Ammo => AmmoID.StyngerBolt;

View File

Before

Width:  |  Height:  |  Size: 318 B

After

Width:  |  Height:  |  Size: 318 B

View File

@ -1,8 +1,10 @@
using Decimation.Content.Items.Ores; using Decimation.Content.Items.Misc.ConcentratedSouls;
using Decimation.Content.Items.Ores;
using Decimation.Content.Items.Weapons.Arachnus; using Decimation.Content.Items.Weapons.Arachnus;
using Decimation.Content.Projectiles.Item.Weapon; using Decimation.Content.Projectiles.Item.Weapon;
using Decimation.Content.Tiles; using Decimation.Content.Tiles;
using Decimation.Lib.Items; using Decimation.Lib.Items;
using Decimation.Lib.Util.Builder;
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework;
using Terraria; using Terraria;
using Terraria.ID; using Terraria.ID;
@ -10,13 +12,13 @@ using Terraria.ModLoader;
namespace Decimation.Content.Items.Weapons namespace Decimation.Content.Items.Weapons
{ {
internal class TitanicGatliStynger : DecimationWeapon internal class Scythe : DecimationWeapon
{ {
protected override string ItemName => "Titanic Gatli Stynger"; protected override string ItemName => "The Scythe";
protected override string ItemTooltip => "Feel the rage of Kronos by your side."; protected override string ItemTooltip => "Feel the rage of Kronos by your side.";
protected override DamageType DamagesType => DamageType.Ranged; protected override DamageType DamagesType => DamageType.Ranged;
protected override int Damages => 950; protected override int Damages => 950;
protected override int ProjectileId => ModContent.ProjectileType<TitanicStyngerBolt>(); protected override int ProjectileId => ModContent.ProjectileType<ScytheStyngerBolt>();
protected override void InitWeapon() protected override void InitWeapon()
{ {
@ -30,25 +32,24 @@ 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.sellPrice(0, 60); item.value = Item.sellPrice(gold: 60);
} }
protected override ModRecipe GetRecipe() protected override ModRecipe GetRecipe()
{ {
ModRecipe recipe = GetNewModRecipe(this, 1, ModContent.TileType<TitanForge>()); return new RecipeBuilder(this)
.WithIngredient(ModContent.ItemType<ChainStynger>())
recipe.AddIngredient(ModContent.ItemType<ChainStynger>()); .WithIngredient(ModContent.ItemType<TitaniteBar>(), 15)
recipe.AddIngredient(ModContent.ItemType<TitaniteBar>(), 15); .WithIngredient(ModContent.ItemType<DenziumBar>())
// TODO recipe.AddIngredient(null, "CondensedMight", 5); .WithIngredient(ModContent.ItemType<ConcentratedMight>(), 5)
recipe.AddIngredient(ModContent.ItemType<DenziumBar>()); .WithStation(ModContent.TileType<TitanForge>())
.Build();
return recipe;
} }
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY,
ref int type, ref int damage, ref float knockBack) ref int type, ref int damage, ref float knockBack)
{ {
type = ModContent.ProjectileType<TitanicStyngerBolt>(); type = ModContent.ProjectileType<ScytheStyngerBolt>();
return true; return true;
} }
} }

View File

Before

Width:  |  Height:  |  Size: 825 B

After

Width:  |  Height:  |  Size: 825 B

View File

@ -9,11 +9,11 @@ using Terraria.ModLoader;
namespace Decimation.Content.Projectiles.Item.Weapon namespace Decimation.Content.Projectiles.Item.Weapon
{ {
internal class TitanicStyngerBolt : DecimationProjectile internal class ScytheStyngerBolt : DecimationProjectile
{ {
public override void SetStaticDefaults() public override void SetStaticDefaults()
{ {
DisplayName.SetDefault("Titanic Stynger Bolt"); DisplayName.SetDefault("The Scythe Stynger Bolt");
ProjectileID.Sets.TrailCacheLength[projectile.type] = 5; ProjectileID.Sets.TrailCacheLength[projectile.type] = 5;
ProjectileID.Sets.TrailingMode[projectile.type] = 0; ProjectileID.Sets.TrailingMode[projectile.type] = 0;
} }

View File

Before

Width:  |  Height:  |  Size: 303 B

After

Width:  |  Height:  |  Size: 303 B