Fix damage typing for melee weapons. Fixed recursion bug. Cleaned up variables.
This commit is contained in:
@@ -16,6 +16,7 @@ public class ShimadaSword : ModItem
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 18;
|
||||
Item.DamageType = DamageClass.Melee;
|
||||
Item.crit = 8;
|
||||
Item.width = 54;
|
||||
Item.height = 68;
|
||||
@@ -33,11 +34,11 @@ public class ShimadaSword : ModItem
|
||||
{
|
||||
if (Main.rand.NextBool(3))
|
||||
{
|
||||
int num1 = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, ModContent.DustType<Dusts.RyuuDust>());
|
||||
Main.dust[num1].scale = 1f;
|
||||
Main.dust[num1].velocity.Y = 0f;
|
||||
Main.dust[num1].velocity.X = 0.5f;
|
||||
Main.dust[num1].noGravity = true;
|
||||
int dust = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, ModContent.DustType<Dusts.RyuuDust>());
|
||||
Main.dust[dust].scale = 1f;
|
||||
Main.dust[dust].velocity.Y = 0f;
|
||||
Main.dust[dust].velocity.X = 0.5f;
|
||||
Main.dust[dust].noGravity = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,11 +49,11 @@ public class ShimadaSword : ModItem
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<StonePlatedKatana>());
|
||||
val.AddRecipeGroup("FabusMod:LightsBane");
|
||||
val.AddIngredient(ItemID.Emerald, 10);
|
||||
val.AddTile(TileID.Anvils);
|
||||
val.Register();
|
||||
Recipe recipe = CreateRecipe();
|
||||
recipe.AddIngredient(ModContent.ItemType<StonePlatedKatana>());
|
||||
recipe.AddRecipeGroup("FabusMod:LightsBane");
|
||||
recipe.AddIngredient(ItemID.Emerald, 10);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.Register();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user