Merge branch '1.4.4' into staging
This commit is contained in:
commit
b287a80902
10 files changed
+14
-7
No files matched your search
@@ -12,7 +12,7 @@ using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
[LegacyName("NightsGaze")]
|
||||
public class Vega : RogueWeapon, IHoldShiftTooltipItem
|
||||
public class Vega : RogueWeapon
|
||||
{
|
||||
public static int StarburstCost = 20;
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -165,7 +165,6 @@ namespace CalamityMod.NPCs.CalClone
|
||||
writer.Write(NPC.localAI[0]);
|
||||
writer.Write(NPC.localAI[1]);
|
||||
writer.Write(NPC.localAI[2]);
|
||||
writer.Write(NPC.localAI[3]);
|
||||
for (int i = 0; i < 4; i++)
|
||||
writer.Write(NPC.Calamity().newAI[i]);
|
||||
}
|
||||
@@ -176,7 +175,6 @@ namespace CalamityMod.NPCs.CalClone
|
||||
NPC.localAI[0] = reader.ReadSingle();
|
||||
NPC.localAI[1] = reader.ReadSingle();
|
||||
NPC.localAI[2] = reader.ReadSingle();
|
||||
NPC.localAI[3] = reader.ReadSingle();
|
||||
for (int i = 0; i < 4; i++)
|
||||
NPC.Calamity().newAI[i] = reader.ReadSingle();
|
||||
}
|
||||
@@ -499,16 +497,17 @@ namespace CalamityMod.NPCs.CalClone
|
||||
if (NPC.localAI[0] == 1f)
|
||||
{
|
||||
NPC.localAI[0] = 0f;
|
||||
NPC.localAI[2] = Main.rand.Next(-50, 51);
|
||||
NPC.localAI[3] = Main.rand.Next(-300, 301);
|
||||
NPC.localAI[2] = Main.rand.Next(-300, 301);
|
||||
NPC.netUpdate = true;
|
||||
}
|
||||
|
||||
// Add a bit of randomness to the destination
|
||||
if (death)
|
||||
{
|
||||
destination.X += NPC.ai[1] == 0f ? NPC.localAI[3] : NPC.localAI[2];
|
||||
destination.Y += NPC.ai[1] == 0f ? NPC.localAI[2] : NPC.localAI[3];
|
||||
if (NPC.ai[1] == 0f)
|
||||
destination.X += NPC.localAI[2];
|
||||
else
|
||||
destination.Y += NPC.localAI[2];
|
||||
}
|
||||
|
||||
// How far Cal Clone is from where she's supposed to be
|
||||
|
||||
@@ -186,6 +186,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
{
|
||||
NPCID.Sets.TrailingMode[Type] = 3;
|
||||
NPCID.Sets.TrailCacheLength[Type] = NPC.oldPos.Length;
|
||||
NPCID.Sets.NeedsExpertScaling[Type] = true;
|
||||
NPCID.Sets.BossBestiaryPriority.Add(Type);
|
||||
NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers()
|
||||
{
|
||||
|
||||
@@ -79,6 +79,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
this.HideFromBestiary();
|
||||
NPCID.Sets.TrailingMode[Type] = 3;
|
||||
NPCID.Sets.TrailCacheLength[Type] = NPC.oldPos.Length;
|
||||
NPCID.Sets.NeedsExpertScaling[Type] = true;
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
GlowTexture = ModContent.Request<Texture2D>(Texture + "Glow", AssetRequestMode.AsyncLoad);
|
||||
|
||||
@@ -81,6 +81,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
this.HideFromBestiary();
|
||||
NPCID.Sets.TrailingMode[Type] = 3;
|
||||
NPCID.Sets.TrailCacheLength[Type] = NPC.oldPos.Length;
|
||||
NPCID.Sets.NeedsExpertScaling[Type] = true;
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
GlowTexture = ModContent.Request<Texture2D>(Texture + "Glow", AssetRequestMode.AsyncLoad);
|
||||
|
||||
@@ -75,6 +75,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
this.HideFromBestiary();
|
||||
NPCID.Sets.TrailingMode[Type] = 3;
|
||||
NPCID.Sets.TrailCacheLength[Type] = NPC.oldPos.Length;
|
||||
NPCID.Sets.NeedsExpertScaling[Type] = true;
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
GlowTexture = ModContent.Request<Texture2D>(Texture + "Glow", AssetRequestMode.AsyncLoad);
|
||||
|
||||
@@ -77,6 +77,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
this.HideFromBestiary();
|
||||
NPCID.Sets.TrailingMode[Type] = 3;
|
||||
NPCID.Sets.TrailCacheLength[Type] = NPC.oldPos.Length;
|
||||
NPCID.Sets.NeedsExpertScaling[Type] = true;
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
GlowTexture = ModContent.Request<Texture2D>(Texture + "Glow", AssetRequestMode.AsyncLoad);
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace CalamityMod.NPCs.PrimordialWyrm
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
NPCID.Sets.NeedsExpertScaling[Type] = true;
|
||||
this.HideFromBestiary();
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
|
||||
@@ -20,6 +20,7 @@ namespace CalamityMod.NPCs.PrimordialWyrm
|
||||
public override LocalizedText DisplayName => CalamityUtils.GetText("NPCs.PrimordialWyrmHead.DisplayName");
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
NPCID.Sets.NeedsExpertScaling[Type] = true;
|
||||
this.HideFromBestiary();
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
|
||||
@@ -19,6 +19,7 @@ namespace CalamityMod.NPCs.PrimordialWyrm
|
||||
public override LocalizedText DisplayName => CalamityUtils.GetText("NPCs.PrimordialWyrmHead.DisplayName");
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
NPCID.Sets.NeedsExpertScaling[Type] = true;
|
||||
this.HideFromBestiary();
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user