The bloody lunar tablet could be used at day time
Fixed the sling and the slingshot Balanced the sling and the slingshot
This commit is contained in:
parent
0ae1deed08
commit
05149c4341
@ -10,7 +10,7 @@ namespace Decimation.Content.Items.Ammo
|
||||
protected override string ItemName => "Pebble";
|
||||
protected override string ItemTooltip => "For use with slings and slingshots";
|
||||
protected override string Projectile => "Pebble";
|
||||
protected override int Ammo => ModContent.ItemType<Pebble>();
|
||||
protected override int Ammo => item.type;
|
||||
protected override int Damages => 11;
|
||||
|
||||
protected override void InitAmmo()
|
||||
|
||||
@ -19,8 +19,7 @@ namespace Decimation.Content.Items.Misc
|
||||
item.useTime = 20;
|
||||
item.useAnimation = 20;
|
||||
item.consumable = true;
|
||||
|
||||
this.item.maxStack = 1;
|
||||
item.maxStack = 1;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
|
||||
@ -1,6 +1,9 @@
|
||||
using Decimation.Content.Items.Ammo;
|
||||
using Decimation.Lib.Items;
|
||||
using Decimation.Lib.Util;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ModLoader.Config;
|
||||
|
||||
namespace Decimation.Content.Items.Weapons
|
||||
{
|
||||
@ -8,7 +11,7 @@ namespace Decimation.Content.Items.Weapons
|
||||
{
|
||||
protected override string ItemName => "Sling";
|
||||
protected override string ItemTooltip => "Uses pebbles and marbles as ammo";
|
||||
protected override DamageType DamagesType => DamageType.Ranged;
|
||||
protected override DamageType DamagesType => DamageType.Throw;
|
||||
protected override int Damages => 9;
|
||||
protected override string Ammo => "Pebble";
|
||||
|
||||
@ -16,13 +19,13 @@ namespace Decimation.Content.Items.Weapons
|
||||
{
|
||||
item.width = 30;
|
||||
item.height = 22;
|
||||
item.useTime = 16;
|
||||
item.useAnimation = 16;
|
||||
item.knockBack = 6;
|
||||
item.useTime = 25;
|
||||
item.useAnimation = 25;
|
||||
item.rare = Rarity.Orange.GetRarityValue();
|
||||
item.UseSound = SoundID.Item5;
|
||||
item.shootSpeed = 10f;
|
||||
item.shootSpeed = 7.5f;
|
||||
item.crit = 10;
|
||||
item.shoot = 1;
|
||||
item.useTurn = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -12,22 +12,21 @@ namespace Decimation.Content.Items.Weapons
|
||||
protected override string ItemTooltip => "Uses pebbles and marbles as ammo";
|
||||
protected override DamageType DamagesType => DamageType.Throw;
|
||||
protected override int Damages => 7;
|
||||
protected override string Ammo => "Pebble";
|
||||
|
||||
protected override void InitWeapon()
|
||||
{
|
||||
this.item.noMelee = true;
|
||||
item.width = 32;
|
||||
item.height = 32;
|
||||
item.useTime = 16;
|
||||
item.useAnimation = 16;
|
||||
item.useStyle = 5;
|
||||
this.item.shoot = 1;
|
||||
item.useAmmo = ModContent.ItemType<Pebble>();
|
||||
item.knockBack = 6;
|
||||
item.shoot = 1;
|
||||
item.rare = Rarity.Orange.GetRarityValue();
|
||||
item.UseSound = SoundID.Item5;
|
||||
item.shootSpeed = 10f;
|
||||
item.shootSpeed = 5f;
|
||||
item.crit = 10;
|
||||
item.useTurn = false;
|
||||
}
|
||||
|
||||
protected override ModRecipe GetRecipe()
|
||||
|
||||
@ -1,10 +1,5 @@
|
||||
using Decimation.Content.Items.Weapons;
|
||||
using Decimation.Lib.Items;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Content.Projectiles
|
||||
{
|
||||
@ -23,6 +18,7 @@ namespace Decimation.Content.Projectiles
|
||||
projectile.scale = 0.625f;
|
||||
projectile.aiStyle = 1;
|
||||
DamageType = DecimationWeapon.DamageType.Ranged;
|
||||
projectile.knockBack = 6;
|
||||
projectile.penetrate = 5;
|
||||
projectile.timeLeft = 600;
|
||||
projectile.alpha = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user