Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into 1.4.4
This commit is contained in:
commit
dc9d201b07
6 files changed
+31
-61
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Projectiles.Melee.Spears;
|
||||
using CalamityMod.Projectiles.Melee;
|
||||
using CalamityMod.Projectiles.Melee.Spears;
|
||||
using CalamityMod.Rarities;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
@@ -9,32 +10,26 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public class InsidiousImpaler : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Melee";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.Spears[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 66;
|
||||
Item.height = 70;
|
||||
Item.damage = 320;
|
||||
Item.DamageType = DamageClass.Melee;
|
||||
Item.damage = 198;
|
||||
Item.DamageType = DamageClass.MeleeNoSpeed;
|
||||
Item.noMelee = true;
|
||||
Item.useTurn = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useAnimation = Item.useTime = 15;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.useAnimation = Item.useTime = 20;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.knockBack = 8f;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ModContent.ProjectileType<InsidiousImpalerProj>();
|
||||
Item.shootSpeed = 5f;
|
||||
Item.shoot = ModContent.ProjectileType<InsidiousHarpoon>();
|
||||
Item.shootSpeed = 15f;
|
||||
|
||||
Item.value = CalamityGlobalItem.Rarity13BuyPrice;
|
||||
Item.rare = ModContent.RarityType<PureGreen>();
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
|
||||
}
|
||||
}
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
Item.width = 44;
|
||||
Item.height = 44;
|
||||
Item.damage = 333;
|
||||
Item.damage = 248;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useAnimation = 31;
|
||||
@@ -49,7 +49,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<EpidemicShredder>().
|
||||
AddIngredient<UelibloomBar>(5).
|
||||
AddIngredient(ItemID.LunarBar, 5).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -673,7 +673,7 @@ IllustriousKnives: {
|
||||
|
||||
InsidiousImpaler: {
|
||||
DisplayName: Insidious Impaler
|
||||
Tooltip: Fires a harpoon that sticks to enemies and explodes
|
||||
Tooltip: Fires infected harpoons that stick to enemies and explode
|
||||
}
|
||||
|
||||
IridescentExcalibur: {
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Melee
|
||||
@@ -10,6 +12,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public class InsidiousHarpoon : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Melee";
|
||||
public override LocalizedText DisplayName => CalamityUtils.GetItemName<InsidiousImpaler>();
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 8;
|
||||
@@ -23,8 +26,9 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Projectile.friendly = true;
|
||||
Projectile.penetrate = 8;
|
||||
Projectile.alpha = 255;
|
||||
Projectile.DamageType = DamageClass.Melee;
|
||||
Projectile.extraUpdates = 2;
|
||||
Projectile.DamageType = DamageClass.MeleeNoSpeed;
|
||||
Projectile.scale = 1.3f;
|
||||
Projectile.extraUpdates = 1;
|
||||
Projectile.usesLocalNPCImmunity = true;
|
||||
Projectile.localNPCHitCooldown = 20 * Projectile.extraUpdates;
|
||||
Projectile.tileCollide = true;
|
||||
@@ -37,7 +41,21 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Projectile.alpha -= 25;
|
||||
}
|
||||
if (Projectile.alpha < 0)
|
||||
{
|
||||
Projectile.alpha = 0;
|
||||
}
|
||||
if (Projectile.ai[0] == 0f)
|
||||
{
|
||||
Projectile.localAI[1] += 1f;
|
||||
if (Projectile.localAI[1] >= 60f)
|
||||
{
|
||||
Projectile.velocity.X *= 0.99f;
|
||||
Projectile.velocity.Y += 0.3f;
|
||||
|
||||
if (Projectile.velocity.Y > 16f)
|
||||
Projectile.velocity.Y = 16f;
|
||||
}
|
||||
}
|
||||
|
||||
int dustType = 171;
|
||||
if (Main.rand.NextBool(3))
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
using System;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.Projectiles.BaseProjectiles;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Projectiles.Melee.Spears
|
||||
{
|
||||
public class InsidiousImpalerProj : BaseSpearProjectile
|
||||
{
|
||||
public override LocalizedText DisplayName => CalamityUtils.GetItemName<InsidiousImpaler>();
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = Projectile.height = 40;
|
||||
Projectile.DamageType = DamageClass.Melee;
|
||||
Projectile.timeLeft = 90;
|
||||
Projectile.friendly = true;
|
||||
Projectile.hostile = false;
|
||||
Projectile.tileCollide = false;
|
||||
Projectile.ignoreWater = true;
|
||||
Projectile.penetrate = -1;
|
||||
Projectile.ownerHitCheck = true;
|
||||
Projectile.usesLocalNPCImmunity = true;
|
||||
Projectile.localNPCHitCooldown = 5;
|
||||
}
|
||||
|
||||
public override float InitialSpeed => 3f;
|
||||
public override float ReelbackSpeed => 1.1f;
|
||||
public override float ForwardSpeed => 0.95f;
|
||||
public override Action<Projectile> EffectBeforeReelback => (proj) =>
|
||||
{
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center + Projectile.velocity, Projectile.velocity * 3.5f, ModContent.ProjectileType<InsidiousHarpoon>(), (int)(Projectile.damage * 0.5), Projectile.knockBack * 0.85f, Projectile.owner);
|
||||
};
|
||||
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<SulphuricPoisoning>(), 180);
|
||||
target.AddBuff(BuffID.Venom, 180);
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 4.0 KiB |
Reference in new issue
Block a user