balancing, fixes, festive wings buff

This commit is contained in:
termigator1359 committed 2020-03-22 11:27:23 -04:00
1 parent 361643db22
commit 62700b3da6
6 files changed
+59 -10

No files matched your search

+2 -2
View File
@@ -66,9 +66,9 @@ namespace CalamityMod.Items.Accessories.Wings
player.noFallDmg = true;
if (modPlayer.icicleCooldown <= 0)
{
if (player.controlJump && !player.jumpAgainCloud && player.jump == 0 && player.velocity.Y != 0f)
if (player.controlJump && !player.jumpAgainCloud && player.jump == 0 && player.velocity.Y != 0f && !player.mount.Active && !player.mount.Cart)
{
int p = Projectile.NewProjectile(player.Center.X, player.Center.Y, player.velocity.X * 0f, 2f, ModContent.ProjectileType<FrostShardFriendly>(), 25, 3f, player.whoAmI);
int p = Projectile.NewProjectile(player.Center.X, player.Center.Y, player.velocity.X * 0f, 2f, ModContent.ProjectileType<FrostShardFriendly>(), (int)(25 * player.allDamage), 3f, player.whoAmI);
Main.projectile[p].minion = false;
Main.projectile[p].Calamity().rogue = false;
Main.projectile[p].frame = Main.rand.Next(5);
+21 -5
View File
@@ -84,7 +84,7 @@ namespace CalamityMod.Items
if (CalamityMod.weaponAutoreuseList?.Contains(item.type) ?? false)
item.autoReuse = true;
if (item.type == ItemID.PsychoKnife || item.type == ItemID.PearlwoodSword || item.type == ItemID.PearlwoodBow || item.type == ItemID.TaxCollectorsStickOfDoom)
if (item.type == ItemID.PsychoKnife || item.type == ItemID.TaxCollectorsStickOfDoom)
item.damage *= 4;
else if (item.type == ItemID.SpectreStaff)
item.damage *= 3;
@@ -164,15 +164,21 @@ namespace CalamityMod.Items
item.useTime = 15;
item.damage *= 4;
item.tileBoost += 1;
item.rare = 4;
}
if (item.type == ItemID.PearlwoodBow)
{
item.useAnimation += 8; //35
item.useTime += 8; //35
item.shootSpeed += 3.4f; //10f
item.knockBack += 1f; //1f
item.shoot = ProjectileID.RainbowFront;
item.rare = 4;
item.damage *= 4;
}
if (item.type == ItemID.PearlwoodSword)
{
item.damage *= 4;
item.rare = 4;
}
}
#endregion
@@ -361,7 +367,6 @@ namespace CalamityMod.Items
if (Main.projectile[i].active && (Main.projectile[i].type == ProjectileID.RainbowFront || Main.projectile[i].type == ProjectileID.RainbowBack) && Main.projectile[i].owner == player.whoAmI)
{
Main.projectile[i].Kill();
break;
}
}
for (int i = -8; i <= 8; i += 8)
@@ -1866,7 +1871,8 @@ Provides heat and cold protection in Death Mode";
"Acceleration multiplier: 1\n" +
"Average vertical speed\n" +
"Flight time: 170\n" +
"+50 max life";
"+50 max life\n" +
"Ornaments rain down as you fly";
}
}
}
@@ -2863,6 +2869,16 @@ Provides heat and cold protection in Death Mode";
{
player.noFallDmg = true;
player.statLifeMax2 += 50;
if (modPlayer.icicleCooldown <= 0)
{
if (player.controlJump && !player.jumpAgainCloud && player.jump == 0 && player.velocity.Y != 0f && !player.mount.Active && !player.mount.Cart)
{
int p = Projectile.NewProjectile(player.Center.X, player.Center.Y, player.velocity.X * 0f, 2f, ProjectileID.OrnamentFriendly, (int)(100 * player.allDamage), 5f, player.whoAmI);
Main.projectile[p].melee = false;
Main.projectile[p].Calamity().lineColor = 1;
modPlayer.icicleCooldown = 10;
}
}
}
else if (item.type == ItemID.SpookyWings) // Bonus to summon stats while wearing spooky armor
{
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Rogue
{
item.width = 42;
item.height = 46;
item.damage = 820;
item.damage = 950;
item.noMelee = true;
item.noUseGraphic = true;
item.useAnimation = item.useTime = 20;
+1 -1
View File
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Summon
public override void SetDefaults()
{
item.damage = 680;
item.damage = 640;
item.mana = 32;
item.summon = true;
item.sentry = true;
+33
View File
@@ -623,6 +623,39 @@ namespace CalamityMod.Projectiles
}
}
if (projectile.type == ProjectileID.OrnamentFriendly && lineColor == 1) //spawned by Festive Wings
{
Vector2 center = projectile.Center;
float maxDistance = 460f;
bool homeIn = false;
for (int i = 0; i < Main.maxNPCs; i++)
{
if (Main.npc[i].CanBeChasedBy(projectile, false))
{
float extraDistance = (float)(Main.npc[i].width / 2) + (float)(Main.npc[i].height / 2);
bool canHit = Collision.CanHit(projectile.Center, 1, 1, Main.npc[i].Center, 1, 1);
if (Vector2.Distance(Main.npc[i].Center, projectile.Center) < (maxDistance + extraDistance) && canHit)
{
center = Main.npc[i].Center;
homeIn = true;
break;
}
}
}
if (homeIn)
{
Vector2 homeInVector = projectile.DirectionTo(center);
if (homeInVector.HasNaNs())
homeInVector = Vector2.UnitY;
projectile.velocity = (projectile.velocity * 20f + homeInVector * 15f) / (21f);
}
}
if (!projectile.npcProj && !projectile.trap && projectile.friendly && projectile.damage > 0)
{
if (modPlayer.eQuiver && projectile.ranged && CalamityMod.rangedProjectileExceptionList.TrueForAll(x => projectile.type != x))
+1 -1
View File
@@ -85,7 +85,7 @@ namespace CalamityMod.Projectiles.Summon
if (hasHomingTarget)
{
NPC target = Main.npc[targetIdx];
Vector2 homingVector = (target.Center - projectile.Center).SafeNormalize(Vector2.Zero) * 15f;
Vector2 homingVector = (target.Center - projectile.Center).SafeNormalize(Vector2.Zero) * 25f;
float homingRatio = 20f;
projectile.velocity = (projectile.velocity * homingRatio + homingVector) / (homingRatio + 1f);
}