Manual merge of Xyk debuffs into Cal Player split
This commit is contained in:
commit
5918b5da7e
14 files changed
+2679
-2636
No files matched your search
@@ -326,6 +326,9 @@ namespace CalamityMod.Balancing
|
||||
// 30% resist to Eclipse Fall.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<EclipsesFallMain>()))));
|
||||
|
||||
// 30% resist to Pulse Rifle.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<PulseRifleShot>()))));
|
||||
|
||||
// 30% resist to Sirius.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<SiriusExplosion>()))));
|
||||
|
||||
|
||||
+1
-2615
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -46,6 +46,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(7, 5));
|
||||
ItemID.Sets.AnimatesAsSoul[Type] = true;
|
||||
ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType<TheCommunity>();
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
public new string LocalizationCategory => "Items.Weapons.DraedonsArsenal";
|
||||
public static readonly SoundStyle FireSound = new("CalamityMod/Sounds/Item/PulseRifleFire");
|
||||
|
||||
private int BaseDamage = 1420;
|
||||
private int BaseDamage = 1280;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
|
||||
@@ -31,6 +31,11 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
Item.value = CalamityGlobalItem.Rarity15BuyPrice;
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
}
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType<GhastlyVisage>();
|
||||
}
|
||||
|
||||
// This weapon uses a holdout projectile.
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
|
||||
|
||||
@@ -32,6 +32,11 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
Item.rare = ModContent.RarityType<Violet>();
|
||||
}
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType<BurningSea>();
|
||||
}
|
||||
|
||||
// This weapon uses a holdout projectile.
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public class Nadir : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Melee";
|
||||
public static int BaseDamage = 390;
|
||||
public static int BaseDamage = 365;
|
||||
public static float ProjShootSpeed = 20f;
|
||||
public static int FadeoutSpeed = 20;
|
||||
|
||||
|
||||
@@ -20,10 +20,10 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Item.width = 110;
|
||||
Item.height = 46;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.damage = 940;
|
||||
Item.damage = 740;
|
||||
Item.knockBack = 16f;
|
||||
Item.useTime = 71;
|
||||
Item.useAnimation = 71;
|
||||
Item.useTime = 84;
|
||||
Item.useAnimation = 84;
|
||||
Item.autoReuse = true;
|
||||
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
|
||||
@@ -29,6 +29,11 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
Item.shootSpeed = 10f;
|
||||
Item.DamageType = DamageClass.Summon;
|
||||
}
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType<EntropysVigil>();
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
|
||||
@@ -28,6 +28,11 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
Item.shootSpeed = 10f;
|
||||
Item.DamageType = DamageClass.Summon;
|
||||
}
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType<StaffoftheMechworm>();
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
|
||||
|
||||
|
||||
@@ -82,11 +82,11 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
PulseBurst(4f, 5f);
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => Projectile.timeLeft < 280 && target.CanBeChasedBy(Projectile);
|
||||
public override bool? CanHitNPC(NPC target) => Projectile.timeLeft < 480 && target.CanBeChasedBy(Projectile);
|
||||
|
||||
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
|
||||
{
|
||||
if (Projectile.ai[1] < 5f && !hasHit && Main.myPlayer == Projectile.owner)
|
||||
if (Projectile.ai[1] < 3f && !hasHit && Main.myPlayer == Projectile.owner)
|
||||
{
|
||||
hasHit = true;
|
||||
|
||||
@@ -103,7 +103,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
|
||||
if (alreadyTargetedNPCType != Main.npc[i].whoAmI && Projectile.Center.ManhattanDistance(Main.npc[i].Center) < 600f)
|
||||
{
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.SafeDirectionTo(Main.npc[i].Center) * 5f, Projectile.type, Projectile.damage / 2, 0f, Projectile.owner, Main.npc[i].whoAmI, Projectile.ai[1] + 1f);
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.SafeDirectionTo(Main.npc[i].Center) * 5f, Projectile.type, Projectile.damage * 0.4f, 0f, Projectile.owner, Main.npc[i].whoAmI, Projectile.ai[1] + 1f);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -134,16 +134,6 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
totalDust = 250;
|
||||
speed1 = 5.5f;
|
||||
break;
|
||||
case 4:
|
||||
height = 20;
|
||||
totalDust = 200;
|
||||
speed1 = 4f;
|
||||
break;
|
||||
case 5:
|
||||
height = 15;
|
||||
totalDust = 150;
|
||||
speed1 = 2.5f;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
Projectile.penetrate = -1;
|
||||
Projectile.usesLocalNPCImmunity = true;
|
||||
Projectile.localNPCHitCooldown = Projectile.MaxUpdates * 10;
|
||||
Projectile.localNPCHitCooldown = Projectile.MaxUpdates * 4;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
@@ -221,8 +221,9 @@ namespace CalamityMod.UI
|
||||
Rectangle barRectangle = barTexture.Bounds;
|
||||
barRectangle.Height = (int)(correctHeight * flightRatio);
|
||||
Vector2 origin = correctBorder.Size() * 0.5f;
|
||||
|
||||
spriteBatch.Draw(barTexture, screenPos - new Vector2(offset * uiScale, 11), barRectangle, Color.White, MathHelper.ToRadians(180), origin, uiScale, SpriteEffects.None, 0);
|
||||
origin.Y += 0.1f;
|
||||
Vector2 drawPos = screenPos - new Vector2(offset * uiScale, 14);
|
||||
spriteBatch.Draw(barTexture, drawPos, barRectangle, Color.White, MathHelper.ToRadians(180), origin, uiScale * 1.06f, SpriteEffects.None, 0);
|
||||
}
|
||||
if (!completedAnimation && FlightAnimFrame >= 0)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user