Butt plug
This commit is contained in:
1 parent
54eabb26b0
commit
17ecb67bd4
14 files changed
+1865
-279
No files matched your search
@@ -3294,16 +3294,9 @@ namespace CalamityMod.CalPlayer
|
||||
if (aquaticScourgeLore && player.wellFed)
|
||||
{
|
||||
player.statDefense += 1;
|
||||
player.meleeCrit += 1;
|
||||
player.meleeDamage += 0.025f;
|
||||
player.allDamage += 0.025f;
|
||||
AllCritBoost(1);
|
||||
player.meleeSpeed += 0.025f;
|
||||
player.magicCrit += 1;
|
||||
player.magicDamage += 0.025f;
|
||||
player.rangedCrit += 1;
|
||||
player.rangedDamage += 0.025f;
|
||||
player.thrownCrit += 1;
|
||||
player.thrownDamage += 0.025f;
|
||||
player.minionDamage += 0.025f;
|
||||
player.minionKB += 0.25f;
|
||||
player.moveSpeed += 0.1f;
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ using Terraria;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Items.Accessories.Wings
|
||||
{
|
||||
@@ -16,7 +17,8 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"Horizontal speed: 8\n" +
|
||||
"Acceleration multiplier: 1.5\n" +
|
||||
"Good vertical speed\n" +
|
||||
"Flight time: 80");
|
||||
"Flight time: 80\n" +
|
||||
"15% increased movement speed while wearing the Reaver Armor");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -89,6 +91,13 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
|
||||
public override void VerticalWingSpeeds(Player player, ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetCalamityPlayer();
|
||||
|
||||
if (modPlayer.reaverDoubleTap || modPlayer.reaverBurst || modPlayer.reaverOrb || modPlayer.reaverBlast || modPlayer.reaverSpore)
|
||||
{
|
||||
player.moveSpeed += 0.15f;
|
||||
}
|
||||
|
||||
ascentWhenFalling = 0.75f;
|
||||
ascentWhenRising = 0.15f;
|
||||
maxCanAscendMultiplier = 1f;
|
||||
|
||||
@@ -3,6 +3,7 @@ using Terraria;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Items.Accessories.Wings
|
||||
{
|
||||
@@ -16,7 +17,8 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"Horizontal speed: 7.75\n" +
|
||||
"Acceleration multiplier: 1.5\n" +
|
||||
"Average vertical speed\n" +
|
||||
"Flight time: 180");
|
||||
"Flight time: 180\n" +
|
||||
"10% increased damage while wearing the Ataxia Armor");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -51,6 +53,13 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
|
||||
public override void VerticalWingSpeeds(Player player, ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetCalamityPlayer();
|
||||
|
||||
if (modPlayer.ataxiaBlaze)
|
||||
{
|
||||
player.allDamage += 0.1f;
|
||||
}
|
||||
|
||||
ascentWhenFalling = 0.5f;
|
||||
ascentWhenRising = 0.1f;
|
||||
maxCanAscendMultiplier = 0.5f;
|
||||
|
||||
@@ -3,6 +3,7 @@ using Terraria;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Items.Accessories.Wings
|
||||
{
|
||||
@@ -17,7 +18,8 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"Horizontal speed: 9\n" +
|
||||
"Acceleration multiplier: 1.75\n" +
|
||||
"Good vertical speed\n" +
|
||||
"Flight time: 120");
|
||||
"Flight time: 120\n" +
|
||||
"20% increased movement speed and 40% increased jump speed while wearing the Astral Armor");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -64,6 +66,14 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
|
||||
public override void VerticalWingSpeeds(Player player, ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetCalamityPlayer();
|
||||
|
||||
if (modPlayer.astralStarRain)
|
||||
{
|
||||
player.moveSpeed += 0.2f;
|
||||
player.jumpSpeedBoost += 0.4f;
|
||||
}
|
||||
|
||||
ascentWhenFalling = 0.8f;
|
||||
ascentWhenRising = 0.155f;
|
||||
maxCanAscendMultiplier = 1.05f;
|
||||
|
||||
@@ -3,6 +3,7 @@ using Terraria;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Items.Accessories.Wings
|
||||
{
|
||||
@@ -16,7 +17,8 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"Horizontal speed: 7.5\n" +
|
||||
"Acceleration multiplier: 1\n" +
|
||||
"Average vertical speed\n" +
|
||||
"Flight time: 150");
|
||||
"Flight time: 150\n" +
|
||||
"5% increased damage and critical strike chance while wearing the Daedalus Armor");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -51,6 +53,14 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
|
||||
public override void VerticalWingSpeeds(Player player, ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetCalamityPlayer();
|
||||
|
||||
if (modPlayer.daedalusReflect || modPlayer.daedalusCrystal || modPlayer.daedalusAbsorb || modPlayer.daedalusShard || modPlayer.daedalusSplit)
|
||||
{
|
||||
player.allDamage += 0.05f;
|
||||
modPlayer.AllCritBoost(5);
|
||||
}
|
||||
|
||||
ascentWhenFalling = 0.5f;
|
||||
ascentWhenRising = 0.1f;
|
||||
maxCanAscendMultiplier = 0.5f;
|
||||
|
||||
@@ -4,6 +4,7 @@ using Terraria;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Items.Accessories.Wings
|
||||
{
|
||||
@@ -17,7 +18,8 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"Horizontal speed: 9.5\n" +
|
||||
"Acceleration multiplier: 2.5\n" +
|
||||
"Great vertical speed\n" +
|
||||
"Flight time: 210");
|
||||
"Flight time: 210\n" +
|
||||
"+15 defense and +2 life regen while wearing the Tarragon Armor");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -62,6 +64,14 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
|
||||
public override void VerticalWingSpeeds(Player player, ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetCalamityPlayer();
|
||||
|
||||
if (modPlayer.tarraSet)
|
||||
{
|
||||
player.statDefense += 15;
|
||||
player.lifeRegen += 2;
|
||||
}
|
||||
|
||||
ascentWhenFalling = 0.85f;
|
||||
ascentWhenRising = 0.15f;
|
||||
maxCanAscendMultiplier = 1f;
|
||||
|
||||
@@ -3,6 +3,7 @@ using Terraria;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Items.Accessories.Wings
|
||||
{
|
||||
@@ -16,7 +17,8 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"Horizontal speed: 8.5\n" +
|
||||
"Acceleration multiplier: 2\n" +
|
||||
"Good vertical speed\n" +
|
||||
"Flight time: 180");
|
||||
"Flight time: 180\n" +
|
||||
"5% increased rogue damage and critical strike chance while wearing the Xeroc Armor");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -51,6 +53,14 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
|
||||
public override void VerticalWingSpeeds(Player player, ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetCalamityPlayer();
|
||||
|
||||
if (modPlayer.xerocSet)
|
||||
{
|
||||
player.GetCalamityPlayer().throwingDamage += 0.05f;
|
||||
player.GetCalamityPlayer().throwingCrit += 5;
|
||||
}
|
||||
|
||||
ascentWhenFalling = 0.75f;
|
||||
ascentWhenRising = 0.15f;
|
||||
maxCanAscendMultiplier = 1f;
|
||||
|
||||
+397
-20
@@ -718,6 +718,16 @@ namespace CalamityMod.Items
|
||||
}
|
||||
}
|
||||
}
|
||||
if (item.type == ItemID.FireGauntlet)
|
||||
{
|
||||
foreach (TooltipLine line2 in tooltips)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip1")
|
||||
{
|
||||
line2.text = "14% increased melee damage and speed";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (item.type == ItemID.SpectreHood)
|
||||
{
|
||||
foreach (TooltipLine line2 in tooltips)
|
||||
@@ -1168,7 +1178,7 @@ namespace CalamityMod.Items
|
||||
}
|
||||
}
|
||||
}
|
||||
if (item.type == ItemID.AngelWings || item.type == ItemID.DemonWings)
|
||||
if (item.type == ItemID.AngelWings)
|
||||
{
|
||||
foreach (TooltipLine line2 in tooltips)
|
||||
{
|
||||
@@ -1178,7 +1188,23 @@ namespace CalamityMod.Items
|
||||
"Horizontal speed: 6.25\n" +
|
||||
"Acceleration multiplier: 1\n" +
|
||||
"Average vertical speed\n" +
|
||||
"Flight time: 100";
|
||||
"Flight time: 100\n" +
|
||||
"+20 max life, +15 defense and +3 life regen";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (item.type == ItemID.DemonWings)
|
||||
{
|
||||
foreach (TooltipLine line2 in tooltips)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip0")
|
||||
{
|
||||
line2.text = "Allows flight and slow fall\n" +
|
||||
"Horizontal speed: 6.25\n" +
|
||||
"Acceleration multiplier: 1\n" +
|
||||
"Average vertical speed\n" +
|
||||
"Flight time: 100\n" +
|
||||
"10% increased damage and critical strike chance";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1196,7 +1222,7 @@ namespace CalamityMod.Items
|
||||
}
|
||||
}
|
||||
}
|
||||
if (item.type == ItemID.ButterflyWings || item.type == ItemID.FairyWings || item.type == ItemID.BeeWings)
|
||||
if (item.type == ItemID.ButterflyWings)
|
||||
{
|
||||
foreach (TooltipLine line2 in tooltips)
|
||||
{
|
||||
@@ -1206,11 +1232,43 @@ namespace CalamityMod.Items
|
||||
"Horizontal speed: 6.75\n" +
|
||||
"Acceleration multiplier: 1\n" +
|
||||
"Average vertical speed\n" +
|
||||
"Flight time: 130";
|
||||
"Flight time: 130\n" +
|
||||
"+50 max mana, 5% decreased mana usage,\n" +
|
||||
"10% increased magic damage and 5% increased magic critical strike chance";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (item.type == ItemID.HarpyWings || item.type == ItemID.BoneWings)
|
||||
if (item.type == ItemID.FairyWings)
|
||||
{
|
||||
foreach (TooltipLine line2 in tooltips)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip0")
|
||||
{
|
||||
line2.text = "Allows flight and slow fall\n" +
|
||||
"Horizontal speed: 6.75\n" +
|
||||
"Acceleration multiplier: 1\n" +
|
||||
"Average vertical speed\n" +
|
||||
"Flight time: 130\n" +
|
||||
"+80 max life";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (item.type == ItemID.BeeWings)
|
||||
{
|
||||
foreach (TooltipLine line2 in tooltips)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip0")
|
||||
{
|
||||
line2.text = "Allows flight and slow fall\n" +
|
||||
"Horizontal speed: 6.75\n" +
|
||||
"Acceleration multiplier: 1\n" +
|
||||
"Average vertical speed\n" +
|
||||
"Flight time: 130\n" +
|
||||
"Honey buff at all times";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (item.type == ItemID.HarpyWings)
|
||||
{
|
||||
foreach (TooltipLine line2 in tooltips)
|
||||
{
|
||||
@@ -1220,12 +1278,29 @@ namespace CalamityMod.Items
|
||||
"Horizontal speed: 7\n" +
|
||||
"Acceleration multiplier: 1\n" +
|
||||
"Average vertical speed\n" +
|
||||
"Flight time: 140";
|
||||
"Flight time: 140\n" +
|
||||
"30% increased movement speed";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (item.type == ItemID.FlameWings || item.type == ItemID.FrozenWings || item.type == ItemID.GhostWings ||
|
||||
item.type == ItemID.BeetleWings)
|
||||
if (item.type == ItemID.BoneWings)
|
||||
{
|
||||
foreach (TooltipLine line2 in tooltips)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip0")
|
||||
{
|
||||
line2.text = "Allows flight and slow fall\n" +
|
||||
"Horizontal speed: 7\n" +
|
||||
"Acceleration multiplier: 1\n" +
|
||||
"Average vertical speed\n" +
|
||||
"Flight time: 140\n" +
|
||||
"15% increased movement speed, 12% increased ranged damage,\n" +
|
||||
"16% increased ranged critical strike chance\n" +
|
||||
"and +30 defense while wearing the Necro Armor";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (item.type == ItemID.FlameWings)
|
||||
{
|
||||
foreach (TooltipLine line2 in tooltips)
|
||||
{
|
||||
@@ -1235,7 +1310,59 @@ namespace CalamityMod.Items
|
||||
"Horizontal speed: 7.5\n" +
|
||||
"Acceleration multiplier: 1\n" +
|
||||
"Average vertical speed\n" +
|
||||
"Flight time: 160";
|
||||
"Flight time: 160\n" +
|
||||
"10% increased melee damage\n" +
|
||||
"and 5% increased melee critical strike chance";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (item.type == ItemID.FrozenWings)
|
||||
{
|
||||
foreach (TooltipLine line2 in tooltips)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip0")
|
||||
{
|
||||
line2.text = "Allows flight and slow fall\n" +
|
||||
"Horizontal speed: 7.5\n" +
|
||||
"Acceleration multiplier: 1\n" +
|
||||
"Average vertical speed\n" +
|
||||
"Flight time: 160\n" +
|
||||
"7% increased melee and ranged damage\n" +
|
||||
"and 3% increased melee and ranged critical strike chance\n" +
|
||||
"while wearing the Frost Armor";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (item.type == ItemID.GhostWings)
|
||||
{
|
||||
foreach (TooltipLine line2 in tooltips)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip0")
|
||||
{
|
||||
line2.text = "Allows flight and slow fall\n" +
|
||||
"Horizontal speed: 7.5\n" +
|
||||
"Acceleration multiplier: 1\n" +
|
||||
"Average vertical speed\n" +
|
||||
"Flight time: 160\n" +
|
||||
"+10 defense and 5% increased damage reduction while wearing the Spectre Armor and Hood\n" +
|
||||
"+20 max mana, 5% increased magic damage and critical strike chance,\n" +
|
||||
"and 5% decreased mana usage while wearing the Spectre Armor and Mask";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (item.type == ItemID.BeetleWings)
|
||||
{
|
||||
foreach (TooltipLine line2 in tooltips)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip0")
|
||||
{
|
||||
line2.text = "Allows flight and slow fall\n" +
|
||||
"Horizontal speed: 7.5\n" +
|
||||
"Acceleration multiplier: 1\n" +
|
||||
"Average vertical speed\n" +
|
||||
"Flight time: 160\n" +
|
||||
"+15 defense and 10% increased damage reduction while wearing the Beetle Armor and Shell\n" +
|
||||
"10% increased melee damage and critical strike chance while wearing the Beetle Armor and Scale Mail";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1249,7 +1376,10 @@ namespace CalamityMod.Items
|
||||
"Horizontal speed: 0\n" +
|
||||
"Acceleration multiplier: 0\n" +
|
||||
"Average vertical speed\n" +
|
||||
"Flight time: 100";
|
||||
"Flight time: 100\n" +
|
||||
"Gills effect and you can move freely through liquids\n" +
|
||||
"You fall faster while submerged in liquid\n" +
|
||||
"20% increased movement speed and 180% increased jump speed";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1277,7 +1407,9 @@ namespace CalamityMod.Items
|
||||
"Horizontal speed: 7.75\n" +
|
||||
"Acceleration multiplier: 1\n" +
|
||||
"Average vertical speed\n" +
|
||||
"Flight time: 180";
|
||||
"Flight time: 180\n" +
|
||||
"+10 defense, 10% increased movement speed,\n" +
|
||||
"and 5% increased damage and critical strike chance";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1305,7 +1437,10 @@ namespace CalamityMod.Items
|
||||
"Horizontal speed: 0\n" +
|
||||
"Acceleration multiplier: 0\n" +
|
||||
"Average vertical speed\n" +
|
||||
"Flight time: 140";
|
||||
"Flight time: 140\n" +
|
||||
"10% increased movement speed and 100% increased jump speed\n" +
|
||||
"+20 defense, 15% increased damage, 7% increased critical strike chance\n" +
|
||||
"and 10% increased movement speed at night";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1326,7 +1461,7 @@ namespace CalamityMod.Items
|
||||
}
|
||||
}
|
||||
}
|
||||
if (item.type == ItemID.TatteredFairyWings || item.type == ItemID.SpookyWings)
|
||||
if (item.type == ItemID.TatteredFairyWings)
|
||||
{
|
||||
foreach (TooltipLine line2 in tooltips)
|
||||
{
|
||||
@@ -1336,7 +1471,23 @@ namespace CalamityMod.Items
|
||||
"Horizontal speed: 7.5\n" +
|
||||
"Acceleration multiplier: 1\n" +
|
||||
"Average vertical speed\n" +
|
||||
"Flight time: 180";
|
||||
"Flight time: 180\n" +
|
||||
"5% increased damage and critical strike chance";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (item.type == ItemID.SpookyWings)
|
||||
{
|
||||
foreach (TooltipLine line2 in tooltips)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip0")
|
||||
{
|
||||
line2.text = "Allows flight and slow fall\n" +
|
||||
"Horizontal speed: 7.5\n" +
|
||||
"Acceleration multiplier: 1\n" +
|
||||
"Average vertical speed\n" +
|
||||
"Flight time: 180\n" +
|
||||
"+1 max minion and 10% increased minion damage while wearing the Spooky Armor";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1364,7 +1515,8 @@ namespace CalamityMod.Items
|
||||
"Horizontal speed: 7.5\n" +
|
||||
"Acceleration multiplier: 1\n" +
|
||||
"Average vertical speed\n" +
|
||||
"Flight time: 170";
|
||||
"Flight time: 170\n" +
|
||||
"+50 max life";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1378,11 +1530,14 @@ namespace CalamityMod.Items
|
||||
"Horizontal speed: 0\n" +
|
||||
"Acceleration multiplier: 0\n" +
|
||||
"Average vertical speed\n" +
|
||||
"Flight time: 160";
|
||||
"Flight time: 160\n" +
|
||||
"+10 defense, 10% increased damage," +
|
||||
"5% increased critical strike chance," +
|
||||
"10% increased movement speed and 120% increased jump speed";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (item.type == ItemID.WingsSolar || item.type == ItemID.WingsStardust)
|
||||
if (item.type == ItemID.WingsSolar)
|
||||
{
|
||||
foreach (TooltipLine line2 in tooltips)
|
||||
{
|
||||
@@ -1392,11 +1547,28 @@ namespace CalamityMod.Items
|
||||
"Horizontal speed: 9\n" +
|
||||
"Acceleration multiplier: 2.5\n" +
|
||||
"Great vertical speed\n" +
|
||||
"Flight time: 180";
|
||||
"Flight time: 180\n" +
|
||||
"7% increased melee damage and 3% increased melee critical strike chance\n" +
|
||||
"while wearing the Solar Flare Armor";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (item.type == ItemID.WingsVortex || item.type == ItemID.WingsNebula)
|
||||
if (item.type == ItemID.WingsStardust)
|
||||
{
|
||||
foreach (TooltipLine line2 in tooltips)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip0")
|
||||
{
|
||||
line2.text = "Allows flight and slow fall\n" +
|
||||
"Horizontal speed: 9\n" +
|
||||
"Acceleration multiplier: 2.5\n" +
|
||||
"Great vertical speed\n" +
|
||||
"Flight time: 180\n" +
|
||||
"+1 max minion and 5% increased minion damage while wearing the Stardust Armor";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (item.type == ItemID.WingsVortex)
|
||||
{
|
||||
foreach (TooltipLine line2 in tooltips)
|
||||
{
|
||||
@@ -1406,7 +1578,25 @@ namespace CalamityMod.Items
|
||||
"Horizontal speed: 6.5\n" +
|
||||
"Acceleration multiplier: 1.5\n" +
|
||||
"Good vertical speed\n" +
|
||||
"Flight time: 160";
|
||||
"Flight time: 160\n" +
|
||||
"3% increased ranged damage and 7% increased ranged critical strike chance\n" +
|
||||
"while wearing the Vortex Armor";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (item.type == ItemID.WingsNebula)
|
||||
{
|
||||
foreach (TooltipLine line2 in tooltips)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip0")
|
||||
{
|
||||
line2.text = "Allows flight and slow fall\n" +
|
||||
"Horizontal speed: 6.5\n" +
|
||||
"Acceleration multiplier: 1.5\n" +
|
||||
"Good vertical speed\n" +
|
||||
"Flight time: 160\n" +
|
||||
"+20 max mana, 5% increased magic damage and critical strike chance,\n" +
|
||||
"and 5% decreased mana usage while wearing the Nebula Armor";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1655,6 +1845,12 @@ namespace CalamityMod.Items
|
||||
#region Equip Changes
|
||||
public override void UpdateEquip(Item item, Player player)
|
||||
{
|
||||
if (item.type == ItemID.FireGauntlet)
|
||||
{
|
||||
player.meleeDamage += 0.04f;
|
||||
player.meleeSpeed += 0.04f;
|
||||
}
|
||||
|
||||
#region Head
|
||||
if (item.type == ItemID.SpectreHood)
|
||||
player.magicDamage += 0.2f;
|
||||
@@ -1798,6 +1994,187 @@ namespace CalamityMod.Items
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetCalamityPlayer();
|
||||
|
||||
if (item.type == ItemID.AngelWings) // Boost to max life, defense, and life regen
|
||||
{
|
||||
player.statLifeMax2 += 20;
|
||||
player.statDefense += 15;
|
||||
player.lifeRegen += 3;
|
||||
}
|
||||
else if (item.type == ItemID.DemonWings) // Boost to all damage and crit
|
||||
{
|
||||
player.allDamage += 0.1f;
|
||||
modPlayer.AllCritBoost(10);
|
||||
}
|
||||
else if (item.type == ItemID.FinWings) // Boosted water abilities, faster fall in water
|
||||
{
|
||||
player.moveSpeed += 0.2f;
|
||||
player.jumpSpeedBoost += 1.8f;
|
||||
player.gills = true;
|
||||
player.ignoreWater = true;
|
||||
if (!player.mount.Active)
|
||||
{
|
||||
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
|
||||
player.maxFallSpeed = 12f;
|
||||
}
|
||||
}
|
||||
else if (item.type == ItemID.BeeWings) // Honey buff
|
||||
{
|
||||
player.AddBuff(BuffID.Honey, 2);
|
||||
}
|
||||
else if (item.type == ItemID.ButterflyWings) // Boost to magic stats
|
||||
{
|
||||
player.statManaMax2 += 50;
|
||||
player.magicDamage += 0.1f;
|
||||
player.manaCost *= 0.95f;
|
||||
player.magicCrit += 5;
|
||||
}
|
||||
else if (item.type == ItemID.FairyWings) // Boost to max life
|
||||
{
|
||||
player.statLifeMax2 += 80;
|
||||
}
|
||||
else if (item.type == ItemID.BatWings) // Stronger at night
|
||||
{
|
||||
player.moveSpeed += 0.1f;
|
||||
player.jumpSpeedBoost += 1.0f;
|
||||
if (!Main.dayTime)
|
||||
{
|
||||
player.statDefense += 20;
|
||||
player.allDamage += 0.15f;
|
||||
modPlayer.AllCritBoost(7);
|
||||
player.moveSpeed += 0.1f;
|
||||
}
|
||||
}
|
||||
else if (item.type == ItemID.HarpyWings)
|
||||
{
|
||||
player.moveSpeed += 0.3f;
|
||||
}
|
||||
else if (item.type == ItemID.BoneWings) // Bonus to ranged and defense stats while wearing necro armor
|
||||
{
|
||||
if ((player.head == ArmorIDs.Head.NecroHelmet || player.head == ArmorIDs.Head.AncientNecroHelmet) &&
|
||||
player.body == ArmorIDs.Body.NecroBreastplate && player.legs == ArmorIDs.Legs.NecroGreaves)
|
||||
{
|
||||
player.moveSpeed += 0.15f;
|
||||
player.rangedDamage += 0.12f;
|
||||
player.rangedCrit += 16;
|
||||
player.statDefense += 30;
|
||||
}
|
||||
}
|
||||
else if (item.type == ItemID.MothronWings) // Spawn baby mothrons over time to attack enemies, max of 3
|
||||
{
|
||||
player.statDefense += 10;
|
||||
player.allDamage += 0.1f;
|
||||
modPlayer.AllCritBoost(5);
|
||||
player.moveSpeed += 0.1f;
|
||||
player.jumpSpeedBoost += 1.2f;
|
||||
}
|
||||
else if (item.type == ItemID.FrozenWings) // Bonus to melee and ranged stats while wearing frost armor
|
||||
{
|
||||
if (player.head == ArmorIDs.Head.FrostHelmet && player.body == ArmorIDs.Body.FrostBreastplate && player.legs == ArmorIDs.Legs.FrostLeggings)
|
||||
{
|
||||
player.meleeDamage += 0.07f;
|
||||
player.rangedDamage += 0.07f;
|
||||
player.meleeCrit += 3;
|
||||
player.rangedCrit += 3;
|
||||
}
|
||||
}
|
||||
else if (item.type == ItemID.FlameWings) // Bonus to melee stats
|
||||
{
|
||||
player.meleeDamage += 0.1f;
|
||||
player.meleeCrit += 5;
|
||||
}
|
||||
else if (item.type == ItemID.GhostWings) // Bonus to mage stats while wearing spectre armor
|
||||
{
|
||||
if (player.body == ArmorIDs.Body.SpectreRobe && player.legs == ArmorIDs.Legs.SpectrePants)
|
||||
{
|
||||
if (player.head == ArmorIDs.Head.SpectreHood)
|
||||
{
|
||||
player.statDefense += 10;
|
||||
player.endurance += 0.05f;
|
||||
}
|
||||
else if (player.head == ArmorIDs.Head.SpectreMask)
|
||||
{
|
||||
player.statManaMax2 += 20;
|
||||
player.magicDamage += 0.05f;
|
||||
player.manaCost *= 0.95f;
|
||||
player.magicCrit += 5;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (item.type == ItemID.BeetleWings) // Boosted defense and melee stats while wearing beetle armor
|
||||
{
|
||||
if (player.head == ArmorIDs.Head.BeetleHelmet && player.legs == ArmorIDs.Legs.BeetleLeggings)
|
||||
{
|
||||
if (player.body == ArmorIDs.Body.BeetleShell)
|
||||
{
|
||||
player.statDefense += 15;
|
||||
player.endurance += 0.1f;
|
||||
}
|
||||
else if (player.body == ArmorIDs.Body.BeetleScaleMail)
|
||||
{
|
||||
player.meleeDamage += 0.1f;
|
||||
player.meleeCrit += 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (item.type == ItemID.FestiveWings) // Drop powerful homing christmas tree bulbs while in flight
|
||||
{
|
||||
player.statLifeMax2 += 50;
|
||||
}
|
||||
else if (item.type == ItemID.SpookyWings) // Bonus to summon stats while wearing spooky armor
|
||||
{
|
||||
if (player.head == ArmorIDs.Head.SpookyHelmet && player.body == ArmorIDs.Body.SpookyBreastplate && player.legs == ArmorIDs.Legs.SpookyLeggings)
|
||||
{
|
||||
player.maxMinions++;
|
||||
player.minionDamage += 0.1f;
|
||||
}
|
||||
}
|
||||
else if (item.type == ItemID.TatteredFairyWings)
|
||||
{
|
||||
player.allDamage += 0.05f;
|
||||
modPlayer.AllCritBoost(5);
|
||||
}
|
||||
else if (item.type == ItemID.SteampunkWings)
|
||||
{
|
||||
player.statDefense += 10;
|
||||
player.allDamage += 0.05f;
|
||||
modPlayer.AllCritBoost(5);
|
||||
player.moveSpeed += 0.1f;
|
||||
}
|
||||
else if (item.type == ItemID.WingsSolar) // Bonus to melee stats while wearing solar flare armor
|
||||
{
|
||||
if (player.head == ArmorIDs.Head.SolarFlareHelmet && player.body == ArmorIDs.Body.SolarFlareBreastplate && player.legs == ArmorIDs.Legs.SolarFlareLeggings)
|
||||
{
|
||||
player.meleeDamage += 0.07f;
|
||||
player.meleeCrit += 3;
|
||||
}
|
||||
}
|
||||
else if (item.type == ItemID.WingsVortex) // Bonus to ranged stats while wearing vortex armor
|
||||
{
|
||||
if (player.head == ArmorIDs.Head.VortexHelmet && player.body == ArmorIDs.Body.VortexBreastplate && player.legs == ArmorIDs.Legs.VortexLeggings)
|
||||
{
|
||||
player.rangedDamage += 0.03f;
|
||||
player.rangedCrit += 7;
|
||||
}
|
||||
}
|
||||
else if (item.type == ItemID.WingsNebula) // Bonus to magic stats while wearing nebula armor
|
||||
{
|
||||
if (player.head == ArmorIDs.Head.NebulaHelmet && player.body == ArmorIDs.Body.NebulaBreastplate && player.legs == ArmorIDs.Legs.NebulaLeggings)
|
||||
{
|
||||
player.magicDamage += 0.05f;
|
||||
player.magicCrit += 5;
|
||||
player.statManaMax2 += 20;
|
||||
player.manaCost *= 0.95f;
|
||||
}
|
||||
}
|
||||
else if (item.type == ItemID.WingsStardust) // Bonus to summon stats while wearing stardust armor
|
||||
{
|
||||
if (player.head == ArmorIDs.Head.StardustHelmet && player.body == ArmorIDs.Body.StardustPlate && player.legs == ArmorIDs.Legs.StardustLeggings)
|
||||
{
|
||||
player.maxMinions++;
|
||||
player.minionDamage += 0.05f;
|
||||
}
|
||||
}
|
||||
|
||||
if (item.type == ItemID.JellyfishNecklace || item.type == ItemID.JellyfishDivingGear || item.type == ItemID.ArcticDivingGear)
|
||||
modPlayer.jellyfishNecklace = true;
|
||||
|
||||
|
||||
+1235
-150
File diff suppressed because it is too large.
Load diff
+39
-26
@@ -161,7 +161,7 @@ namespace CalamityMod.NPCs
|
||||
{ NPCID.MoonLordCore, 1400000 },
|
||||
{ NPCID.MoonLordHand, 450000 },
|
||||
{ NPCID.MoonLordHead, 600000 },
|
||||
{ NPCID.MoonLordFreeEye, 1000 }
|
||||
{ NPCID.MoonLordLeechBlob, 8000 }
|
||||
};
|
||||
|
||||
public SortedDictionary<int, int> BossValues = new SortedDictionary<int, int>
|
||||
@@ -461,7 +461,7 @@ namespace CalamityMod.NPCs
|
||||
ApplyDPSDebuff(nightwither, 200, 40, ref npc.lifeRegen, ref damage);
|
||||
ApplyDPSDebuff(dFlames, 2500, 500, ref npc.lifeRegen, ref damage);
|
||||
ApplyDPSDebuff(bBlood, 50, 10, ref npc.lifeRegen, ref damage);
|
||||
}
|
||||
}
|
||||
|
||||
public void ApplyDPSDebuff(bool debuff, int lifeRegenValue, int damageValue, ref int lifeRegen, ref int damage)
|
||||
{
|
||||
@@ -658,11 +658,7 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
npc.value = (int)(npc.value * 1.5);
|
||||
|
||||
if (npc.type == NPCID.MoonLordFreeEye)
|
||||
{
|
||||
npc.lifeMax = (int)(npc.lifeMax * 150.0);
|
||||
}
|
||||
else if (npc.type == NPCID.Mothron)
|
||||
if (npc.type == NPCID.Mothron)
|
||||
{
|
||||
npc.scale = 1.25f;
|
||||
}
|
||||
@@ -671,7 +667,7 @@ namespace CalamityMod.NPCs
|
||||
npc.lifeMax = CalamityWorld.death ? (int)(npc.lifeMax * 2.4) : (int)(npc.lifeMax * 1.9);
|
||||
npc.npcSlots = 12f;
|
||||
}
|
||||
else if (npc.type == NPCID.MoonLordHand || npc.type == NPCID.MoonLordHead)
|
||||
else if (npc.type == NPCID.MoonLordHand || npc.type == NPCID.MoonLordHead || npc.type == NPCID.MoonLordLeechBlob)
|
||||
{
|
||||
npc.lifeMax = CalamityWorld.death ? (int)(npc.lifeMax * 1.4) : (int)(npc.lifeMax * 1.2);
|
||||
npc.npcSlots = 12f;
|
||||
@@ -935,7 +931,6 @@ namespace CalamityMod.NPCs
|
||||
case NPCID.MoonLordHead:
|
||||
case NPCID.MoonLordHand:
|
||||
case NPCID.MoonLordCore:
|
||||
case NPCID.MoonLordFreeEye:
|
||||
case NPCID.CultistBoss:
|
||||
case NPCID.Crab:
|
||||
case NPCID.SeaSnail:
|
||||
@@ -1351,7 +1346,7 @@ namespace CalamityMod.NPCs
|
||||
#region Strike NPC
|
||||
public override bool StrikeNPC(NPC npc, ref double damage, int defense, ref float knockback, int hitDirection, ref bool crit)
|
||||
{
|
||||
if (npc.type == NPCID.TheDestroyer || npc.type == NPCID.TheDestroyerBody || npc.type == NPCID.TheDestroyerTail)
|
||||
if (npc.type == NPCID.TheDestroyer || npc.type == NPCID.TheDestroyerBody || npc.type == NPCID.TheDestroyerTail)
|
||||
{
|
||||
if ((newAI[1] < 480f || newAI[2] > 0f) && (CalamityWorld.revenge || CalamityWorld.bossRushActive))
|
||||
{
|
||||
@@ -1445,7 +1440,24 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
}
|
||||
|
||||
return true; //vanilla defense calc 78 - (180 / 2 = 90) = 0, boosted to 1 by calc
|
||||
if (CalamityWorld.revenge || CalamityWorld.bossRushActive)
|
||||
{
|
||||
if (npc.type == NPCID.MoonLordHand || npc.type == NPCID.MoonLordHead)
|
||||
{
|
||||
if (npc.life - (int)damage <= 0)
|
||||
{
|
||||
if (newAI[0] != 1f)
|
||||
{
|
||||
newAI[0] = 1f;
|
||||
npc.life = npc.lifeMax;
|
||||
npc.netUpdate = true;
|
||||
npc.dontTakeDamage = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true; //vanilla defense calc 78 - (180 / 2 = 90) = 0, boosted to 1 by calc
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -1501,6 +1513,15 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
}
|
||||
|
||||
if (CalamityWorld.revenge || CalamityWorld.bossRushActive)
|
||||
{
|
||||
if (npc.type == NPCID.MoonLordFreeEye)
|
||||
{
|
||||
npc.active = false;
|
||||
npc.netUpdate = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (CalamityWorld.bossRushActive && !npc.friendly && !npc.townNPC)
|
||||
{
|
||||
BossRushForceDespawnOtherNPCs(npc, mod);
|
||||
@@ -1615,6 +1636,12 @@ namespace CalamityMod.NPCs
|
||||
case NPCID.AncientDoom:
|
||||
return CalamityGlobalAI.BuffedAncientDoomAI(npc, mod);
|
||||
|
||||
case NPCID.MoonLordCore:
|
||||
case NPCID.MoonLordHand:
|
||||
case NPCID.MoonLordHead:
|
||||
case NPCID.MoonLordLeechBlob:
|
||||
return CalamityGlobalAI.BuffedMoonLordAI(npc, enraged, mod);
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -2020,7 +2047,7 @@ namespace CalamityMod.NPCs
|
||||
|
||||
case 28:
|
||||
if (npc.type != NPCID.MoonLordCore && npc.type != NPCID.MoonLordHead && npc.type != NPCID.MoonLordHand &&
|
||||
npc.type != NPCID.MoonLordFreeEye && npc.type != mod.NPCType("Eidolist"))
|
||||
npc.type != NPCID.MoonLordLeechBlob)
|
||||
{
|
||||
npc.active = false;
|
||||
npc.netUpdate = true;
|
||||
@@ -2165,19 +2192,6 @@ namespace CalamityMod.NPCs
|
||||
|
||||
switch (npc.type)
|
||||
{
|
||||
case NPCID.MoonLordFreeEye:
|
||||
CalamityGlobalAI.RevengeanceMoonLordFreeEyeAI(npc);
|
||||
break;
|
||||
|
||||
case NPCID.MoonLordCore:
|
||||
CalamityGlobalAI.RevengeanceMoonLordCoreAI(npc);
|
||||
break;
|
||||
|
||||
case NPCID.MoonLordHand:
|
||||
case NPCID.MoonLordHead:
|
||||
CalamityGlobalAI.RevengeanceMoonLordHandAI(npc, mod);
|
||||
break;
|
||||
|
||||
case NPCID.DungeonGuardian:
|
||||
CalamityGlobalAI.RevengeanceDungeonGuardianAI(npc, configBossRushBoost, enraged);
|
||||
break;
|
||||
@@ -2386,7 +2400,6 @@ namespace CalamityMod.NPCs
|
||||
case NPCID.GiantCursedSkull:
|
||||
case NPCID.Butcher:
|
||||
case NPCID.Psycho:
|
||||
case NPCID.MoonLordFreeEye:
|
||||
target.AddBuff(mod.BuffType("Horror"), 180);
|
||||
target.AddBuff(mod.BuffType("MarkedforDeath"), 180);
|
||||
break;
|
||||
|
||||
@@ -13,9 +13,6 @@ namespace CalamityMod.NPCs.CosmicWraith
|
||||
[AutoloadBossHead]
|
||||
public class CosmicWraith : ModNPC
|
||||
{
|
||||
private const int CosmicProjectiles = 3;
|
||||
private const float CosmicAngleSpread = 170;
|
||||
private int CosmicCountdown = 0;
|
||||
private int phaseSwitch = 0;
|
||||
private int chargeSwitch = 0;
|
||||
private int dustTimer = 3;
|
||||
@@ -89,7 +86,6 @@ namespace CalamityMod.NPCs.CosmicWraith
|
||||
|
||||
public override void SendExtraAI(BinaryWriter writer)
|
||||
{
|
||||
writer.Write(CosmicCountdown);
|
||||
writer.Write(phaseSwitch);
|
||||
writer.Write(chargeSwitch);
|
||||
writer.Write(dustTimer);
|
||||
@@ -100,7 +96,6 @@ namespace CalamityMod.NPCs.CosmicWraith
|
||||
|
||||
public override void ReceiveExtraAI(BinaryReader reader)
|
||||
{
|
||||
CosmicCountdown = reader.ReadInt32();
|
||||
phaseSwitch = reader.ReadInt32();
|
||||
chargeSwitch = reader.ReadInt32();
|
||||
dustTimer = reader.ReadInt32();
|
||||
@@ -180,41 +175,6 @@ namespace CalamityMod.NPCs.CosmicWraith
|
||||
{
|
||||
npc.timeLeft = 1800;
|
||||
}
|
||||
if (cosmicRain && CosmicCountdown == 0)
|
||||
{
|
||||
CosmicCountdown = 300;
|
||||
}
|
||||
if (CosmicCountdown > 0)
|
||||
{
|
||||
CosmicCountdown--;
|
||||
if (CosmicCountdown == 0)
|
||||
{
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
int speed2 = revenge ? 13 : 12;
|
||||
if (npc.GetGlobalNPC<CalamityGlobalNPC>(mod).enraged || (Config.BossRushXerocCurse && CalamityWorld.bossRushActive))
|
||||
{
|
||||
speed2 += 3;
|
||||
}
|
||||
float spawnX2 = Main.rand.Next(1000) - 500 + player.Center.X;
|
||||
float spawnY2 = -1000 + player.Center.Y;
|
||||
Vector2 baseSpawn = new Vector2(spawnX2, spawnY2);
|
||||
Vector2 baseVelocity = player.Center - baseSpawn;
|
||||
baseVelocity.Normalize();
|
||||
baseVelocity = baseVelocity * speed2;
|
||||
int damage = expertMode ? 52 : 65;
|
||||
for (int i = 0; i < CosmicProjectiles; i++)
|
||||
{
|
||||
Vector2 spawn2 = baseSpawn;
|
||||
spawn2.X = spawn2.X + i * 30 - (CosmicProjectiles * 15);
|
||||
Vector2 velocity = baseVelocity;
|
||||
velocity = baseVelocity.RotatedBy(MathHelper.ToRadians(-CosmicAngleSpread / 2 + (CosmicAngleSpread * i / (float)CosmicProjectiles)));
|
||||
velocity.X = velocity.X + 3 * Main.rand.NextFloat() - 1.5f;
|
||||
Projectile.NewProjectile(spawn2.X, spawn2.Y, velocity.X, velocity.Y, mod.ProjectileType("CosmicFlameBurst"), damage, 0f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (npc.ai[0] <= 2f)
|
||||
{
|
||||
npc.rotation = npc.velocity.X * 0.04f;
|
||||
|
||||
@@ -7,6 +7,7 @@ using Terraria.ModLoader;
|
||||
using CalamityMod.World;
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Utilities;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Projectiles
|
||||
{
|
||||
@@ -270,6 +271,106 @@ namespace CalamityMod.Projectiles
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Moon Lord Deathray
|
||||
else if (projectile.type == ProjectileID.PhantasmalDeathray)
|
||||
{
|
||||
Vector2? vector78 = null;
|
||||
|
||||
if (projectile.velocity.HasNaNs() || projectile.velocity == Vector2.Zero)
|
||||
{
|
||||
projectile.velocity = -Vector2.UnitY;
|
||||
}
|
||||
|
||||
if (Main.npc[(int)projectile.ai[1]].active && Main.npc[(int)projectile.ai[1]].type == NPCID.MoonLordHead)
|
||||
{
|
||||
Vector2 value21 = new Vector2(27f, 59f);
|
||||
Vector2 value22 = Utils.Vector2FromElipse(Main.npc[(int)projectile.ai[1]].localAI[0].ToRotationVector2(), value21 * Main.npc[(int)projectile.ai[1]].localAI[1]);
|
||||
projectile.position = Main.npc[(int)projectile.ai[1]].Center + value22 - new Vector2((float)projectile.width, (float)projectile.height) / 2f;
|
||||
}
|
||||
|
||||
if (projectile.velocity.HasNaNs() || projectile.velocity == Vector2.Zero)
|
||||
{
|
||||
projectile.velocity = -Vector2.UnitY;
|
||||
}
|
||||
|
||||
if (projectile.localAI[0] == 0f)
|
||||
{
|
||||
Main.PlaySound(29, (int)projectile.position.X, (int)projectile.position.Y, 104, 1f, 0f);
|
||||
}
|
||||
|
||||
float num801 = 1f;
|
||||
projectile.localAI[0] += 1f;
|
||||
if (projectile.localAI[0] >= 180f)
|
||||
{
|
||||
projectile.Kill();
|
||||
return false;
|
||||
}
|
||||
|
||||
projectile.scale = (float)Math.Sin((double)(projectile.localAI[0] * 3.14159274f / 180f)) * 10f * num801;
|
||||
if (projectile.scale > num801)
|
||||
{
|
||||
projectile.scale = num801;
|
||||
}
|
||||
|
||||
float num804 = projectile.velocity.ToRotation();
|
||||
num804 += projectile.ai[0];
|
||||
projectile.rotation = num804 - 1.57079637f;
|
||||
projectile.velocity = num804.ToRotationVector2();
|
||||
|
||||
float num805 = 3f;
|
||||
float num806 = (float)projectile.width;
|
||||
|
||||
Vector2 samplingPoint = projectile.Center;
|
||||
if (vector78.HasValue)
|
||||
{
|
||||
samplingPoint = vector78.Value;
|
||||
}
|
||||
|
||||
float[] array3 = new float[(int)num805];
|
||||
Collision.LaserScan(samplingPoint, projectile.velocity, num806 * projectile.scale, 2400f, array3);
|
||||
float num807 = 0f;
|
||||
int num3;
|
||||
for (int num808 = 0; num808 < array3.Length; num808 = num3 + 1)
|
||||
{
|
||||
num807 += array3[num808];
|
||||
num3 = num808;
|
||||
}
|
||||
num807 /= num805;
|
||||
|
||||
// Fire laser through walls at max length if target cannot be seen
|
||||
if (!Collision.CanHitLine(Main.npc[(int)projectile.ai[1]].Center, 1, 1, Main.player[Main.npc[(int)projectile.ai[1]].target].Center, 1, 1) &&
|
||||
Main.npc[(int)projectile.ai[1]].GetGlobalNPC<CalamityGlobalNPC>(mod).newAI[0] == 1f)
|
||||
{
|
||||
num807 = 2400f;
|
||||
}
|
||||
|
||||
float amount = 0.5f;
|
||||
projectile.localAI[1] = MathHelper.Lerp(projectile.localAI[1], num807, amount);
|
||||
Vector2 vector79 = projectile.Center + projectile.velocity * (projectile.localAI[1] - 14f);
|
||||
for (int num809 = 0; num809 < 2; num809 = num3 + 1)
|
||||
{
|
||||
float num810 = projectile.velocity.ToRotation() + ((Main.rand.Next(2) == 1) ? -1f : 1f) * 1.57079637f;
|
||||
float num811 = (float)Main.rand.NextDouble() * 2f + 2f;
|
||||
Vector2 vector80 = new Vector2((float)Math.Cos((double)num810) * num811, (float)Math.Sin((double)num810) * num811);
|
||||
int num812 = Dust.NewDust(vector79, 0, 0, 229, vector80.X, vector80.Y, 0, default(Color), 1f);
|
||||
Main.dust[num812].noGravity = true;
|
||||
Main.dust[num812].scale = 1.7f;
|
||||
num3 = num809;
|
||||
}
|
||||
if (Main.rand.Next(5) == 0)
|
||||
{
|
||||
Vector2 value29 = projectile.velocity.RotatedBy(1.5707963705062866, default(Vector2)) * ((float)Main.rand.NextDouble() - 0.5f) * (float)projectile.width;
|
||||
int num813 = Dust.NewDust(vector79 + value29 - Vector2.One * 4f, 8, 8, 31, 0f, 0f, 100, default(Color), 1.5f);
|
||||
Dust dust = Main.dust[num813];
|
||||
dust.velocity *= 0.5f;
|
||||
Main.dust[num813].velocity.Y = -Math.Abs(Main.dust[num813].velocity.Y);
|
||||
}
|
||||
DelegateMethods.v3_1 = new Vector3(0.3f, 0.65f, 0.7f);
|
||||
Utils.PlotTileLine(projectile.Center, projectile.Center + projectile.velocity * projectile.localAI[1], (float)projectile.width * projectile.scale, new Utils.PerLinePoint(DelegateMethods.CastLight));
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -20,14 +20,14 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
projectile.tileCollide = false;
|
||||
projectile.ranged = true;
|
||||
projectile.penetrate = -1;
|
||||
projectile.timeLeft = 300; //1200
|
||||
projectile.timeLeft = 240; //1200
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = 5;
|
||||
projectile.localNPCHitCooldown = 6;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
float num1125 = 225f; //900
|
||||
float num1125 = 165f; //900
|
||||
if (projectile.soundDelay == 0)
|
||||
{
|
||||
projectile.soundDelay = -1;
|
||||
|
||||
+24
-25
@@ -707,30 +707,33 @@ namespace CalamityMod.World
|
||||
if (bossRushSpawnCountdown > 0)
|
||||
{
|
||||
bossRushSpawnCountdown--;
|
||||
if (bossRushSpawnCountdown == 180 && bossRushStage == 28)
|
||||
if (bossRushSpawnCountdown == 180)
|
||||
{
|
||||
string key = "Mods.CalamityMod.BossRushTierThreeEndText2";
|
||||
Color messageColor = Color.LightCoral;
|
||||
if (Main.netMode == NetmodeID.SinglePlayer)
|
||||
if (bossRushStage == 28)
|
||||
{
|
||||
Main.NewText(Language.GetTextValue(key), messageColor);
|
||||
string key = "Mods.CalamityMod.BossRushTierThreeEndText2";
|
||||
Color messageColor = Color.LightCoral;
|
||||
if (Main.netMode == NetmodeID.SinglePlayer)
|
||||
{
|
||||
Main.NewText(Language.GetTextValue(key), messageColor);
|
||||
}
|
||||
else if (Main.netMode == NetmodeID.Server)
|
||||
{
|
||||
NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor);
|
||||
}
|
||||
}
|
||||
else if (Main.netMode == NetmodeID.Server)
|
||||
else if (bossRushStage == 36)
|
||||
{
|
||||
NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor);
|
||||
}
|
||||
}
|
||||
if (bossRushSpawnCountdown == 210 && bossRushStage == 36)
|
||||
{
|
||||
string key = "Mods.CalamityMod.BossRushTierFourEndText2";
|
||||
Color messageColor = Color.LightCoral;
|
||||
if (Main.netMode == NetmodeID.SinglePlayer)
|
||||
{
|
||||
Main.NewText(Language.GetTextValue(key), messageColor);
|
||||
}
|
||||
else if (Main.netMode == NetmodeID.Server)
|
||||
{
|
||||
NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor);
|
||||
string key = "Mods.CalamityMod.BossRushTierFourEndText2";
|
||||
Color messageColor = Color.LightCoral;
|
||||
if (Main.netMode == NetmodeID.SinglePlayer)
|
||||
{
|
||||
Main.NewText(Language.GetTextValue(key), messageColor);
|
||||
}
|
||||
else if (Main.netMode == NetmodeID.Server)
|
||||
{
|
||||
NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -739,11 +742,7 @@ namespace CalamityMod.World
|
||||
bossRushSpawnCountdown = 60;
|
||||
if (bossRushStage > 27)
|
||||
{
|
||||
bossRushSpawnCountdown += 120; //3 seconds
|
||||
}
|
||||
if (bossRushStage > 35)
|
||||
{
|
||||
bossRushSpawnCountdown += 180; //6 seconds
|
||||
bossRushSpawnCountdown += 300;
|
||||
}
|
||||
switch (bossRushStage)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user