spacing stuff
This commit is contained in:
1 parent
83917e6fb4
commit
560dfc9f7a
1 file changed
+45
-45
@@ -6,53 +6,53 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
public class OpalStriker : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Opal Striker");
|
||||
Tooltip.SetDefault("Fires a string of opal strikes");
|
||||
}
|
||||
public class OpalStriker : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Opal Striker");
|
||||
Tooltip.SetDefault("Fires a string of opal strikes");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 9;
|
||||
item.ranged = true;
|
||||
item.width = 64;
|
||||
item.height = 16;
|
||||
item.useTime = 5;
|
||||
item.reuseDelay = 25;
|
||||
item.useAnimation = 20;
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 0f;
|
||||
item.value = Item.buyPrice(0, 2, 0, 0);
|
||||
item.rare = 2;
|
||||
item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/OpalStrike");
|
||||
item.autoReuse = true;
|
||||
item.shoot = ModContent.ProjectileType<OpalStrike>();
|
||||
item.shootSpeed = 6f;
|
||||
item.useAmmo = 97;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 9;
|
||||
item.ranged = true;
|
||||
item.width = 64;
|
||||
item.height = 16;
|
||||
item.useTime = 5;
|
||||
item.reuseDelay = 25;
|
||||
item.useAnimation = 20;
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 0f;
|
||||
item.value = Item.buyPrice(0, 2, 0, 0);
|
||||
item.rare = 2;
|
||||
item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/OpalStrike");
|
||||
item.autoReuse = true;
|
||||
item.shoot = ModContent.ProjectileType<OpalStrike>();
|
||||
item.shootSpeed = 6f;
|
||||
item.useAmmo = 97;
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOffset() => new Vector2(-10, 0);
|
||||
public override Vector2? HoldoutOffset() => new Vector2(-10, 0);
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType<OpalStrike>(), damage, knockBack, player.whoAmI);
|
||||
return false;
|
||||
}
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType<OpalStrike>(), damage, knockBack, player.whoAmI);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.Marble, 20);
|
||||
recipe.AddIngredient(ItemID.Amber, 5);
|
||||
recipe.AddIngredient(ItemID.Diamond, 3);
|
||||
recipe.AddIngredient(ItemID.FlintlockPistol);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.Marble, 20);
|
||||
recipe.AddIngredient(ItemID.Amber, 5);
|
||||
recipe.AddIngredient(ItemID.Diamond, 3);
|
||||
recipe.AddIngredient(ItemID.FlintlockPistol);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user