Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into 1.4.4
This commit is contained in:
commit
bdb69bda51
45 files changed
+189
-41
No files matched your search
@@ -79,7 +79,6 @@ namespace CalamityMod.CalPlayer
|
||||
public bool killSpikyBalls = false;
|
||||
public float KameiTrailXScale = 0.1f;
|
||||
public int KameiBladeUseDelay = 0;
|
||||
public int SpeedBlasterDashDelayCooldown = 0;
|
||||
public Vector2[] OldPositions = new Vector2[4];
|
||||
public double contactDamageReduction = 0D;
|
||||
public double projectileDamageReduction = 0D;
|
||||
@@ -3033,10 +3032,11 @@ namespace CalamityMod.CalPlayer
|
||||
//Right click dash on Speed Blaster
|
||||
if (sBlasterDashActivated == true)
|
||||
{
|
||||
if ((Player.controlUp || Player.controlDown || Player.controlLeft || Player.controlRight) && !Player.pulley && Player.grappling[0] == -1 && !Player.tongued && !Player.mount.Active && SpeedBlasterDashDelayCooldown == SpeedBlaster.DashCooldown && Player.dashDelay == 0)
|
||||
if ((Player.controlUp || Player.controlDown || Player.controlLeft || Player.controlRight) && !Player.pulley && Player.grappling[0] == -1 && !Player.tongued && !Player.mount.Active && Player.HasCooldown(Cooldowns.SpeedBlasterBoost.ID) && Player.dashDelay == 0)
|
||||
{
|
||||
SpeedBlasterDashStarted = true;
|
||||
}
|
||||
sBlasterDashActivated = false;
|
||||
}
|
||||
|
||||
if (Player.Calamity().SpeedBlasterDashStarted || (Player.dashDelay != 0 && Player.Calamity().LastUsedDashID == SpeedBlasterDash.ID))
|
||||
|
||||
@@ -646,6 +646,9 @@ namespace CalamityMod.CalPlayer
|
||||
if (trinketOfChi || chiRegen)
|
||||
Player.lifeRegen += 2;
|
||||
|
||||
// Nebula armor life booster nerf
|
||||
if (Player.nebulaLevelLife > 0)
|
||||
Player.lifeRegen -= 2 * Player.nebulaLevelLife;
|
||||
|
||||
if (ursaSergeant)
|
||||
{
|
||||
|
||||
@@ -1361,8 +1361,6 @@ namespace CalamityMod.CalPlayer
|
||||
phantomicBulwarkCooldown--;
|
||||
if (KameiBladeUseDelay > 0)
|
||||
KameiBladeUseDelay--;
|
||||
if (SpeedBlasterDashDelayCooldown > 0)
|
||||
SpeedBlasterDashDelayCooldown--;
|
||||
if (galileoCooldown > 0)
|
||||
galileoCooldown--;
|
||||
if (dragonRageCooldown > 0)
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.Localization;
|
||||
using static CalamityMod.CalamityUtils;
|
||||
|
||||
namespace CalamityMod.Cooldowns
|
||||
{
|
||||
public class SpeedBlasterBoost : CooldownHandler
|
||||
{
|
||||
public static new string ID => "SpeedBlasterBoost";
|
||||
public override bool ShouldDisplay => true;
|
||||
public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
|
||||
public override string Texture => "CalamityMod/Cooldowns/SpeedBlasterBoost";
|
||||
public override Color OutlineColor => new Color(207, 207, 207);
|
||||
public override Color CooldownStartColor => new Color(235, 33, 130);
|
||||
public override Color CooldownEndColor => new Color(39, 227, 208);
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 359 B |
Binary file not shown.
|
After Width: | Height: | Size: 213 B |
Binary file not shown.
|
After Width: | Height: | Size: 175 B |
@@ -6,11 +6,17 @@ using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
using Terraria.Audio;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.GameContent;
|
||||
|
||||
namespace CalamityMod.Gores
|
||||
{
|
||||
public class AstralWaterDroplet : ModGore
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ChildSafety.SafeGore[Type] = true;
|
||||
}
|
||||
|
||||
public override void OnSpawn(Gore gore, IEntitySource source)
|
||||
{
|
||||
gore.numFrames = 15;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.GameContent;
|
||||
using Terraria.DataStructures;
|
||||
@@ -7,8 +7,13 @@ using Microsoft.Xna.Framework;
|
||||
namespace CalamityMod.Gores.Trees
|
||||
{
|
||||
public class AstralLeaf : ModGore
|
||||
{
|
||||
public override void OnSpawn(Gore gore, IEntitySource source)
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ChildSafety.SafeGore[Type] = true;
|
||||
}
|
||||
|
||||
public override void OnSpawn(Gore gore, IEntitySource source)
|
||||
{
|
||||
ChildSafety.SafeGore[gore.type] = true;
|
||||
gore.velocity = new Vector2(Main.rand.NextFloat() - 0.5f, Main.rand.NextFloat() * MathHelper.TwoPi);
|
||||
@@ -18,4 +23,4 @@ namespace CalamityMod.Gores.Trees
|
||||
UpdateType = 910;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.GameContent;
|
||||
using Terraria.DataStructures;
|
||||
@@ -7,8 +7,13 @@ using Microsoft.Xna.Framework;
|
||||
namespace CalamityMod.Gores.Trees
|
||||
{
|
||||
public class SulphurLeaf : ModGore
|
||||
{
|
||||
public override void OnSpawn(Gore gore, IEntitySource source)
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ChildSafety.SafeGore[Type] = true;
|
||||
}
|
||||
|
||||
public override void OnSpawn(Gore gore, IEntitySource source)
|
||||
{
|
||||
ChildSafety.SafeGore[gore.type] = true;
|
||||
gore.velocity = new Vector2(Main.rand.NextFloat() - 0.5f, Main.rand.NextFloat() * MathHelper.TwoPi);
|
||||
@@ -18,4 +23,4 @@ namespace CalamityMod.Gores.Trees
|
||||
UpdateType = 910;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.lifeRegen = 2;
|
||||
Item.lifeRegen = 3;
|
||||
Item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
Item.defense = 37;
|
||||
Item.rare = ModContent.RarityType<Turquoise>();
|
||||
|
||||
@@ -43,9 +43,9 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.manaCost *= 0.85f;
|
||||
player.GetDamage<MagicDamageClass>() += 0.2f;
|
||||
player.GetDamage<MagicDamageClass>() += 0.15f;
|
||||
player.GetCritChance<MagicDamageClass>() += 10;
|
||||
player.endurance += 0.05f;
|
||||
player.endurance += 0.1f;
|
||||
player.statManaMax2 += 100;
|
||||
}
|
||||
|
||||
|
||||
@@ -46,8 +46,8 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<MeleeDamageClass>() += 0.1f;
|
||||
player.GetCritChance<MeleeDamageClass>() += 5;
|
||||
player.endurance += 0.05f;
|
||||
player.GetCritChance<MeleeDamageClass>() += 10;
|
||||
player.endurance += 0.1f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
{
|
||||
player.GetDamage<RangedDamageClass>() += 0.1f;
|
||||
player.GetCritChance<RangedDamageClass>() += 10;
|
||||
player.endurance += 0.05f;
|
||||
player.endurance += 0.1f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
player.GetDamage<ThrowingDamageClass>() += 0.1f;
|
||||
player.GetCritChance<ThrowingDamageClass>() += 10;
|
||||
player.moveSpeed += 0.05f;
|
||||
player.endurance += 0.05f;
|
||||
player.endurance += 0.1f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.endurance += 0.05f;
|
||||
player.endurance += 0.1f;
|
||||
player.GetDamage<SummonDamageClass>() += 0.05f;
|
||||
}
|
||||
|
||||
|
||||
@@ -1036,6 +1036,7 @@ namespace CalamityMod.Items
|
||||
}
|
||||
else if (set == "SolarFlare")
|
||||
{
|
||||
player.endurance *= 0.8928f; // Removes the base 12% DR
|
||||
if (player.solarShields > 0)
|
||||
modPlayer.DashID = string.Empty;
|
||||
}
|
||||
@@ -1140,6 +1141,15 @@ namespace CalamityMod.Items
|
||||
player.GetDamage<SummonDamageClass>() -= 0.1f;
|
||||
player.GetCritChance<MagicDamageClass>() -= 15;
|
||||
break;
|
||||
|
||||
case ItemID.SolarFlareHelmet:
|
||||
player.GetCritChance<MeleeDamageClass>() -= 6;
|
||||
break;
|
||||
|
||||
case ItemID.VortexHelmet:
|
||||
player.GetDamage<RangedDamageClass>() -= 0.06f;
|
||||
player.GetCritChance<RangedDamageClass>() -= 2;
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -841,7 +841,7 @@ namespace CalamityMod.Items
|
||||
EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("9%", "8%"));
|
||||
#endregion
|
||||
|
||||
// Hardmode ore armor tooltip edits
|
||||
// Hardmode armor tooltip edits
|
||||
#region Hardmode Ore Armor
|
||||
// Cobalt
|
||||
if (item.type == ItemID.CobaltHat)
|
||||
@@ -868,6 +868,17 @@ namespace CalamityMod.Items
|
||||
// Titanium
|
||||
if (item.type == ItemID.TitaniumMask)
|
||||
EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("9", "14"));
|
||||
|
||||
// Solar Flare
|
||||
if (item.type == ItemID.SolarFlareHelmet)
|
||||
EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("26%", "20%"));
|
||||
|
||||
// Vortex
|
||||
if (item.type == ItemID.VortexHelmet)
|
||||
{
|
||||
EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("16%", "10%"));
|
||||
EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("7%", "5%"));
|
||||
}
|
||||
#endregion
|
||||
|
||||
// DD2 armor tooltip edits
|
||||
|
||||
@@ -19,6 +19,7 @@ namespace CalamityMod.Items.Fishing.BrimstoneCragCatches
|
||||
public int shotCounter = 0;
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
Item.staff[Item.type] = true; //so it doesn't look weird af when holding it
|
||||
}
|
||||
|
||||
|
||||
@@ -13,6 +13,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public const int ChargeFrames = 28;
|
||||
public const int CooldownFrames = 16;
|
||||
public static readonly Color[] LightColors = new Color[] { new Color(235, 40, 121), new Color(49, 161, 246) }; //beam colors
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 54;
|
||||
|
||||
@@ -173,7 +173,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
for (int p = 0; p < 3; p++)
|
||||
{
|
||||
Vector2 poisonVelocity = velocity.RotatedByRandom(MathHelper.ToRadians(p * 2f));
|
||||
Projectile poisonHate = Projectile.NewProjectileDirect(source, nuzzlePos, poisonVelocity, ModContent.ProjectileType<AcidicSaxBubble>(), damage, knockback, player.whoAmI, 0f, 1f);
|
||||
Projectile poisonHate = Projectile.NewProjectileDirect(source, nuzzlePos, poisonVelocity, ModContent.ProjectileType<AcidicSaxBubble>(), damage, knockback, player.whoAmI, 0f, 0f, 1f);
|
||||
poisonHate.DamageType = DamageClass.Ranged;
|
||||
poisonHate.extraUpdates += 1;
|
||||
poisonHate.penetrate = 1;
|
||||
|
||||
@@ -25,6 +25,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public static int Charge2Frames = 308;
|
||||
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 72;
|
||||
|
||||
@@ -12,6 +12,10 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public class BarracudaGun : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 54;
|
||||
|
||||
@@ -17,6 +17,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public static readonly SoundStyle Heartbeat = new("CalamityMod/Sounds/Item/Heartbeat") { PitchVariance = 0.2f, Volume = 0.55f };
|
||||
|
||||
public bool shotReturn = false;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 60;
|
||||
|
||||
@@ -10,6 +10,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public class CoralCannon : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 52;
|
||||
|
||||
@@ -10,6 +10,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public class ElementalBlaster : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 104;
|
||||
|
||||
@@ -21,6 +21,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public static int FullChargeFrames = 138; //126 frames is durration of charge sound
|
||||
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 56;
|
||||
|
||||
@@ -12,6 +12,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public class MolecularManipulator : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 56;
|
||||
|
||||
@@ -11,6 +11,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public class NullificationPistol : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 52;
|
||||
|
||||
@@ -21,6 +21,10 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public static int AftershotCooldownFrames = 17;
|
||||
public static int FullChargeFrames = 88;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 48;
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public static readonly SoundStyle Squeak = new("CalamityMod/Sounds/Custom/CuteSqueak") { Volume = 0.75f };
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
Item.staff[Item.type] = true; //so it doesn't look weird af when holding it
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public const int MaxPumpkins = 5;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 72;
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,7 +14,8 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Item.type] = true;
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -9,6 +9,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public class SepticSkewer : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 46;
|
||||
|
||||
@@ -30,6 +30,10 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DashCooldown / 60);
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 52;
|
||||
@@ -51,7 +55,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public override bool AltFunctionUse(Player player) => true;
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
if (player.Calamity().SpeedBlasterDashDelayCooldown > 0 && player.altFunctionUse == 2)
|
||||
if (player.HasCooldown(Cooldowns.SpeedBlasterBoost.ID) && player.altFunctionUse == 2)
|
||||
{
|
||||
SoundEngine.PlaySound(Empty, player.Center);
|
||||
return false;
|
||||
@@ -63,14 +67,14 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public override Vector2? HoldoutOffset() => new Vector2(-1, -6);
|
||||
|
||||
// Increased fire rate after dashing
|
||||
public override float UseSpeedMultiplier(Player player) => player.Calamity().SpeedBlasterDashDelayCooldown > 0 ? FireRatePowerup : 1f;
|
||||
public override float UseSpeedMultiplier(Player player) => player.HasCooldown(Cooldowns.SpeedBlasterBoost.ID) ? FireRatePowerup : 1f;
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
// Reposition all shots to the gun's tip
|
||||
Vector2 newPos = position + new Vector2(38f, player.direction * (Math.Abs(velocity.SafeNormalize(Vector2.Zero).X) < 0.02f ? -2f : -8f)).RotatedBy(velocity.ToRotation());
|
||||
|
||||
// Big dashing shot
|
||||
if (player.altFunctionUse == 2 && player.Calamity().SpeedBlasterDashDelayCooldown == 0)
|
||||
if (player.altFunctionUse == 2 && !(player.HasCooldown(Cooldowns.SpeedBlasterBoost.ID)))
|
||||
{
|
||||
// Switches the color of the next shots, including this one
|
||||
if (ColorValue >= 4f)
|
||||
@@ -81,7 +85,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Projectile.NewProjectile(source, newPos, velocity, type, (int)(damage * DashShotDamageMult), knockback, player.whoAmI, ColorValue, 3f);
|
||||
|
||||
// Activate the dash and cooldown
|
||||
player.Calamity().SpeedBlasterDashDelayCooldown = DashCooldown;
|
||||
player.AddCooldown(Cooldowns.SpeedBlasterBoost.ID, DashCooldown);
|
||||
player.Calamity().sBlasterDashActivated = true;
|
||||
|
||||
// If moving, emit particles to signal the dash
|
||||
@@ -98,8 +102,8 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
}
|
||||
|
||||
// Add inaccuracy to regular shots; powered up shots are more accurate
|
||||
Vector2 newVel = velocity.RotatedByRandom(MathHelper.ToRadians(player.Calamity().SpeedBlasterDashDelayCooldown > 0 ? 3f : 15f));
|
||||
float ShotMode = player.Calamity().SpeedBlasterDashDelayCooldown > 0 ? 2f : 0f;
|
||||
Vector2 newVel = velocity.RotatedByRandom(MathHelper.ToRadians(player.HasCooldown(Cooldowns.SpeedBlasterBoost.ID) ? 3f : 15f));
|
||||
float ShotMode = player.HasCooldown(Cooldowns.SpeedBlasterBoost.ID) ? 2f : 0f;
|
||||
Projectile.NewProjectile(source, newPos, newVel, type, damage, knockback, player.whoAmI, ColorValue, ShotMode);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -16,6 +16,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 166;
|
||||
|
||||
@@ -9,6 +9,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public class StellarCannon : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 50;
|
||||
|
||||
@@ -11,6 +11,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public class StormSurge : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 58;
|
||||
|
||||
@@ -9,6 +9,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public class SulphuricAcidCannon : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 90;
|
||||
|
||||
@@ -10,6 +10,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public class TitaniumRailgun : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 62;
|
||||
|
||||
@@ -491,7 +491,7 @@ TarragonBreastplate: {
|
||||
Tooltip:
|
||||
'''
|
||||
10% increased damage and 5% increased critical strike chance
|
||||
+1 HP/s life regen and +40 max life
|
||||
+1.5 HP/s life regen and +40 max life
|
||||
'''
|
||||
CommonSetBonus:
|
||||
'''
|
||||
@@ -505,8 +505,8 @@ TarragonHeadMagic: {
|
||||
DisplayName: Tarragon Mask
|
||||
Tooltip:
|
||||
'''
|
||||
20% increased magic damage and 10% increased magic critical strike chance
|
||||
5% increased damage reduction, +100 max mana, and 15% reduced mana usage
|
||||
15% increased magic damage and 10% increased magic critical strike chance
|
||||
10% increased damage reduction, +100 max mana, and 15% reduced mana usage
|
||||
'''
|
||||
SetBonus:
|
||||
'''
|
||||
@@ -520,9 +520,8 @@ TarragonHeadMelee: {
|
||||
DisplayName: Tarragon Helm
|
||||
Tooltip:
|
||||
'''
|
||||
10% increased melee damage
|
||||
5% increased melee critical strike chance
|
||||
5% increased damage reduction
|
||||
10% increased melee damage and critical strike chance
|
||||
10% increased damage reduction
|
||||
'''
|
||||
SetBonus:
|
||||
'''
|
||||
@@ -539,7 +538,7 @@ TarragonHeadRanged: {
|
||||
Tooltip:
|
||||
'''
|
||||
10% increased ranged damage and critical strike chance
|
||||
5% increased damage reduction
|
||||
10% increased damage reduction
|
||||
'''
|
||||
SetBonus: Ranged projectiles split into homing life energy and leaves on death
|
||||
}
|
||||
@@ -549,7 +548,7 @@ TarragonHeadRogue: {
|
||||
Tooltip:
|
||||
'''
|
||||
10% increased rogue damage and critical strike chance
|
||||
5% increased damage reduction and movement speed
|
||||
10% increased damage reduction and 5% increased movement speed
|
||||
'''
|
||||
SetBonus:
|
||||
'''
|
||||
@@ -562,7 +561,7 @@ TarragonHeadRogue: {
|
||||
|
||||
TarragonHeadSummon: {
|
||||
DisplayName: Tarragon Horned Helm
|
||||
Tooltip: 5% increased damage reduction and summon damage
|
||||
Tooltip: 10% increased damage reduction and 5% increased summon damage
|
||||
SetBonus:
|
||||
'''
|
||||
50% increased summon damage and +3 max minions
|
||||
|
||||
@@ -110,6 +110,7 @@ Cooldowns: {
|
||||
SandsmokeBombActive: Sandsmoke Bomb Duration
|
||||
SandsmokeBombCooldown: Sandsmoke Bomb Cooldown
|
||||
SilvaRevive: Silva Revive Cooldown
|
||||
SpeedBlasterBoost: Speed Blaster Boost
|
||||
SpongeDurability: Sponge Barrier Durability
|
||||
SpongeRecharge: Sponge Barrier Recharge
|
||||
TarragonCloak: Tarragon Cloak Cooldown
|
||||
|
||||
@@ -189,6 +189,7 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
"Vorbis",
|
||||
"Angel",
|
||||
"Mòrag Ladair", // <@!161893929485074432> (jalapeno9)
|
||||
};
|
||||
private static readonly string[] StylistNames =
|
||||
{
|
||||
|
||||
@@ -137,14 +137,14 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<Irradiated>(), 180);
|
||||
if (Projectile.ai[1] == 1f) // For GFB Animosity
|
||||
if (Projectile.ai[2] == 1f) // For GFB Animosity
|
||||
target.AddBuff(BuffID.Poisoned, 180);
|
||||
}
|
||||
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo info)
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<Irradiated>(), 180);
|
||||
if (Projectile.ai[1] == 1f) // For GFB Animosity
|
||||
if (Projectile.ai[2] == 1f) // For GFB Animosity
|
||||
target.AddBuff(BuffID.Poisoned, 180);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user