xXxputisxXx
Terrarian
During attempts to make something working ( And i succeeded in this. Thanks very much for help) I noticed one feature. I tried to change the velocity and extra updates of the bullet. I was just adding an item.velocity or item.extraUpdates. After 10 minutes of this process, I realized that it was wrong. How can I change velocity and extraUpdates for example here ? As I understand it here are the speed characteristics of a normal bullet (4 velocity and 1 extra update). But the chlorophytic bullet has 5 velocity and 2 extra updates . How can I change these characteristics ?
using Terraria.ID;
using Terraria.ModLoader;
namespace Wares.Items
{
public class BloomingStone : ModItem
{
public override void SetStaticDefaults()
{
Tooltip.SetDefault("Leafy, glimmering pouch of nature bullets. Let them fly and chase");
}
public override void SetDefaults()
{
item.damage = 10;
item.ranged = true;
item.width = 8;
item.height = 8;
item.maxStack = 1;
item.consumable = false;
item.knockBack = 1f;
item.value = 100;
item.rare = 7;
item.shoot = ProjectileID.ChlorophyteBullet;
item.ammo = AmmoID.Bullet;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.DirtBlock, 10);
recipe.AddTile(TileID.WorkBenches);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
using Terraria.ID;
using Terraria.ModLoader;
namespace Wares.Items
{
public class BloomingStone : ModItem
{
public override void SetStaticDefaults()
{
Tooltip.SetDefault("Leafy, glimmering pouch of nature bullets. Let them fly and chase");
}
public override void SetDefaults()
{
item.damage = 10;
item.ranged = true;
item.width = 8;
item.height = 8;
item.maxStack = 1;
item.consumable = false;
item.knockBack = 1f;
item.value = 100;
item.rare = 7;
item.shoot = ProjectileID.ChlorophyteBullet;
item.ammo = AmmoID.Bullet;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.DirtBlock, 10);
recipe.AddTile(TileID.WorkBenches);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}