24 files changed
+161
-86
No files matched your search
@@ -1529,6 +1529,7 @@ namespace CalamityMod.CalPlayer
|
||||
Player.AddCooldown(GlobalDodge.ID, cooldownDuration);
|
||||
else
|
||||
Player.AddCooldown(GlobalDodge.ID, cooldownDuration, true, IconToUse);
|
||||
Player.SetImmuneTimeForAllTypes(Player.longInvince ? 120 : 80);
|
||||
}
|
||||
|
||||
//Dodge activation order is as follows:
|
||||
|
||||
@@ -938,9 +938,9 @@ namespace CalamityMod.Items
|
||||
{
|
||||
// Xyk 3MARCH2026: Doesn't work on any non use style 1 items currently, Doze will fix it
|
||||
if (item.CountsAsClass<MeleeDamageClass>() && player.HasBuff(BuffID.Tipsy))
|
||||
scale += 0.15f;
|
||||
scale += 0.25f;
|
||||
if (item.CountsAsClass<MeleeDamageClass>() && (player.GetModPlayer<IVDripPlayer>().HasAlcohol(AlcoholType.Ale) || player.GetModPlayer<IVDripPlayer>().HasAlcohol(AlcoholType.Sake)))
|
||||
scale += 0.15f;
|
||||
scale += 0.25f;
|
||||
}
|
||||
public override void UpdateArmorSet(Player player, string set)
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
Item.width = 128;
|
||||
Item.height = 140;
|
||||
Item.damage = 1075;
|
||||
Item.damage = 888;
|
||||
Item.knockBack = 7.5f;
|
||||
Item.useAnimation = Item.useTime = 25;
|
||||
Item.DamageType = TrueMeleeNoSpeedDamageClass.Instance;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using CalamityMod.Projectiles.BaseProjectiles;
|
||||
using CalamityMod.Projectiles.BaseProjectiles;
|
||||
using CalamityMod.Projectiles.Boss;
|
||||
using CalamityMod.Projectiles.Melee;
|
||||
using CalamityMod.Rarities;
|
||||
@@ -92,33 +91,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
if (proj2.active && proj2.type == ModContent.ProjectileType<MirrorBlast>() && proj2.owner == player.whoAmI && (proj2.ModProjectile as MirrorBlast).isShard)
|
||||
{
|
||||
proj2.damage = (int)(proj2.damage * (shardCount >= 10 ? 3f : 2f));
|
||||
(proj2.ModProjectile as MirrorBlast).shardShield = 0;
|
||||
(proj2.ModProjectile as MirrorBlast).shardNum = 11;
|
||||
proj2.netUpdate = true;
|
||||
}
|
||||
}
|
||||
reflectTimer = 0;
|
||||
return;
|
||||
} else
|
||||
if (proj.hostile && proj.damage > 0 && proj.Hitbox.IntersectsConeSlowMoreAccurate(player.Center, coneLength, coneRotation, maximumAngle))
|
||||
{
|
||||
if (shardCount > 0)
|
||||
{
|
||||
SoundEngine.PlaySound(SeekingScorcher.LightShatterSound, player.Center);
|
||||
SoundEngine.PlaySound(SoundID.DD2_WitherBeastDeath, player.Center);
|
||||
}
|
||||
if (shardCount >= 10)
|
||||
{
|
||||
player.SetImmuneTimeForAllTypes(player.longInvince ? 60 : 30);
|
||||
}
|
||||
proj.Calamity().multiplicativeDR += shardCount / 10f;
|
||||
proj.Calamity().multiplicativeDRTimer = 60;
|
||||
foreach (var proj2 in Main.projectile)
|
||||
{
|
||||
if (proj2.active && proj2.type == ModContent.ProjectileType<MirrorBlast>() && proj2.owner == player.whoAmI && (proj2.ModProjectile as MirrorBlast).isShard)
|
||||
{
|
||||
proj2.damage = (int)(proj2.damage * (shardCount >= 10 ? 3f : 2f));
|
||||
//Don't amplify Evolution shards
|
||||
if (proj2.DamageType != DamageClass.Generic)
|
||||
proj2.damage = (int)(proj2.damage * (shardCount >= 10 ? 3f : 2f));
|
||||
(proj2.ModProjectile as MirrorBlast).shardShield = 0;
|
||||
(proj2.ModProjectile as MirrorBlast).shardNum = 11;
|
||||
proj2.netUpdate = true;
|
||||
@@ -127,6 +102,35 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
reflectTimer = 0;
|
||||
return;
|
||||
}
|
||||
else
|
||||
if (proj.hostile && proj.damage > 0 && proj.Hitbox.IntersectsConeSlowMoreAccurate(player.Center, coneLength, coneRotation, maximumAngle))
|
||||
{
|
||||
if (shardCount > 0)
|
||||
{
|
||||
SoundEngine.PlaySound(SeekingScorcher.LightShatterSound, player.Center);
|
||||
SoundEngine.PlaySound(SoundID.DD2_WitherBeastDeath, player.Center);
|
||||
}
|
||||
if (shardCount >= 10)
|
||||
{
|
||||
player.SetImmuneTimeForAllTypes(player.longInvince ? 60 : 30);
|
||||
}
|
||||
proj.Calamity().multiplicativeDR += shardCount / 10f;
|
||||
proj.Calamity().multiplicativeDRTimer = 60;
|
||||
foreach (var proj2 in Main.projectile)
|
||||
{
|
||||
if (proj2.active && proj2.type == ModContent.ProjectileType<MirrorBlast>() && proj2.owner == player.whoAmI && (proj2.ModProjectile as MirrorBlast).isShard)
|
||||
{
|
||||
//Don't amplify Evolution shards
|
||||
if (proj2.DamageType != DamageClass.Generic)
|
||||
proj2.damage = (int)(proj2.damage * (shardCount >= 10 ? 3f : 2f));
|
||||
(proj2.ModProjectile as MirrorBlast).shardShield = 0;
|
||||
(proj2.ModProjectile as MirrorBlast).shardNum = 11;
|
||||
proj2.netUpdate = true;
|
||||
}
|
||||
}
|
||||
reflectTimer = 0;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
reflectTimer--;
|
||||
@@ -149,9 +153,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
hasShard = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!alreadyReflecting && hasShard)
|
||||
SoundEngine.PlaySound(SoundID.DD2_EtherianPortalSpawnEnemy,player.Center);
|
||||
SoundEngine.PlaySound(SoundID.DD2_EtherianPortalSpawnEnemy, player.Center);
|
||||
return false;
|
||||
}
|
||||
return base.Shoot(player, source, position, velocity, type, damage, knockback);
|
||||
|
||||
@@ -1041,7 +1041,7 @@ IVDripOnTheRocks: {
|
||||
'''
|
||||
Empty: Place an alcoholic beverage on this item in your inventory to pour its contents in
|
||||
CurrentAlcoholText: Filled with
|
||||
SakeAndAleText: Increases melee weapon scale by 15%, but decreases melee speed by 10%
|
||||
SakeAndAleText: Increases melee weapon scale by 25%, but decreases melee speed by 10%
|
||||
}
|
||||
|
||||
JellyChargedBattery: {
|
||||
|
||||
@@ -405,7 +405,7 @@ DragonRage: {
|
||||
Tooltip:
|
||||
'''
|
||||
Twirls a baton that causes explosions of [cbuff:CalamityMod/Dragonfire] on enemy hits
|
||||
Every ten hits will summon a ring of fireballs
|
||||
Once every two seconds, hits summon a ring of fireballs that target the enemy with the most health
|
||||
'''
|
||||
}
|
||||
|
||||
|
||||
@@ -209,7 +209,7 @@ EditedTooltip: {
|
||||
ArcheryPotion: 5% increased arrow damage and 20% increased arrow speed
|
||||
AleSake:
|
||||
'''
|
||||
Increases melee weapon scale by 15%, but decreases melee speed by 10%
|
||||
Increases melee weapon scale by 25%, but decreases melee speed by 10%
|
||||
Counts as an alcohol for Alcohol Poisoning
|
||||
{$Common.AlcoholWarning}
|
||||
'''
|
||||
|
||||
@@ -9,8 +9,8 @@ namespace CalamityMod.Prefixes
|
||||
|
||||
public class Horrible : HorribleWeaponPrefix
|
||||
{
|
||||
public override float damageMult => 0.50f;
|
||||
public override float sizeMult => 3f;
|
||||
public override float damageMult => 0.66f;
|
||||
public override float sizeMult => 2f;
|
||||
}
|
||||
public abstract class HorribleWeaponPrefix : ModPrefix, ILocalizedModType
|
||||
{
|
||||
|
||||
@@ -3,7 +3,6 @@ using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using CalamityMod.Graphics.Primitives;
|
||||
using CalamityMod.NPCs;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using ReLogic.Content;
|
||||
@@ -117,7 +116,7 @@ namespace CalamityMod.Projectiles.BaseProjectiles
|
||||
/// Whether or not this should get melee speed bonuses
|
||||
/// Defaults to TRUE
|
||||
/// </summary>
|
||||
public virtual bool useMeleeSpeed { get; set; } = true;
|
||||
public virtual bool useAttackSpeed { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not this should get melee size bonuses (Titan Glove)
|
||||
@@ -333,9 +332,9 @@ namespace CalamityMod.Projectiles.BaseProjectiles
|
||||
StartupTime *= Projectile.MaxUpdates;
|
||||
CooldownTime *= Projectile.MaxUpdates;
|
||||
swingTime *= Projectile.MaxUpdates;
|
||||
if (useMeleeSpeed)
|
||||
if (useAttackSpeed)
|
||||
{
|
||||
var speed = Main.player[Projectile.owner].GetAttackSpeed<MeleeDamageClass>();
|
||||
var speed = Main.player[Projectile.owner].GetTotalAttackSpeed(Projectile.DamageType);
|
||||
if (speed > 3f)
|
||||
speed = 3f;
|
||||
|
||||
@@ -352,8 +351,7 @@ namespace CalamityMod.Projectiles.BaseProjectiles
|
||||
}
|
||||
if (useMeleeSize)
|
||||
{
|
||||
if (player.meleeScaleGlove) Projectile.scale *= 1.1f;
|
||||
Projectile.scale *= player.HeldItem.scale;
|
||||
Projectile.scale *= player.GetMeleeScale();
|
||||
}
|
||||
baseScale = Projectile.scale;
|
||||
ExistsTime = swingTime + StartupTime + CooldownTime;
|
||||
|
||||
@@ -40,10 +40,13 @@ namespace CalamityMod.Projectiles.Melee
|
||||
{
|
||||
if (Projectile.ai[0] == 0f)
|
||||
{
|
||||
Projectile.ai[0] = Main.rand.NextFloat(40f, 70f);
|
||||
Projectile.ai[0] = Main.rand.NextFloat(20f, 40f);
|
||||
Projectile.ai[1] = Main.rand.NextFloat(35f, 55f);
|
||||
}
|
||||
target = Projectile.Center.ClosestNPCAt(1200f);
|
||||
if (target != null && !target.CanBeChasedBy())
|
||||
target = null;
|
||||
if (target is null)
|
||||
target = GetTargetInRange(1200f);
|
||||
Projectile.frameCounter++;
|
||||
if (Projectile.frameCounter > 4)
|
||||
{
|
||||
@@ -66,6 +69,29 @@ namespace CalamityMod.Projectiles.Melee
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
NPC GetTargetInRange(float range)
|
||||
{
|
||||
var player = Main.player[Projectile.owner];
|
||||
NPC gotTarget = null;
|
||||
int currentHP = -1;
|
||||
float distance = range;
|
||||
foreach (var npc in Main.ActiveNPCs)
|
||||
{
|
||||
if (Projectile.localNPCImmunity[npc.whoAmI] > 0)
|
||||
continue;
|
||||
var myDistance = npc.Distance(Projectile.Center);
|
||||
|
||||
if (npc.CanBeChasedBy() && ((myDistance < range && currentHP < npc.life) || (myDistance < distance && currentHP <= npc.life)))
|
||||
{
|
||||
distance = myDistance;
|
||||
currentHP = npc.life;
|
||||
gotTarget = npc;
|
||||
}
|
||||
}
|
||||
return gotTarget;
|
||||
|
||||
}
|
||||
public override Color? GetAlpha(Color lightColor) => new Color(200, 200, 200, Projectile.alpha);
|
||||
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
@@ -149,6 +175,13 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Projectile.Damage();
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target)
|
||||
{
|
||||
if (this.target != null && target.whoAmI != this.target.whoAmI)
|
||||
return false;
|
||||
return base.CanHitNPC(target);
|
||||
}
|
||||
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<Dragonfire>(), 120);
|
||||
|
||||
@@ -29,14 +29,15 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Projectile.alpha = 255;
|
||||
Projectile.hide = true;
|
||||
Projectile.usesLocalNPCImmunity = true;
|
||||
Projectile.localNPCHitCooldown = 5;
|
||||
Projectile.localNPCHitCooldown = -1;
|
||||
Projectile.ContinuouslyUpdateDamageStats = true;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
Player player = Main.player[Projectile.owner];
|
||||
float spinCycleTime = 50f;
|
||||
Projectile.scale = player.GetMeleeScale();
|
||||
Projectile.scale = 0.85f * player.GetMeleeScale();
|
||||
|
||||
// If the player is dead, destroy the projectile
|
||||
if (player.dead || !player.channel)
|
||||
@@ -70,6 +71,12 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Projectile.rotation -= MathHelper.Pi;
|
||||
Projectile.netUpdate = true;
|
||||
}
|
||||
|
||||
if (Projectile.ai[0] % 5 == 0)
|
||||
{
|
||||
Projectile.numHits = 0;
|
||||
Projectile.ResetLocalNPCHitImmunity();
|
||||
}
|
||||
SpawnDust(player, direction);
|
||||
PositionAndRotation(player);
|
||||
VisibilityAndLight();
|
||||
@@ -143,9 +150,10 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Projectile.alpha = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
if (target.Calamity().IsArmored())
|
||||
Projectile.numHits--; //don't pierce falloff on targets it can't really damage
|
||||
target.AddBuff(ModContent.BuffType<Dragonfire>(), 180);
|
||||
OnHitEffects(target.Center);
|
||||
}
|
||||
@@ -160,14 +168,12 @@ namespace CalamityMod.Projectiles.Melee
|
||||
if (Projectile.owner == Main.myPlayer)
|
||||
{
|
||||
CalamityPlayer modPlayer = Main.player[Projectile.owner].Calamity();
|
||||
modPlayer.dragonRageHits++;
|
||||
if (modPlayer.dragonRageHits >= 10 && modPlayer.dragonRageCooldown <= 0)
|
||||
if (modPlayer.dragonRageCooldown <= 0)
|
||||
{
|
||||
SpawnFireballs();
|
||||
modPlayer.dragonRageHits = 0;
|
||||
}
|
||||
|
||||
int proj = Projectile.NewProjectile(Projectile.GetSource_FromThis(), position, Vector2.Zero, ModContent.ProjectileType<FuckYou>(), Projectile.damage / 4, Projectile.knockBack, Projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f);
|
||||
int proj = Projectile.NewProjectile(Projectile.GetSource_FromThis(), position, Vector2.Zero, ModContent.ProjectileType<FuckYou>(), (int)(Projectile.damage * (1 - (0.25f * Projectile.numHits))*0.25f) , Projectile.knockBack, Projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f);
|
||||
Main.projectile[proj].DamageType = DamageClass.Melee;
|
||||
}
|
||||
}
|
||||
@@ -183,14 +189,15 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Vector2 velocity = new Vector2(0f, speed);
|
||||
velocity = velocity.RotatedBy(angleStep * i * Main.rand.NextFloat(0.9f, 1.1f));
|
||||
|
||||
Projectile fire = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, velocity, ModContent.ProjectileType<DragonRageFireball>(), Projectile.damage / 8, Projectile.knockBack / 3f, Projectile.owner);
|
||||
Projectile fire = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, velocity, ModContent.ProjectileType<DragonRageFireball>(), Projectile.damage / 2, Projectile.knockBack / 3f, Projectile.owner);
|
||||
fire.scale = Projectile.scale;
|
||||
}
|
||||
Main.player[Projectile.owner].Calamity().dragonRageCooldown = 60;
|
||||
Main.player[Projectile.owner].Calamity().dragonRageCooldown = 120;
|
||||
}
|
||||
|
||||
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
|
||||
{
|
||||
modifiers.SourceDamage *= 1 - (0.25f * Projectile.numHits);
|
||||
Player player = Main.player[Projectile.owner];
|
||||
Rectangle myRect = Projectile.Hitbox;
|
||||
if (Projectile.owner == Main.myPlayer)
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public override int OffsetDistance => 50;
|
||||
public override int CooldownTime { get; set; }
|
||||
public override bool AlternateSwings => false;
|
||||
public override bool useMeleeSpeed => false;
|
||||
public override bool useAttackSpeed => false;
|
||||
public override SoundStyle? UseSound => SoundID.DD2_MonkStaffSwing with {Volume = 1f};
|
||||
|
||||
bool hasSmashedTile = false;
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public class LucreciaHoldout : BaseSwordHoldoutProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Melee";
|
||||
public override bool useMeleeSpeed => true;
|
||||
public override bool useAttackSpeed => true;
|
||||
public override bool useMeleeSize => false;
|
||||
public override int swingWidth => 310;
|
||||
public override Item BaseItem => ModContent.GetModItem(ModContent.ItemType<Lucrecia>()).Item;
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public class MawOfInfinityHoldout : BaseSwordHoldoutProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Melee";
|
||||
public override bool useMeleeSpeed => true;
|
||||
public override bool useAttackSpeed => true;
|
||||
public override bool useMeleeSize => true;
|
||||
public override int swingWidth => 270;
|
||||
public override Item BaseItem => ModContent.GetModItem(ModContent.ItemType<MawOfInfinity>()).Item;
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public override bool AlternateSwings => false;
|
||||
public bool SpawnShards = true;
|
||||
|
||||
public override bool useMeleeSpeed => true;
|
||||
public override bool useAttackSpeed => true;
|
||||
|
||||
public override int swingTime { get; set; } = 8;
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.Particles;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
@@ -71,38 +72,69 @@ namespace CalamityMod.Projectiles.Melee
|
||||
}
|
||||
return base.CanHitNPC(target);
|
||||
}
|
||||
public override void AI()
|
||||
|
||||
void SpawnLogic()
|
||||
{
|
||||
player.Calamity().mouseWorldListener = true;
|
||||
if (!hasSpawned)
|
||||
Projectile.netUpdate = true;
|
||||
//This is used when spawned by Evolution.
|
||||
//Set here instead of on spawn so it all syncs in MP
|
||||
if (Projectile.ai[0] != 0)
|
||||
{
|
||||
Projectile.netUpdate = true;
|
||||
if (Projectile.ai[0] != 0)
|
||||
//Setting AP so high guarantees we get the full dmg of the projectile
|
||||
//We also want to guarantee the proj doesn't crit ever
|
||||
Projectile.ArmorPenetration = 1000;
|
||||
Projectile.DamageType = DamageClass.Generic;
|
||||
Projectile.CritChance = 0;
|
||||
|
||||
//When not holding Mirror Blade, shards launch instantly
|
||||
if (Main.player[Projectile.owner].HeldItem.type != ModContent.ItemType<MirrorBlade>())
|
||||
{
|
||||
//This is used when spawned by Evolution.
|
||||
//Setting AP so high guarantees we get the full dmg of the projectile.
|
||||
Projectile.ArmorPenetration = 1000;
|
||||
shardShield = 10;
|
||||
hasSpawned = true;
|
||||
shardShield = 0;
|
||||
isShard = false;
|
||||
Projectile.timeLeft = 1200;
|
||||
Projectile.velocity = Projectile.DirectionTo(player.Center) * -20f;
|
||||
Projectile.DamageType = DamageClass.Generic;
|
||||
Projectile.CritChance = 0;
|
||||
return;
|
||||
}
|
||||
shardNum = player.ownedProjectileCounts[Projectile.type];
|
||||
hasSpawned = true;
|
||||
shardNum = 0;
|
||||
foreach (var proj in Main.projectile)
|
||||
//When holding Mirror Blade, the shards orbit the player like the blade shards.
|
||||
//Evoultion shards insert themselves at the *end* of the shard list. This means they will launch themselves before any Mirror Blade shards are launched
|
||||
//This is done because Evolution shards don't get the 2/3x dmg from shattering the mirror shield, so they're less valuable to be stored.
|
||||
else
|
||||
{
|
||||
if (proj.active && proj.type == ModContent.ProjectileType<MirrorBlast>() && proj.owner == Projectile.owner)
|
||||
|
||||
shardNum = player.ownedProjectileCounts[Projectile.type];
|
||||
hasSpawned = true;
|
||||
shardNum = 0;
|
||||
foreach (var proj in Main.projectile)
|
||||
{
|
||||
(proj.ModProjectile as MirrorBlast).shardNum++;
|
||||
proj.netUpdate = true;
|
||||
if (proj.active && proj.type == ModContent.ProjectileType<MirrorBlast>() && proj.owner == Projectile.owner && proj.ModProjectile<MirrorBlast>().shardNum > -1)
|
||||
{
|
||||
shardNum++;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
//If not from The Evolution, run normal spawn logic
|
||||
shardNum = player.ownedProjectileCounts[Projectile.type];
|
||||
hasSpawned = true;
|
||||
shardNum = 0;
|
||||
foreach (var proj in Main.projectile)
|
||||
{
|
||||
if (proj.active && proj.type == ModContent.ProjectileType<MirrorBlast>() && proj.owner == Projectile.owner)
|
||||
{
|
||||
(proj.ModProjectile as MirrorBlast).shardNum++;
|
||||
proj.netUpdate = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
public override void AI()
|
||||
{
|
||||
player.Calamity().mouseWorldListener = true;
|
||||
if (!hasSpawned)
|
||||
SpawnLogic();
|
||||
if (isShield)
|
||||
{
|
||||
if (shardNum > 10 || Projectile.timeLeft < 2)
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.Projectiles.Melee.Shortswords
|
||||
public override bool drawSwordTrail => false;
|
||||
public override bool AlternateSwings => false;
|
||||
|
||||
public override bool useMeleeSpeed => true;
|
||||
public override bool useAttackSpeed => true;
|
||||
|
||||
public override int swingTime { get; set; } = 8;
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Projectiles.Melee.Spears
|
||||
public class GildedProboscisProj : BaseSwordHoldoutProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Melee";
|
||||
public override bool useMeleeSpeed => false;
|
||||
public override bool useAttackSpeed => false;
|
||||
public override bool useMeleeSize => false;
|
||||
public override int swingWidth => 360;
|
||||
public override Item BaseItem => ModContent.GetModItem(ModContent.ItemType<GildedProboscis>()).Item;
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Rogue";
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Rogue/DuststormInABottle";
|
||||
public override bool useMeleeSpeed => false;
|
||||
public override bool useAttackSpeed => true;
|
||||
public override bool useMeleeSize => false;
|
||||
public override int swingWidth => 180;
|
||||
public override Item BaseItem => ModContent.GetModItem(ModContent.ItemType<DuststormInABottle>()).Item;
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Rogue";
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Rogue/LemonNade";
|
||||
public override bool useMeleeSpeed => false;
|
||||
public override bool useAttackSpeed => true;
|
||||
public override bool useMeleeSize => false;
|
||||
public override int swingWidth => 180;
|
||||
public override Item BaseItem => ModContent.GetModItem(ModContent.ItemType<LemonNade>()).Item;
|
||||
|
||||
@@ -65,8 +65,8 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
if (!Main.npc[(int)StuckEnemyID - 1].active)
|
||||
{
|
||||
StuckEnemyID = 0;
|
||||
Projectile.velocity = -Vector2.UnitY.RotatedByRandom(0.25f) * Main.rand.NextFloat(0, 1f);
|
||||
Projectile.tileCollide = true;
|
||||
Projectile.timeLeft = ExplodeTime;
|
||||
return;
|
||||
}
|
||||
Projectile.Center = Main.npc[(int)StuckEnemyID - 1].Center + Vector2.UnitX.RotatedBy(StuckEnemyRotation) * StuckEnemyDistance;
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Rogue";
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Rogue/SealedSingularity";
|
||||
public override bool useMeleeSpeed => false;
|
||||
public override bool useAttackSpeed => true;
|
||||
public override bool useMeleeSize => false;
|
||||
public override int swingWidth => 180;
|
||||
public override Item BaseItem => ModContent.GetModItem(ModContent.ItemType<SealedSingularity>()).Item;
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Rogue";
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Rogue/Supernova";
|
||||
public override bool useMeleeSpeed => false;
|
||||
public override bool useAttackSpeed => true;
|
||||
public override bool useMeleeSize => false;
|
||||
public override int swingWidth => 180;
|
||||
public override Item BaseItem => ModContent.GetModItem(ModContent.ItemType<Supernova>()).Item;
|
||||
|
||||
@@ -148,9 +148,9 @@ namespace CalamityMod
|
||||
if (addHeldItemScale)
|
||||
baseScale += (player.HeldItem.scale - 1);
|
||||
if (player.HasBuff(BuffID.Tipsy))
|
||||
baseScale += 0.15f;
|
||||
baseScale += 0.25f;
|
||||
if (player.GetModPlayer<IVDripPlayer>().HasAlcohol(AlcoholType.Ale) || player.GetModPlayer<IVDripPlayer>().HasAlcohol(AlcoholType.Sake))
|
||||
baseScale += 0.15f;
|
||||
baseScale += 0.25f;
|
||||
|
||||
return baseScale;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user