2 - Fixed FuckYou explosion hitting multiple times -- this is definitely not what we want. 3 - Nerfed Holy Fire Bullet ratio, as it was balanced around the 0.3x FuckYou ratio.
44 lines
1.3 KiB
C#
44 lines
1.3 KiB
C#
using CalamityMod.Items.Materials;
|
|
using CalamityMod.Projectiles.Ranged;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
namespace CalamityMod.Items.Ammo
|
|
{
|
|
public class HolyFireBullet : ModItem
|
|
{
|
|
internal const float ExplosionMultiplier = 0.33f;
|
|
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Holy Fire Bullet");
|
|
Tooltip.SetDefault("Explosive holy bullets");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.damage = 22;
|
|
item.ranged = true;
|
|
item.width = 22;
|
|
item.height = 22;
|
|
item.maxStack = 999;
|
|
item.consumable = true;
|
|
item.knockBack = 2f;
|
|
item.value = 2000;
|
|
item.rare = ItemRarityID.Purple;
|
|
item.shoot = ModContent.ProjectileType<HolyFireBulletProj>();
|
|
item.shootSpeed = 6f;
|
|
item.ammo = AmmoID.Bullet;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ItemID.ExplodingBullet, 100);
|
|
recipe.AddIngredient(ModContent.ItemType<UnholyEssence>());
|
|
recipe.AddTile(TileID.LunarCraftingStation);
|
|
recipe.SetResult(this, 100);
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|