Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into 1.4.4
This commit is contained in:
commit
c1da115f0f
29 files changed
+77
-87
No files matched your search
@@ -41,7 +41,7 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<MagicDamageClass>() += 0.08f;
|
||||
player.GetDamage<MagicDamageClass>() += 0.1f;
|
||||
player.statManaMax2 += 30;
|
||||
}
|
||||
|
||||
|
||||
@@ -797,6 +797,10 @@ namespace CalamityMod.Items
|
||||
line.Text = newTooltip;
|
||||
});
|
||||
}
|
||||
|
||||
// Meteor
|
||||
if (item.type == ItemID.MeteorHelmet || item.type == ItemID.MeteorSuit || item.type == ItemID.MeteorLeggings)
|
||||
EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("9%", "8%"));
|
||||
#endregion
|
||||
|
||||
// Hardmode ore armor tooltip edits
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.Bananarang, Do(DamageExact(76), UseExact(14)) },
|
||||
{ ItemID.BatScepter, Do(DamageExact(56)) },
|
||||
{ ItemID.BeamSword, Do(UseMeleeSpeed, UseTurn, DamageExact(180), UseAnimationExact(60), ShootSpeedExact(23f)) },
|
||||
{ ItemID.BeeGun, Do(DamageExact(11)) },
|
||||
{ ItemID.BeeGun, Do(DamageExact(10), ManaExact(4)) },
|
||||
{ ItemID.BeesKnees, Do(PointBlank, DamageExact(18), UseExact(38)) },
|
||||
{ ItemID.Bladetongue, Do(UseTurn, UseRatio(0.8f), DamageExact(120), ScaleRatio(1.75f)) },
|
||||
{ ItemID.BlizzardStaff, Do(DamageExact(41), ManaExact(7)) },
|
||||
@@ -127,6 +127,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.HellwingBow, Do(PointBlank, DamageExact(16)) },
|
||||
{ ItemID.HighVelocityBullet, Do(DamageExact(15)) },
|
||||
{ ItemID.HiveFive, Do(AutoReuse, DamageExact(26)) },
|
||||
{ ItemID.HornetStaff, Do(AutoReuse, DamageExact(13), UseExact(30)) },
|
||||
{ ItemID.IceBlade, Do(UseMeleeSpeed) },
|
||||
{ ItemID.IceBoomerang, Do(UseExact(25), ShootSpeedExact(9)) },
|
||||
{ ItemID.IceRod, Do(UseExact(6), DamageExact(30), ShootSpeedExact(20)) },
|
||||
@@ -482,7 +483,6 @@ namespace CalamityMod.Items
|
||||
{ ItemID.DeadlySphereStaff, Do(AutoReuse, UseExact(20)) },
|
||||
{ ItemID.FireWhip, autoReuse }, // Firecracker
|
||||
{ ItemID.FlinxStaff, Do(AutoReuse, UseExact(35)) },
|
||||
{ ItemID.HornetStaff, Do(AutoReuse, UseExact(30)) },
|
||||
{ ItemID.MaceWhip, autoReuse }, // Morning Star
|
||||
{ ItemID.MoonlordTurretStaff, Do(UseExact(15)) }, // Lunar Portal Staff
|
||||
{ ItemID.OpticStaff, Do(AutoReuse, UseExact(25)) },
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.VanillaArmorChanges
|
||||
{
|
||||
@@ -13,12 +14,20 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
|
||||
public override string ArmorSetName => "Meteor";
|
||||
|
||||
// Meteor Armor only makes space gun cost 50% instead of zero mana.
|
||||
public override void UpdateSetBonusText(ref string setBonusText)
|
||||
{
|
||||
setBonusText = $"{CalamityUtils.GetTextValue($"Vanilla.Armor.SetBonus.{ArmorSetName}")}";
|
||||
}
|
||||
|
||||
// Reducing every piece's damage boost from 9% to 8%
|
||||
private void ApplyAnyPieceEffect(Player player) => player.GetDamage<MagicDamageClass>() -= 0.01f;
|
||||
|
||||
public override void ApplyHeadPieceEffect(Player player) => ApplyAnyPieceEffect(player);
|
||||
|
||||
public override void ApplyBodyPieceEffect(Player player) => ApplyAnyPieceEffect(player);
|
||||
|
||||
public override void ApplyLegPieceEffect(Player player) => ApplyAnyPieceEffect(player);
|
||||
|
||||
public override void ApplyArmorSetBonus(Player player)
|
||||
{
|
||||
player.Calamity().meteorSet = true;
|
||||
|
||||
@@ -18,11 +18,11 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
Item.width = 30;
|
||||
Item.height = 32;
|
||||
Item.damage = 20;
|
||||
Item.damage = 19;
|
||||
Item.noMelee = true;
|
||||
Item.consumable = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useAnimation = Item.useTime = 16;
|
||||
Item.useAnimation = Item.useTime = 18;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.knockBack = 3f;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
@@ -35,16 +35,15 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.DamageType = RogueDamageClass.Instance;
|
||||
}
|
||||
|
||||
public override float StealthDamageMultiplier => 0.9f;
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike
|
||||
{
|
||||
int stealth = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI);
|
||||
if (stealth.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[stealth].Calamity().stealthStrike = true;
|
||||
Main.projectile[stealth].penetrate = 3;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -10,7 +10,7 @@ AerospecBreastplate: {
|
||||
|
||||
AerospecHat: {
|
||||
DisplayName: Aerospec Hat
|
||||
Tooltip: 8% increased magic damage and +30 max mana
|
||||
Tooltip: 10% increased magic damage and +30 max mana
|
||||
SetBonus: 5% increased movement speed and magic critical strike chance
|
||||
}
|
||||
|
||||
|
||||
@@ -542,8 +542,7 @@ HardenedHoneycomb: {
|
||||
Tooltip:
|
||||
'''
|
||||
Fires a honeycomb that shatters into fragments
|
||||
Grants the honey buff to players it touches
|
||||
Stealth strikes can bounce off walls and enemies
|
||||
Stealth strikes grant the honey buff on hit and spawn bees
|
||||
'''
|
||||
}
|
||||
|
||||
|
||||
@@ -35,8 +35,12 @@ namespace CalamityMod.NPCs.AstrumAureus
|
||||
public class AstrumAureus : ModNPC
|
||||
{
|
||||
public static readonly SoundStyle HitSound = new("CalamityMod/Sounds/NPCHit/AureusHit", 4);
|
||||
public static readonly SoundStyle DeathSound = new("CalamityMod/Sounds/NPCKilled/AureusDeath");
|
||||
public static readonly SoundStyle LaserSound = new("CalamityMod/Sounds/Custom/AstrumAureus/AureusShoot");
|
||||
public static readonly SoundStyle FlameCrystalSound = new("CalamityMod/Sounds/Custom/AstrumAureus/AureusShootCrystal");
|
||||
public static readonly SoundStyle StompSound = new("CalamityMod/Sounds/Custom/AstrumAureus/LegStomp");
|
||||
public static readonly SoundStyle JumpSound = new("CalamityMod/Sounds/Custom/AstrumAureus/AureusJump");
|
||||
public static readonly SoundStyle TeleportSound = new("CalamityMod/Sounds/Custom/AstrumAureus/AureusTeleport");
|
||||
|
||||
private bool stomping = false;
|
||||
public int slimeProjCounter = 0;
|
||||
@@ -75,7 +79,7 @@ namespace CalamityMod.NPCs.AstrumAureus
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.value = Item.buyPrice(0, 60, 0, 0);
|
||||
NPC.boss = true;
|
||||
NPC.DeathSound = SoundID.NPCDeath14;
|
||||
NPC.DeathSound = DeathSound;
|
||||
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
|
||||
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
|
||||
NPC.Calamity().VulnerableToHeat = true;
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = SoundID.NPCHit4;
|
||||
NPC.HitSound = AstrumDeusHead.HitSound;
|
||||
NPC.DeathSound = AstrumDeusHead.DeathSound;
|
||||
NPC.netAlways = true;
|
||||
NPC.boss = true;
|
||||
|
||||
@@ -34,10 +34,12 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
[AutoloadBossHead]
|
||||
public class AstrumDeusHead : ModNPC
|
||||
{
|
||||
public static readonly SoundStyle SpawnSound = new("CalamityMod/Sounds/Custom/AstrumDeusSpawn");
|
||||
public static readonly SoundStyle LaserSound = new("CalamityMod/Sounds/Custom/AstrumDeusLaser");
|
||||
public static readonly SoundStyle MineSound = new("CalamityMod/Sounds/Custom/AstrumDeusMine");
|
||||
public static readonly SoundStyle SplitSound = new("CalamityMod/Sounds/Custom/AstrumDeusSplit");
|
||||
public static readonly SoundStyle SpawnSound = new("CalamityMod/Sounds/Custom/AstrumDeus/AstrumDeusSpawn");
|
||||
public static readonly SoundStyle LaserSound = new("CalamityMod/Sounds/Custom/AstrumDeus/AstrumDeusLaser");
|
||||
public static readonly SoundStyle GodRaySound = new("CalamityMod/Sounds/Custom/AstrumDeus/AstrumDeusGodRay");
|
||||
public static readonly SoundStyle MineSound = new("CalamityMod/Sounds/Custom/AstrumDeus/AstrumDeusMine");
|
||||
public static readonly SoundStyle SplitSound = new("CalamityMod/Sounds/Custom/AstrumDeus/AstrumDeusSplit");
|
||||
public static readonly SoundStyle HitSound = new("CalamityMod/Sounds/NPCHit/AstrumDeusHit", 2) { Volume = 1.25f };
|
||||
public static readonly SoundStyle DeathSound = new("CalamityMod/Sounds/NPCKilled/AstrumDeusDeath");
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
@@ -87,7 +89,7 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
NPC.behindTiles = true;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.HitSound = SoundID.NPCHit4;
|
||||
NPC.HitSound = HitSound;
|
||||
NPC.DeathSound = DeathSound;
|
||||
NPC.netAlways = true;
|
||||
NPC.Calamity().VulnerableToHeat = true;
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = SoundID.NPCHit4;
|
||||
NPC.HitSound = AstrumDeusHead.HitSound;
|
||||
NPC.DeathSound = AstrumDeusHead.DeathSound;
|
||||
NPC.netAlways = true;
|
||||
NPC.boss = true;
|
||||
|
||||
+9
-7
@@ -2727,7 +2727,7 @@ namespace CalamityMod.NPCs
|
||||
astrumAureus.slimeProjCounter++;
|
||||
if (astrumAureus.slimeProjCounter % 180 == 0)
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.Item33, npc.Center);
|
||||
SoundEngine.PlaySound(SoundID.Item33, npc.Center); // Intentionally keeping the old laser sound in GFB
|
||||
|
||||
if (astrumAureus.slimePhase == 1)
|
||||
{
|
||||
@@ -2797,7 +2797,7 @@ namespace CalamityMod.NPCs
|
||||
if (npc.ai[0] >= 5f && npc.ai[0] != 7)
|
||||
{
|
||||
npc.localAI[0] = 0f;
|
||||
SoundEngine.PlaySound(SoundID.Item109, npc.Center);
|
||||
SoundEngine.PlaySound(AstrumAureus.AstrumAureus.FlameCrystalSound, npc.Center);
|
||||
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
@@ -2821,7 +2821,7 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
npc.localAI[0] = 0f;
|
||||
|
||||
SoundEngine.PlaySound(SoundID.Item33, npc.Center);
|
||||
SoundEngine.PlaySound(AstrumAureus.AstrumAureus.LaserSound, npc.Center);
|
||||
|
||||
if (calamityGlobalNPC.newAI[2] == 0f)
|
||||
{
|
||||
@@ -3161,7 +3161,7 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
|
||||
// Fire lasers or flames on stomp
|
||||
SoundEngine.PlaySound(SoundID.Item33, npc.Center);
|
||||
SoundEngine.PlaySound(AstrumAureus.AstrumAureus.LaserSound, npc.Center);
|
||||
|
||||
if (Main.zenithWorld)
|
||||
{
|
||||
@@ -3405,7 +3405,7 @@ namespace CalamityMod.NPCs
|
||||
if (npc.soundDelay == 0)
|
||||
{
|
||||
npc.soundDelay = 15;
|
||||
SoundEngine.PlaySound(SoundID.Item109, npc.Center);
|
||||
SoundEngine.PlaySound(AstrumAureus.AstrumAureus.TeleportSound, npc.Center);
|
||||
}
|
||||
|
||||
// Emit dust to make the teleport pretty
|
||||
@@ -4253,8 +4253,6 @@ namespace CalamityMod.NPCs
|
||||
|
||||
if (Vector2.Distance(player.Center, npc.Center) > 80f)
|
||||
{
|
||||
SoundEngine.PlaySound(AstrumDeusHead.LaserSound, npc.Center);
|
||||
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
float deusLaserSpeed = (death ? 16f : revenge ? 14f : 13f) + enrageScale * 4f;
|
||||
@@ -4273,6 +4271,7 @@ namespace CalamityMod.NPCs
|
||||
int damage = npc.GetProjectileDamage(type);
|
||||
if (shootGodRays)
|
||||
{
|
||||
SoundEngine.PlaySound(AstrumDeusHead.GodRaySound, npc.Center);
|
||||
// Waving beams need to start offset so they cross each other neatly.
|
||||
float waveSideOffset = Main.rand.NextFloat(9f, 14f);
|
||||
Vector2 perp = shootDirection.RotatedBy(-MathHelper.PiOver2) * waveSideOffset;
|
||||
@@ -4287,7 +4286,10 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
SoundEngine.PlaySound(AstrumDeusHead.LaserSound, npc.Center);
|
||||
Projectile.NewProjectile(npc.GetSource_FromAI(), deusLaserCenter, laserVelocity, type, damage, 0f, Main.myPlayer, player.Center.X, player.Center.Y);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -763,7 +763,7 @@ namespace CalamityMod.NPCs
|
||||
if (VulnerableToHeat.Value)
|
||||
heatDamageMult *= slimed ? ((wormBoss || slimeGod) ? 1.25 : 1.5) : ((wormBoss || slimeGod) ? VulnerableToDoTDamageMult_Worms_SlimeGod : VulnerableToDoTDamageMult);
|
||||
else
|
||||
heatDamageMult *= slimed ? 0.2 : 0.5;
|
||||
heatDamageMult *= slimed ? ((wormBoss || slimeGod) ? 0.66 : 0.5) : 0.5;
|
||||
}
|
||||
|
||||
double coldDamageMult = BaseDoTDamageMult;
|
||||
@@ -781,7 +781,7 @@ namespace CalamityMod.NPCs
|
||||
if (VulnerableToSickness.Value)
|
||||
sicknessDamageMult *= irradiated > 0 ? (wormBoss ? 1.25 : 1.5) : (wormBoss ? VulnerableToDoTDamageMult_Worms_SlimeGod : VulnerableToDoTDamageMult);
|
||||
else
|
||||
sicknessDamageMult *= irradiated > 0 ? 0.2 : 0.5;
|
||||
sicknessDamageMult *= irradiated > 0 ? (wormBoss ? 0.66 : 0.5) : 0.5;
|
||||
}
|
||||
|
||||
bool increasedElectricityDamage = npc.wet || npc.honeyWet || npc.lavaWet || npc.dripping;
|
||||
@@ -791,7 +791,7 @@ namespace CalamityMod.NPCs
|
||||
if (VulnerableToElectricity.Value)
|
||||
electricityDamageMult *= increasedElectricityDamage ? (wormBoss ? 1.25 : 1.5) : (wormBoss ? VulnerableToDoTDamageMult_Worms_SlimeGod : VulnerableToDoTDamageMult);
|
||||
else
|
||||
electricityDamageMult *= increasedElectricityDamage ? 0.2 : 0.5;
|
||||
electricityDamageMult *= increasedElectricityDamage ? (wormBoss ? 0.66 : 0.5) : 0.5;
|
||||
}
|
||||
|
||||
double waterDamageMult = BaseDoTDamageMult;
|
||||
@@ -1027,7 +1027,7 @@ namespace CalamityMod.NPCs
|
||||
// Poisoned
|
||||
if (npc.poisoned)
|
||||
{
|
||||
int basePoisonedDoTValue = (int)(4 * vanillaSicknessDamageMult);
|
||||
int basePoisonedDoTValue = (int)(12 * vanillaSicknessDamageMult);
|
||||
npc.lifeRegen -= basePoisonedDoTValue;
|
||||
if (damage < basePoisonedDoTValue / 4)
|
||||
damage = basePoisonedDoTValue / 4;
|
||||
|
||||
@@ -13,6 +13,8 @@ namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
public class DeusMine : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public static readonly SoundStyle ExplodeSound = new("CalamityMod/Sounds/Custom/AstrumDeus/DeusMineExplode");
|
||||
|
||||
public new string LocalizationCategory => "Projectiles.Boss";
|
||||
private const int MaxTimeLeft = 600;
|
||||
private const int FadeTime = 85;
|
||||
@@ -96,7 +98,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
// Explode and split into accelerating lasers
|
||||
if (Projectile.ai[0] == 1f)
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.Item14, Projectile.Center);
|
||||
SoundEngine.PlaySound(ExplodeSound, Projectile.Center);
|
||||
Projectile.position = Projectile.Center;
|
||||
Projectile.width = Projectile.height = 96;
|
||||
Projectile.position.X = Projectile.position.X - (Projectile.width / 2);
|
||||
|
||||
@@ -27,73 +27,42 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
Projectile.DamageType = RogueDamageClass.Instance;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
Player player = Main.player[Main.myPlayer];
|
||||
Vector2 posDiff = player.Center - Projectile.Center;
|
||||
if (posDiff.Length() <= radius)
|
||||
{
|
||||
player.AddBuff(BuffID.Honey, 300);
|
||||
}
|
||||
}
|
||||
|
||||
public override bool OnTileCollide(Vector2 oldVelocity)
|
||||
{
|
||||
SpawnFragments();
|
||||
Projectile.penetrate--;
|
||||
if (Projectile.penetrate <= 0)
|
||||
{
|
||||
Projectile.Kill();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Projectile.velocity.X != oldVelocity.X)
|
||||
{
|
||||
Projectile.velocity.X = -oldVelocity.X;
|
||||
}
|
||||
if (Projectile.velocity.Y != oldVelocity.Y)
|
||||
{
|
||||
Projectile.velocity.Y = -oldVelocity.Y;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
SpawnFragments();
|
||||
Projectile.velocity.X = -Projectile.velocity.X;
|
||||
Projectile.velocity.Y = -Projectile.velocity.Y;
|
||||
Player player = Main.player[Main.myPlayer];
|
||||
if (Projectile.Calamity().stealthStrike)
|
||||
player.AddBuff(BuffID.Honey, 300);
|
||||
SpawnProjectiles();
|
||||
}
|
||||
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo info)
|
||||
{
|
||||
SpawnFragments();
|
||||
Projectile.velocity.X = -Projectile.velocity.X;
|
||||
Projectile.velocity.Y = -Projectile.velocity.Y;
|
||||
Player player = Main.player[Main.myPlayer];
|
||||
if (Projectile.Calamity().stealthStrike)
|
||||
player.AddBuff(BuffID.Honey, 300);
|
||||
SpawnProjectiles();
|
||||
}
|
||||
|
||||
public void SpawnFragments()
|
||||
public void SpawnProjectiles()
|
||||
{
|
||||
int split = 0;
|
||||
while (split < 2)
|
||||
Player player = Main.player[Main.myPlayer];
|
||||
int fragAmt = 2;
|
||||
for (int i = 0; i < fragAmt; i++)
|
||||
{
|
||||
//Calculate the velocity of the projectile
|
||||
float shardspeedX = -Projectile.velocity.X * Main.rand.NextFloat(.5f, .7f) + Main.rand.NextFloat(-3f, 3f);
|
||||
float shardspeedY = -Projectile.velocity.Y * Main.rand.Next(50, 70) * 0.01f + Main.rand.Next(-8, 9) * 0.2f;
|
||||
//Prevents the projectile speed from being too low
|
||||
if (shardspeedX < 2f && shardspeedX > -2f)
|
||||
{
|
||||
shardspeedX += -Projectile.velocity.X;
|
||||
}
|
||||
if (shardspeedY > 2f && shardspeedY < 2f)
|
||||
{
|
||||
shardspeedY += -Projectile.velocity.Y;
|
||||
}
|
||||
Vector2 shardVelocity = CalamityUtils.RandomVelocity(100f, 35f, 55f);
|
||||
|
||||
//Spawn the projectile
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.position.X + shardspeedX, Projectile.position.Y + shardspeedY, shardspeedX, shardspeedY, ModContent.ProjectileType<HoneycombFragment>(), Projectile.damage, Projectile.knockBack, Projectile.owner, Main.rand.Next(3), 0f);
|
||||
split += 1;
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, shardVelocity, ModContent.ProjectileType<HoneycombFragment>(), Projectile.damage, Projectile.knockBack, Projectile.owner, Main.rand.Next(3), 0f);
|
||||
}
|
||||
if (Projectile.Calamity().stealthStrike)
|
||||
{
|
||||
int beeAmt = 4;
|
||||
for (int j = 0; j < beeAmt; j++)
|
||||
{
|
||||
Vector2 beeVelocity = CalamityUtils.RandomVelocity(100f, 35f, 55f);
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, beeVelocity, player.beeType(), player.beeDamage(Projectile.damage), player.beeKB(0.25f), player.whoAmI);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
target.AddBuff(BuffID.PotionSickness, 180);
|
||||
target.AddBuff(BuffID.Poisoned, 180);
|
||||
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user