Merge branch '1.4.4' into PSA-Changes
This commit is contained in:
commit
ea48a85114
10 files changed
+65
-29
No files matched your search
@@ -1146,7 +1146,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (instance.timeLeft < 0)
|
||||
{
|
||||
handler.OnCompleted();
|
||||
if (handler.EndSound != null)
|
||||
if (handler.EndSound != null && handler.ShouldPlayEndSound)
|
||||
SoundEngine.PlaySound(handler.EndSound.GetValueOrDefault());
|
||||
expiredCooldowns.Add(id);
|
||||
}
|
||||
@@ -3667,7 +3667,6 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
CooldownInstance durabilityCooldown = Player.AddCooldown(WulfrumRoverDriveDurability.ID, RoverDrive.ShieldDurabilityMax);
|
||||
durabilityCooldown.timeLeft = RoverDriveShieldDurability;
|
||||
SoundEngine.PlaySound(RoverDrive.ActivationSound, Player.Center);
|
||||
}
|
||||
|
||||
// Add light if this shield is currently active
|
||||
|
||||
@@ -49,6 +49,11 @@ namespace CalamityMod.Cooldowns
|
||||
/// When the cooldown instance ends, this sound is played. Leave at <b>null</b> for no sound.
|
||||
/// </summary>
|
||||
public virtual SoundStyle? EndSound => null;
|
||||
|
||||
/// <summary>
|
||||
/// Set this to true to have the cooldown instance end sound play upon expiration. Defaults to <b>true</b>
|
||||
/// </summary>
|
||||
public virtual bool ShouldPlayEndSound => true;
|
||||
#endregion
|
||||
|
||||
#region Display & Rendering
|
||||
|
||||
@@ -90,6 +90,7 @@ namespace CalamityMod.Cooldowns
|
||||
public override Color CooldownStartColor => Color.Lerp(ringColorLerpStart, ringColorLerpEnd, instance.Completion);
|
||||
public override Color CooldownEndColor => Color.Lerp(ringColorLerpStart, ringColorLerpEnd, instance.Completion);
|
||||
public override SoundStyle? EndSound => LunicCorpsHelmet.ActivationSound;
|
||||
public override bool ShouldPlayEndSound => instance.player.Calamity().lunicCorpsSet;
|
||||
|
||||
public override void Tick() => instance.player.Calamity().playedLunicCorpsShieldSound = false;
|
||||
// When the recharge period completes, grant 1 point of shielding immediately so the rest my refill normally.
|
||||
|
||||
@@ -90,6 +90,7 @@ namespace CalamityMod.Cooldowns
|
||||
public override Color CooldownStartColor => Color.Lerp(ringColorLerpStart, ringColorLerpEnd, instance.Completion);
|
||||
public override Color CooldownEndColor => Color.Lerp(ringColorLerpStart, ringColorLerpEnd, instance.Completion);
|
||||
public override SoundStyle? EndSound => TheSponge.ActivationSound;
|
||||
public override bool ShouldPlayEndSound => instance.player.Calamity().sponge;
|
||||
|
||||
public override void Tick() => instance.player.Calamity().playedSpongeShieldSound = false;
|
||||
// When the recharge period completes, grant 1 point of shielding immediately so the rest my refill normally.
|
||||
|
||||
@@ -98,6 +98,7 @@ namespace CalamityMod.Cooldowns
|
||||
if (modPlayer.roverDrive)
|
||||
modPlayer.RoverDriveShieldDurability = RoverDrive.ShieldDurabilityMax;
|
||||
}
|
||||
public override SoundStyle? EndSound => null;
|
||||
public override SoundStyle? EndSound => RoverDrive.ActivationSound;
|
||||
public override bool ShouldPlayEndSound => instance.player.Calamity().roverDrive;
|
||||
}
|
||||
}
|
||||
@@ -45,8 +45,8 @@ namespace CalamityMod.Items.Accessories
|
||||
CreateRecipe().
|
||||
AddIngredient<AmbrosialAmpoule>().
|
||||
AddIngredient<InfectedJewel>().
|
||||
AddIngredient<AuricBar>(4).
|
||||
AddIngredient<AscendantSpiritEssence>(5).
|
||||
AddIngredient<AuricBar>(5).
|
||||
AddIngredient<AscendantSpiritEssence>(4).
|
||||
AddTile(ModContent.TileType<CosmicAnvil>()).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace CalamityMod.Items.Accessories
|
||||
AddIngredient(ItemID.FrozenShield).
|
||||
AddIngredient<DeificAmulet>().
|
||||
AddIngredient<AuricBar>(5).
|
||||
AddIngredient<AscendantSpiritEssence>(5).
|
||||
AddIngredient<AscendantSpiritEssence>(4).
|
||||
AddTile<CosmicAnvil>().
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Particles;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
@@ -45,23 +46,23 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
}
|
||||
else
|
||||
{
|
||||
int utensil = ModContent.ProjectileType<Fork>();
|
||||
type = ModContent.ProjectileType<Fork>();
|
||||
double dmgMult = 1D;
|
||||
float kbMult = 1f;
|
||||
switch (Main.rand.Next(3))
|
||||
switch (counter)
|
||||
{
|
||||
case 0:
|
||||
utensil = ModContent.ProjectileType<Fork>();
|
||||
type = ModContent.ProjectileType<Fork>();
|
||||
dmgMult = 1.1;
|
||||
kbMult = 2f;
|
||||
break;
|
||||
case 1:
|
||||
utensil = ModContent.ProjectileType<Knife>();
|
||||
type = ModContent.ProjectileType<Knife>();
|
||||
dmgMult = 1.2;
|
||||
kbMult = 1f;
|
||||
break;
|
||||
case 2:
|
||||
utensil = ModContent.ProjectileType<CarvingFork>();
|
||||
type = ModContent.ProjectileType<CarvingFork>();
|
||||
dmgMult = 1D;
|
||||
kbMult = 1f;
|
||||
break;
|
||||
@@ -70,7 +71,8 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
}
|
||||
damage = (int)(damage * dmgMult);
|
||||
knockback = knockback * kbMult;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
@@ -80,9 +82,8 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
int idx = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI);
|
||||
if (idx.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[idx].Calamity().stealthStrike = mp.StealthStrikeAvailable();
|
||||
|
||||
counter++;
|
||||
if (counter == 3)
|
||||
if (counter >= 3)
|
||||
counter = 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -3930,70 +3930,98 @@ HardenedEutrophicSand: {
|
||||
|
||||
FireTurret: {
|
||||
DisplayName: Fire Turret
|
||||
Tooltip: ""
|
||||
Tooltip:
|
||||
'''
|
||||
Roasts nearby enemies with a flamethrower at full blast
|
||||
Cannot attack while a boss is alive
|
||||
'''
|
||||
}
|
||||
|
||||
HostileFireTurret: {
|
||||
DisplayName: Hostile Fire Turret
|
||||
Tooltip: ""
|
||||
Tooltip: Roasts nearby players with a flamethrower at full blast
|
||||
}
|
||||
|
||||
HostileIceTurret: {
|
||||
DisplayName: Hostile Ice Turret
|
||||
Tooltip: ""
|
||||
Tooltip: Lobs fragile ice mist bombs at nearby players
|
||||
}
|
||||
|
||||
HostileLabTurret: {
|
||||
DisplayName: Hostile Lab Turret
|
||||
Tooltip: ""
|
||||
Tooltip: Shoots laser beams at nearby players
|
||||
}
|
||||
|
||||
HostileLaserTurret: {
|
||||
DisplayName: Hostile Laser Turret
|
||||
Tooltip: ""
|
||||
Tooltip: Blasts nearby players with lightning-fast laser beams
|
||||
}
|
||||
|
||||
HostileOnyxTurret: {
|
||||
DisplayName: Hostile Onyx Turret
|
||||
Tooltip: ""
|
||||
Tooltip: Shoots a shotgun spread of bullets at nearby players
|
||||
}
|
||||
|
||||
HostilePlagueTurret: {
|
||||
DisplayName: Hostile Plague Turret
|
||||
Tooltip: ""
|
||||
Tooltip: Ejects homing plague missiles towards nearby players
|
||||
}
|
||||
|
||||
HostileWaterTurret: {
|
||||
DisplayName: Hostile Water Turret
|
||||
Tooltip: ""
|
||||
Tooltip: Shoots high-speed water blasts at nearby players
|
||||
}
|
||||
|
||||
IceTurret: {
|
||||
DisplayName: Ice Turret
|
||||
Tooltip: ""
|
||||
Tooltip:
|
||||
'''
|
||||
Lobs fragile ice mist bombs at nearby enemies
|
||||
Cannot attack while a boss is alive
|
||||
'''
|
||||
}
|
||||
|
||||
LabTurret: {
|
||||
DisplayName: Lab Turret
|
||||
Tooltip: ""
|
||||
Tooltip:
|
||||
'''
|
||||
Shoots laser beams at nearby enemies
|
||||
Cannot attack while a boss is alive
|
||||
'''
|
||||
}
|
||||
|
||||
LaserTurret: {
|
||||
DisplayName: Laser Turret
|
||||
Tooltip: ""
|
||||
Tooltip:
|
||||
'''
|
||||
Blasts nearby enemies with lightning-fast laser beams
|
||||
Cannot attack while a boss is alive
|
||||
'''
|
||||
}
|
||||
|
||||
OnyxTurret: {
|
||||
DisplayName: Onyx Turret
|
||||
Tooltip: ""
|
||||
Tooltip:
|
||||
'''
|
||||
Shoots a shotgun spread of bullets at nearby enemies
|
||||
Cannot attack while a boss is alive
|
||||
'''
|
||||
}
|
||||
|
||||
PlagueTurret: {
|
||||
DisplayName: Plague Turret
|
||||
Tooltip: ""
|
||||
Tooltip:
|
||||
'''
|
||||
Ejects homing plague missiles towards nearby enemies
|
||||
Cannot attack while a boss is alive
|
||||
'''
|
||||
}
|
||||
|
||||
WaterTurret: {
|
||||
DisplayName: Water Turret
|
||||
Tooltip: ""
|
||||
Tooltip:
|
||||
'''
|
||||
Shoots high-speed water blasts at nearby enemies
|
||||
Cannot attack while a boss is alive
|
||||
'''
|
||||
}
|
||||
@@ -1337,7 +1337,7 @@ UtensilPoker: {
|
||||
DisplayName: Utensil Poker
|
||||
Tooltip:
|
||||
'''
|
||||
Fires random utensils in bursts of three
|
||||
Fires utensils in bursts of three
|
||||
Stealth strikes replace any utensil with a powerful butcher knife
|
||||
'Space chickens, that is all'
|
||||
'''
|
||||
|
||||
Reference in new issue
Block a user