1. Fixed Ballistic Poison Bomb cloud velocity. 2. Fixed compile errors with Flak/Gamma Acid. 3. Fixed sentries not being able to be placed on platforms. 4. Fixed bugs with Pulse Turret. 5. Updated targetting util to check for tiles on minion targetted npcs. 6. Fixed rotational errors on cadaverous carrion. 7. Cadaverous carrion now checks for tile collision.
46 lines
1.4 KiB
C#
46 lines
1.4 KiB
C#
using CalamityMod.Projectiles.Summon;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Weapons.Summon
|
|
{
|
|
public class HivePod : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Hive Pod");
|
|
Tooltip.SetDefault("Summons an astral hive to protect you");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.damage = 90;
|
|
item.mana = 10;
|
|
item.summon = true;
|
|
item.sentry = true;
|
|
item.width = 46;
|
|
item.height = 50;
|
|
item.useTime = item.useAnimation = 20;
|
|
item.useStyle = ItemUseStyleID.SwingThrow;
|
|
item.noMelee = true;
|
|
item.knockBack = 4f;
|
|
item.value = Item.buyPrice(0, 60, 0, 0);
|
|
item.rare = 7;
|
|
item.UseSound = SoundID.Item78;
|
|
item.shoot = ModContent.ProjectileType<Hive>();
|
|
}
|
|
|
|
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
|
{
|
|
if (player.altFunctionUse != 2)
|
|
{
|
|
Projectile.NewProjectile(Main.MouseWorld, Vector2.Zero, type, damage, knockBack, player.whoAmI);
|
|
player.UpdateMaxTurrets();
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
}
|