Ink bomb changes
This commit is contained in:
1 parent
75c1eb2866
commit
90ebd14219
6 files changed
+22
-12
No files matched your search
@@ -2703,17 +2703,18 @@ namespace CalamityMod.CalPlayer
|
||||
if (inkBomb && !abyssalMirror && !eclipseMirror)
|
||||
{
|
||||
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<Items.Accessories.InkBomb>()));
|
||||
SoundEngine.PlaySound(SoundID.Item1, Player.Center);
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
int ink = Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center, Vector2.One.RotatedByRandom(MathHelper.TwoPi) * 2f, ModContent.ProjectileType<InkBombProjectile>(), 0, 0, Player.whoAmI);
|
||||
if (ink.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[ink].DamageType = DamageClass.Generic;
|
||||
}
|
||||
if (Player.whoAmI == Main.myPlayer && !Player.HasCooldown(Cooldowns.InkBomb.ID))
|
||||
{
|
||||
Player.AddCooldown(Cooldowns.InkBomb.ID, CalamityUtils.SecondsToFrames(20));
|
||||
rogueStealth += 0.5f;
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.Item61, Player.Center);
|
||||
int ink = Projectile.NewProjectile(source, Player.Center.X, Player.Center.Y, Main.rand.NextFloat(-3f, 3f), Main.rand.NextFloat(-0f, -4f), ModContent.ProjectileType<InkBombProjectile>(), 0, 0, Player.whoAmI);
|
||||
if (ink.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[ink].DamageType = DamageClass.Generic;
|
||||
}
|
||||
SoundEngine.PlaySound(SoundID.NPCDeath28 with { Volume = 2f }, Player.Center);
|
||||
}
|
||||
}
|
||||
if (ataxiaBlaze)
|
||||
|
||||
@@ -21,6 +21,9 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.inkBomb = true;
|
||||
modPlayer.rogueStealthMax += 0.1f;
|
||||
player.Calamity().stealthGenStandstill += 0.07f;
|
||||
player.Calamity().stealthGenMoving += 0.07f;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -999,8 +999,10 @@ InkBomb: {
|
||||
DisplayName: Ink Bomb
|
||||
Tooltip:
|
||||
'''
|
||||
Throws several ink bombs when hit that explode into ink
|
||||
Gain a lot of stealth and confuse enemies when struck
|
||||
+10 maximum stealth
|
||||
Stealth generates 7% faster
|
||||
Throws several ink bombs when hit that explode into ink and confuse enemies
|
||||
Gain a lot of stealth when struck
|
||||
This effect has a 20 second cooldown before it can occur again
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
using System.IO;
|
||||
using CalamityMod.BiomeManagers;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Cooldowns;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Banners;
|
||||
using CalamityMod.World;
|
||||
@@ -258,6 +260,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
{
|
||||
var postLevi = npcLoot.DefineConditionalDropSet(DropHelper.PostLevi());
|
||||
npcLoot.Add(ItemDropRule.NormalvsExpert(ItemID.Blindfold, 100, 50));
|
||||
npcLoot.Add(ItemDropRule.NormalvsExpert(ModContent.ItemType<Items.Accessories.InkBomb>(), 10, 5));
|
||||
postLevi.Add(DropHelper.NormalVsExpertQuantity(ModContent.ItemType<DepthCells>(), 2, 2, 4, 3, 6));
|
||||
}
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
public class InkBombProjectile : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Rogue";
|
||||
public static readonly SoundStyle Explode = new("CalamityMod/Sounds/Custom/PlantyMushMine", 3);
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 14;
|
||||
@@ -49,8 +50,8 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
private void CreateInk()
|
||||
{
|
||||
Player player = Main.player[Projectile.owner];
|
||||
SoundEngine.PlaySound(SoundID.Item14, Projectile.position);
|
||||
for (int i = 0; i < 20; i++)
|
||||
SoundEngine.PlaySound(SoundID.NPCHit25, Projectile.Center);
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
int damage = (int)player.GetTotalDamage<RogueDamageClass>().ApplyTo(22);
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
if (!target.friendly)
|
||||
{
|
||||
target.AddBuff(BuffID.Confused, 300);
|
||||
target.AddBuff(BuffID.Confused, 60);
|
||||
}
|
||||
}
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(BuffID.Confused, 300);
|
||||
|
||||
Reference in new issue
Block a user