Merge branch '1.4' of https://github.com/CalamityTeam/CalamityMod into 1.4
This commit is contained in:
commit
b5cecc85f6
279 files changed
+1705
-1629
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Buffs.Potions;
|
||||
using CalamityMod.Buffs.StatBuffs;
|
||||
@@ -80,6 +80,15 @@ namespace CalamityMod.CalPlayer
|
||||
// Bool for any existing events, true if any event is active
|
||||
areThereAnyDamnEvents = CalamityGlobalNPC.AnyEvents(Player);
|
||||
|
||||
// Go through the old positions for the player.
|
||||
for (int i = Player.Calamity().OldPositions.Length - 1; i > 0; i--)
|
||||
{
|
||||
if (OldPositions[i - 1] == Vector2.Zero)
|
||||
OldPositions[i - 1] = Player.position;
|
||||
OldPositions[i] = OldPositions[i - 1];
|
||||
}
|
||||
OldPositions[0] = Player.position;
|
||||
|
||||
// Hurt the nearest NPC to the mouse if using the burning mouse.
|
||||
if (blazingCursorDamage)
|
||||
HandleBlazingMouseEffects();
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.CalPlayer.DrawLayers
|
||||
{
|
||||
public class AmidiasBubbleLayer : PlayerDrawLayer
|
||||
{
|
||||
public override Position GetDefaultPosition() => new AfterParent(PlayerDrawLayers.BackAcc);
|
||||
|
||||
public override bool GetDefaultVisibility(PlayerDrawSet drawInfo) => drawInfo.drawPlayer.Calamity().amidiasBlessing && drawInfo.shadow == 0f;
|
||||
|
||||
protected override void Draw(ref PlayerDrawSet drawInfo)
|
||||
{
|
||||
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/AmidiasBubble").Value;
|
||||
int drawX = (int)(drawInfo.Center.X - Main.screenPosition.X);
|
||||
int drawY = (int)(drawInfo.Center.Y - Main.screenPosition.Y);
|
||||
drawInfo.DrawDataCache.Add(new DrawData(texture, new Vector2(drawX, drawY), null, Color.White, 0f, texture.Size() * 0.5f, 1f, SpriteEffects.None, 0));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
using System.Linq;
|
||||
using CalamityMod.Items.Dyes;
|
||||
using CalamityMod.Projectiles.Summon;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.CalPlayer.DrawLayers
|
||||
{
|
||||
public class AndromedaMechLayer : PlayerDrawLayer
|
||||
{
|
||||
public override Position GetDefaultPosition() => new AfterParent(PlayerDrawLayers.EyebrellaCloud);
|
||||
|
||||
public override bool GetDefaultVisibility(PlayerDrawSet drawInfo)
|
||||
{
|
||||
if (drawInfo.shadow != 0f)
|
||||
return false;
|
||||
|
||||
return drawInfo.drawPlayer.Calamity().andromedaState != AndromedaPlayerState.Inactive;
|
||||
}
|
||||
|
||||
protected override void Draw(ref PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
|
||||
// Clear all old draw data and draw the robot on top.
|
||||
drawInfo.DrawDataCache.Clear();
|
||||
|
||||
int robot = -1;
|
||||
int andromedaMechID = ModContent.ProjectileType<GiantIbanRobotOfDoom>();
|
||||
for (int i = 0; i < Main.projectile.Length; i++)
|
||||
{
|
||||
if (Main.projectile[i].active && Main.projectile[i].type == andromedaMechID && Main.projectile[i].owner == drawPlayer.whoAmI)
|
||||
{
|
||||
robot = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (robot == -1)
|
||||
{
|
||||
drawPlayer.Calamity().andromedaState = AndromedaPlayerState.Inactive;
|
||||
return;
|
||||
}
|
||||
|
||||
GiantIbanRobotOfDoom robotEntityInstance = (GiantIbanRobotOfDoom)Main.projectile[robot].ModProjectile;
|
||||
switch (drawPlayer.Calamity().andromedaState)
|
||||
{
|
||||
case AndromedaPlayerState.SpecialAttack:
|
||||
Texture2D dashTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/AndromedaBolt").Value;
|
||||
Rectangle frame = dashTexture.Frame(1, 4, 0, robotEntityInstance.RightIconCooldown / 4 % 4);
|
||||
|
||||
DrawData drawData = new DrawData(dashTexture,
|
||||
drawPlayer.Center + new Vector2(0f, -8f) - Main.screenPosition,
|
||||
frame,
|
||||
Color.White,
|
||||
Main.projectile[robot].rotation,
|
||||
drawPlayer.Size / 2,
|
||||
1f,
|
||||
Main.projectile[robot].spriteDirection == -1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None,
|
||||
1);
|
||||
drawData.shader = drawPlayer.cBody;
|
||||
|
||||
drawInfo.DrawDataCache.Add(drawData);
|
||||
break;
|
||||
case AndromedaPlayerState.LargeRobot:
|
||||
Texture2D robotTexture = ModContent.Request<Texture2D>(robotEntityInstance.Texture).Value;
|
||||
frame = new Rectangle(robotEntityInstance.FrameX * robotTexture.Width / 3, robotEntityInstance.FrameY * robotTexture.Height / 7, robotTexture.Width / 3, robotTexture.Height / 7);
|
||||
|
||||
drawData = new DrawData(ModContent.Request<Texture2D>(Main.projectile[robot].ModProjectile.Texture).Value,
|
||||
Main.projectile[robot].Center + Vector2.UnitY * 6f - Main.screenPosition,
|
||||
frame,
|
||||
Color.White,
|
||||
Main.projectile[robot].rotation,
|
||||
Main.projectile[robot].Size / 2,
|
||||
1f,
|
||||
Main.projectile[robot].spriteDirection == -1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None,
|
||||
1);
|
||||
drawData.shader = drawPlayer.cBody;
|
||||
|
||||
drawInfo.DrawDataCache.Add(drawData);
|
||||
break;
|
||||
case AndromedaPlayerState.SmallRobot:
|
||||
robotTexture = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Summon/AndromedaSmall").Value;
|
||||
frame = new Rectangle(0, robotEntityInstance.CurrentFrame * 54, robotTexture.Width, robotTexture.Height / 21);
|
||||
drawData = new DrawData(robotTexture,
|
||||
drawPlayer.Center + new Vector2(drawPlayer.direction == 1 ? -24 : -10, -8f) - Main.screenPosition,
|
||||
frame,
|
||||
Color.White,
|
||||
0f,
|
||||
drawPlayer.Size / 2,
|
||||
1f,
|
||||
Main.projectile[robot].spriteDirection == -1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None,
|
||||
1);
|
||||
drawData.shader = drawPlayer.cBody;
|
||||
|
||||
drawInfo.DrawDataCache.Add(drawData);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using System.Linq;
|
||||
using CalamityMod.Items.Dyes;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.CalPlayer.DrawLayers
|
||||
{
|
||||
public class AngelicAllianceAuroraLayer : PlayerDrawLayer
|
||||
{
|
||||
public override Position GetDefaultPosition() => new AfterParent(PlayerDrawLayers.EyebrellaCloud);
|
||||
|
||||
public override bool GetDefaultVisibility(PlayerDrawSet drawInfo)
|
||||
{
|
||||
if (drawInfo.shadow != 0f)
|
||||
return false;
|
||||
|
||||
return drawInfo.drawPlayer.Calamity().divineBless;
|
||||
}
|
||||
|
||||
protected override void Draw(ref PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
int totalMoonlightDyes = drawPlayer.dye.Count(dyeItem => dyeItem.type == ModContent.ItemType<ProfanedMoonlightDye>());
|
||||
drawInfo.DrawDataCache.AddRange(CalamityUtils.DrawAuroras(drawPlayer, 7, 0.4f, CalamityUtils.ColorSwap(new Color(255, 163, 56), new Color(242, 48, 187), 3f)));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using CalamityMod.Items.Dyes;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.CalPlayer.DrawLayers
|
||||
{
|
||||
public class AuralisAuroraLayer : PlayerDrawLayer
|
||||
{
|
||||
public override Position GetDefaultPosition() => new AfterParent(PlayerDrawLayers.EyebrellaCloud);
|
||||
|
||||
public override bool GetDefaultVisibility(PlayerDrawSet drawInfo)
|
||||
{
|
||||
if (drawInfo.shadow != 0f)
|
||||
return false;
|
||||
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
return !(drawPlayer.Calamity().auralisAuroraCooldown < 300 || drawPlayer.Calamity().auralisAuroraCooldown > 0);
|
||||
}
|
||||
|
||||
protected override void Draw(ref PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
int totalMoonlightDyes = drawPlayer.dye.Count(dyeItem => dyeItem.type == ModContent.ItemType<ProfanedMoonlightDye>());
|
||||
drawInfo.DrawDataCache.AddRange(CalamityUtils.DrawAuroras(drawPlayer, 7, 0.4f, CalamityUtils.ColorSwap(Auralis.blueColor, Auralis.greenColor, 3f)));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.Items.VanillaArmorChanges;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.CalPlayer.DrawLayers
|
||||
{
|
||||
public class CobaltSetTrailLayer : PlayerDrawLayer
|
||||
{
|
||||
public override Position GetDefaultPosition() => new AfterParent(PlayerDrawLayers.EyebrellaCloud);
|
||||
|
||||
public override bool GetDefaultVisibility(PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
if (drawInfo.shadow != 0f || drawPlayer.dead)
|
||||
return false;
|
||||
|
||||
return drawPlayer.Calamity().CobaltSet;
|
||||
}
|
||||
|
||||
protected override void Draw(ref PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
List<DrawData> existingDrawData = drawInfo.DrawDataCache;
|
||||
for (int i = 0; i < drawPlayer.Calamity().OldPositions.Length; i++)
|
||||
{
|
||||
float completionRatio = i / (float)drawPlayer.Calamity().OldPositions.Length;
|
||||
float scale = MathHelper.Lerp(1f, 0.5f, completionRatio);
|
||||
float opacity = MathHelper.Lerp(0.23f, 0.07f, completionRatio) * CobaltArmorSetChange.CalculateMovementSpeedInterpolant(drawPlayer);
|
||||
List<DrawData> afterimages = new List<DrawData>();
|
||||
for (int j = 0; j < existingDrawData.Count; j++)
|
||||
{
|
||||
var drawData = existingDrawData[j];
|
||||
drawData.position = existingDrawData[j].position - drawPlayer.position + drawPlayer.oldPosition;
|
||||
drawData.color = Color.Cyan * opacity;
|
||||
drawData.color.G = (byte)(drawData.color.G * 0.87);
|
||||
drawData.color.B = (byte)(drawData.color.B * 1.24);
|
||||
drawData.scale = new Vector2(scale);
|
||||
afterimages.Add(drawData);
|
||||
}
|
||||
drawInfo.DrawDataCache.InsertRange(0, afterimages);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.CalPlayer.DrawLayers
|
||||
{
|
||||
public class ColdDivinityOverlayLayer : PlayerDrawLayer
|
||||
{
|
||||
public override Position GetDefaultPosition() => new BeforeParent(PlayerDrawLayers.Skin);
|
||||
|
||||
public override bool GetDefaultVisibility(PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
CalamityPlayer modPlayer = drawPlayer.Calamity();
|
||||
return drawInfo.shadow == 0f && !drawPlayer.dead && modPlayer.coldDivinity;
|
||||
}
|
||||
|
||||
protected override void Draw(ref PlayerDrawSet drawInfo)
|
||||
{
|
||||
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/ColdDivinityBody").Value;
|
||||
int drawX = (int)(drawInfo.Center.X - Main.screenPosition.X);
|
||||
int drawY = (int)(drawInfo.Center.Y - Main.screenPosition.Y);
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
SpriteEffects spriteEffects = drawPlayer.direction != -1 ? SpriteEffects.None : SpriteEffects.FlipHorizontally;
|
||||
drawInfo.DrawDataCache.Add(new DrawData(texture, new Vector2(drawX, drawY), null, new Color(53, Main.DiscoG, 255) * 0.5f, 0f, texture.Size() * 0.5f, 1.15f, spriteEffects, 0));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.CalPlayer.DrawLayers
|
||||
{
|
||||
public class ConcentratedVoidAuraLayer : PlayerDrawLayer
|
||||
{
|
||||
public override Position GetDefaultPosition() => new BeforeParent(PlayerDrawLayers.Skin);
|
||||
|
||||
public override bool GetDefaultVisibility(PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
CalamityPlayer modPlayer = drawPlayer.Calamity();
|
||||
return drawInfo.shadow == 0f && !drawPlayer.dead && (modPlayer.voidAura || modPlayer.voidAuraDamage);
|
||||
}
|
||||
|
||||
protected override void Draw(ref PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
Texture2D tex = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VoidConcentrationAura").Value;
|
||||
Vector2 drawPos = drawInfo.Center - Main.screenPosition + new Vector2(0f, drawPlayer.gfxOffY);
|
||||
drawPos.Y -= 9f;
|
||||
|
||||
// Intentionally inverse due to giving more space for the player model without faffing about with the specific positioning
|
||||
SpriteEffects spriteEffects = drawPlayer.direction != -1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None;
|
||||
float scale = 1.75f;
|
||||
Rectangle frame = tex.Frame(1, 4, 0, drawPlayer.Calamity().voidFrame);
|
||||
Vector2 origin = new Vector2(tex.Width / 2f, tex.Height / 2f / 4f);
|
||||
drawInfo.DrawDataCache.Add(new DrawData(tex, drawPos, frame, Color.White * 0.4f, 0f, origin, scale, spriteEffects, 0));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.CalPlayer.DrawLayers
|
||||
{
|
||||
public class FathomSwarmerTailLayer : PlayerDrawLayer
|
||||
{
|
||||
public override Position GetDefaultPosition() => new BeforeParent(PlayerDrawLayers.Skin);
|
||||
|
||||
public override bool GetDefaultVisibility(PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
CalamityPlayer modPlayer = drawPlayer.Calamity();
|
||||
return drawInfo.shadow == 0f && !drawPlayer.dead && modPlayer.fathomSwarmerTail;
|
||||
}
|
||||
|
||||
protected override void Draw(ref PlayerDrawSet drawInfo)
|
||||
{
|
||||
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Items/Armor/FathomSwarmerArmor_Tail").Value;
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
Rectangle frame = texture.Frame(1, 4, 0, drawPlayer.Calamity().tailFrame);
|
||||
int dyeShader = drawPlayer.dye?[2].dye ?? 0;
|
||||
int frameSizeY = texture.Height / 4;
|
||||
int drawX = (int)(drawInfo.Center.X - Main.screenPosition.X - (3 * drawPlayer.direction));
|
||||
int drawY = (int)(drawInfo.Center.Y - Main.screenPosition.Y);
|
||||
DrawData tailDrawData = new DrawData(texture, new Vector2(drawX, drawY), frame, drawInfo.colorPants, 0f, new Vector2(texture.Width / 2f, frameSizeY / 2f), 1f, drawInfo.playerEffect, 0)
|
||||
{
|
||||
shader = dyeShader
|
||||
};
|
||||
drawInfo.DrawDataCache.Add(tailDrawData);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
using System;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.GameContent;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.CalPlayer.DrawLayers
|
||||
{
|
||||
public class ForbiddenSignLayer : PlayerDrawLayer
|
||||
{
|
||||
public override Position GetDefaultPosition() => new BeforeParent(PlayerDrawLayers.Skin);
|
||||
|
||||
public override bool GetDefaultVisibility(PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
CalamityPlayer modPlayer = drawPlayer.Calamity();
|
||||
return drawInfo.shadow == 0f && !drawPlayer.dead && modPlayer.forbiddenCirclet;
|
||||
}
|
||||
|
||||
protected override void Draw(ref PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
SpriteEffects spriteEffects;
|
||||
if (drawPlayer.direction == 1)
|
||||
spriteEffects = SpriteEffects.None;
|
||||
else spriteEffects = SpriteEffects.FlipHorizontally;
|
||||
|
||||
if (drawPlayer.gravDir != 1f)
|
||||
spriteEffects |= SpriteEffects.FlipVertically;
|
||||
|
||||
int dyeShader = 0;
|
||||
if (drawPlayer.dye[1] != null)
|
||||
dyeShader = drawPlayer.dye[1].dye;
|
||||
|
||||
Color baseColor = drawPlayer.GetImmuneAlphaPure(Lighting.GetColor((int)drawInfo.Center.X / 16, (int)drawInfo.Center.Y / 16, Color.White), drawInfo.shadow);
|
||||
Color color = Color.Lerp(baseColor, Color.White, 0.7f);
|
||||
Texture2D texture = TextureAssets.Extra[ExtrasID.ForbiddenSign].Value;
|
||||
Texture2D glowmask = TextureAssets.GlowMask[GlowMaskID.ForbiddenSign].Value;
|
||||
float offsetY = (float)Math.Sin(drawPlayer.miscCounter / 300f * MathHelper.TwoPi) * 6f;
|
||||
float sinusoidalTime = (float)Math.Cos(drawPlayer.miscCounter / 75f * MathHelper.TwoPi);
|
||||
Color afterimageColor = new Color(80, 70, 40, 0) * (sinusoidalTime * 0.5f + 0.5f) * 0.8f;
|
||||
float gravCheckOffset = drawPlayer.gravDir != 1f ? -20f : 20f;
|
||||
|
||||
Vector2 position = new Vector2(drawInfo.Center.X - drawPlayer.bodyFrame.Width / 2 + drawPlayer.width / 2, drawInfo.Center.Y + drawPlayer.height - drawPlayer.bodyFrame.Height + 4f) + drawPlayer.bodyPosition;
|
||||
position += new Vector2(drawPlayer.bodyFrame.Width / 2, drawPlayer.bodyFrame.Height / 2) + new Vector2(-drawPlayer.direction * 10, offsetY - gravCheckOffset);
|
||||
position -= Main.screenPosition + drawPlayer.Size * 0.5f;
|
||||
|
||||
// Draw the original sign.
|
||||
DrawData drawData = new(texture, position, null, color, drawPlayer.bodyRotation, texture.Size() * 0.5f, 1f, spriteEffects, 0)
|
||||
{
|
||||
shader = dyeShader
|
||||
};
|
||||
drawInfo.DrawDataCache.Add(drawData);
|
||||
|
||||
// Draw 4 semi-transparent copies.
|
||||
for (float i = 0f; i < 4f; i++)
|
||||
{
|
||||
float angle = MathHelper.TwoPi / 4f * i;
|
||||
drawData = new(glowmask, position + angle.ToRotationVector2() * sinusoidalTime * 4f, null, afterimageColor, drawPlayer.bodyRotation, texture.Size() * 0.5f, 1f, spriteEffects, 0);
|
||||
drawInfo.DrawDataCache.Add(drawData);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
using System;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.CalPlayer.DrawLayers
|
||||
{
|
||||
public class GemTechGemLayer : PlayerDrawLayer
|
||||
{
|
||||
public override Position GetDefaultPosition() => new AfterParent(PlayerDrawLayers.EyebrellaCloud);
|
||||
|
||||
public override bool GetDefaultVisibility(PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
CalamityPlayer modPlayer = drawPlayer.Calamity();
|
||||
return drawInfo.shadow == 0f && !drawPlayer.dead && modPlayer.GemTechSet && drawPlayer.Calamity().andromedaState == AndromedaPlayerState.Inactive;
|
||||
}
|
||||
|
||||
protected override void Draw(ref PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
CalamityPlayer modPlayer = drawPlayer.Calamity();
|
||||
for (int i = 5; i >= 0; i--)
|
||||
{
|
||||
Texture2D gemTexture;
|
||||
float pulseFactor = 1.8f;
|
||||
GemTechArmorGemType gemType;
|
||||
switch (i)
|
||||
{
|
||||
case 0:
|
||||
default:
|
||||
gemTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GemTechArmor/RedGem").Value;
|
||||
gemType = GemTechArmorGemType.Rogue;
|
||||
break;
|
||||
case 1:
|
||||
gemTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GemTechArmor/YellowGem").Value;
|
||||
gemType = GemTechArmorGemType.Melee;
|
||||
break;
|
||||
case 2:
|
||||
gemTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GemTechArmor/GreenGem").Value;
|
||||
gemType = GemTechArmorGemType.Ranged;
|
||||
break;
|
||||
case 3:
|
||||
gemTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GemTechArmor/BlueGem").Value;
|
||||
gemType = GemTechArmorGemType.Summoner;
|
||||
break;
|
||||
case 4:
|
||||
gemTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GemTechArmor/PurpleGem").Value;
|
||||
gemType = GemTechArmorGemType.Magic;
|
||||
break;
|
||||
case 5:
|
||||
gemTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GemTechArmor/PinkGem").Value;
|
||||
gemType = GemTechArmorGemType.Base;
|
||||
pulseFactor = 2.5f;
|
||||
break;
|
||||
}
|
||||
|
||||
// Don't bother doing anything else if the gem is inactive.
|
||||
if (!modPlayer.GemTechState.GemIsActive(gemType))
|
||||
continue;
|
||||
|
||||
float drawOffsetAngle = modPlayer.GemTechState.CalculateGemOffsetAngle(gemType);
|
||||
float gemOpacity = MathHelper.Lerp(0.85f, 1.05f, (float)Math.Cos(Main.GlobalTimeWrappedHourly * 2.3f) * 0.5f + 0.5f);
|
||||
|
||||
// Incorporate a sinusoidal pulse into the pulse factor.
|
||||
pulseFactor *= (float)Math.Cos(Main.GlobalTimeWrappedHourly * 0.61f + drawOffsetAngle);
|
||||
|
||||
// Somewhat unorthodox way of creating an illusion of gems being drawn behind the player via orbiting.
|
||||
// Instead of actually messing with a Z position it simply fades away when the sine of the draw
|
||||
// offset angle is in the low negatives.
|
||||
gemOpacity *= Utils.GetLerpValue(-0.75f, -0.51f, (float)Math.Sin(drawOffsetAngle), true);
|
||||
|
||||
Vector2 baseDrawPosition = modPlayer.GemTechState.CalculateGemPosition(gemType) - Main.screenPosition;
|
||||
|
||||
// Draw back afterimages.
|
||||
for (int j = 0; j < 5; j++)
|
||||
{
|
||||
Color backAfterimageColor = Main.hslToRgb((Main.GlobalTimeWrappedHourly * 0.47f + j / 5f) % 1f, 1f, 0.67f);
|
||||
backAfterimageColor = Color.Lerp(backAfterimageColor, Color.White, 0.64f) * gemOpacity * 0.24f;
|
||||
Vector2 drawPosition = baseDrawPosition + (MathHelper.TwoPi * j / 5f).ToRotationVector2() * pulseFactor;
|
||||
DrawData gemBackDrawData = new DrawData(gemTexture, drawPosition, null, backAfterimageColor, 0f, gemTexture.Size() * 0.5f, 1f, SpriteEffects.None, 0);
|
||||
drawInfo.DrawDataCache.Add(gemBackDrawData);
|
||||
}
|
||||
|
||||
// Draw the main gem.
|
||||
Color baseGemColor = Main.hslToRgb(Main.GlobalTimeWrappedHourly * 0.51f % 1f, 1f, 0.67f);
|
||||
baseGemColor = Color.Lerp(baseGemColor, Color.White, 0.56f);
|
||||
baseGemColor.A = 105;
|
||||
baseGemColor *= gemOpacity;
|
||||
DrawData gemDrawData = new DrawData(gemTexture, baseDrawPosition, null, baseGemColor, 0f, gemTexture.Size() * 0.5f, 1f, SpriteEffects.None, 0);
|
||||
drawInfo.DrawDataCache.Add(gemDrawData);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.CalPlayer.DrawLayers
|
||||
{
|
||||
public class HatExtensionLayer : PlayerDrawLayer
|
||||
{
|
||||
public override Position GetDefaultPosition() => new AfterParent(PlayerDrawLayers.Head);
|
||||
|
||||
public override bool GetDefaultVisibility(PlayerDrawSet drawInfo) => drawInfo.shadow != 0f || drawInfo.drawPlayer.dead;
|
||||
|
||||
protected override void Draw(ref PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
int headItemType = drawPlayer.armor[0].type;
|
||||
if (drawPlayer.armor[10].type > ItemID.None)
|
||||
headItemType = drawPlayer.armor[10].type;
|
||||
|
||||
if (ModContent.GetModItem(headItemType) is IExtendedHat extendedHatDrawer)
|
||||
{
|
||||
if (extendedHatDrawer.PreDrawExtension(drawInfo))
|
||||
{
|
||||
int dyeShader = drawPlayer.dye?[0].dye ?? 0;
|
||||
|
||||
// Remember to use drawInfo.position and not drawPlayer.position, or else it will not display properly in the player selection screen.
|
||||
Vector2 origin = new Vector2(drawPlayer.legFrame.Width * 0.5f, drawPlayer.legFrame.Height * 0.4f);
|
||||
Vector2 headDrawPosition = drawInfo.Center.Floor() - Main.screenPosition;
|
||||
|
||||
//Account for the hellspawns known as mounts
|
||||
if (drawPlayer.mount.Active)
|
||||
headDrawPosition.Y += drawPlayer.mount.HeightBoost;
|
||||
|
||||
headDrawPosition += extendedHatDrawer.ExtensionSpriteOffset(drawInfo);
|
||||
|
||||
Texture2D extraPieceTexture = ModContent.Request<Texture2D>(extendedHatDrawer.ExtensionTexture).Value;
|
||||
Rectangle frame = extraPieceTexture.Frame(1, 20, 0, drawPlayer.bodyFrame.Y / drawPlayer.bodyFrame.Height);
|
||||
DrawData pieceDrawData = new DrawData(extraPieceTexture, headDrawPosition, frame, drawInfo.colorHead, drawPlayer.fullRotation, origin, 1f, drawInfo.playerEffect, 0)
|
||||
{
|
||||
shader = dyeShader
|
||||
};
|
||||
drawInfo.DrawDataCache.Add(pieceDrawData);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.DataStructures;
|
||||
|
||||
public interface IExtendedHat
|
||||
{
|
||||
/// <summary>
|
||||
/// The texture of the extension
|
||||
/// </summary>
|
||||
string ExtensionTexture { get; }
|
||||
/// <summary>
|
||||
/// Unless you are using custom drawing, mount offsets are taken into account automatically.
|
||||
/// </summary>
|
||||
Vector2 ExtensionSpriteOffset(PlayerDrawSet drawInfo);
|
||||
/// <summary>
|
||||
///Return true to make the extension get drawn automatically from the texture and offsets provided. Return false if you want to draw it yourself
|
||||
/// </summary>
|
||||
bool PreDrawExtension(PlayerDrawSet drawInfo);
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.CalPlayer.DrawLayers
|
||||
{
|
||||
public class MountsAboveOwnerLayer : PlayerDrawLayer
|
||||
{
|
||||
public override Position GetDefaultPosition() => new AfterParent(PlayerDrawLayers.EyebrellaCloud);
|
||||
|
||||
public override bool GetDefaultVisibility(PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
CalamityPlayer modPlayer = drawPlayer.Calamity();
|
||||
return drawPlayer.mount != null && (modPlayer.fab || modPlayer.crysthamyr || modPlayer.onyxExcavator);
|
||||
}
|
||||
|
||||
protected override void Draw(ref PlayerDrawSet drawInfo)
|
||||
{
|
||||
drawInfo.drawPlayer.mount.Draw(drawInfo.DrawDataCache, 3, drawInfo.drawPlayer, drawInfo.Center - drawInfo.drawPlayer.Size * 0.5f, drawInfo.colorMount, drawInfo.playerEffect, drawInfo.shadow);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using CalamityMod.Items.Dyes;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.CalPlayer.DrawLayers
|
||||
{
|
||||
public class ProfanedMoonlightDyeLayer : PlayerDrawLayer
|
||||
{
|
||||
public static readonly List<Color> MoonlightDyeDayColors = new()
|
||||
{
|
||||
new Color(255, 163, 56),
|
||||
new Color(235, 30, 19),
|
||||
new Color(242, 48, 187),
|
||||
};
|
||||
|
||||
public static readonly List<Color> MoonlightDyeNightColors = new()
|
||||
{
|
||||
new Color(24, 134, 198),
|
||||
new Color(130, 40, 150),
|
||||
new Color(40, 64, 150),
|
||||
};
|
||||
|
||||
public static void DetermineMoonlightDyeColors(out Color drawColor, Color dayColor, Color nightColor)
|
||||
{
|
||||
int totalTime = Main.dayTime ? 54000 : 32400;
|
||||
float transitionTime = 5400;
|
||||
float interval = Utils.GetLerpValue(0f, transitionTime, (float)Main.time, true) + Utils.GetLerpValue(totalTime - transitionTime, totalTime, (float)Main.time, true);
|
||||
if (Main.dayTime)
|
||||
{
|
||||
// Dusk.
|
||||
if (Main.time >= totalTime - transitionTime)
|
||||
drawColor = Color.Lerp(dayColor, nightColor, Utils.GetLerpValue(totalTime - transitionTime, totalTime, (float)Main.time, true));
|
||||
// Dawn.
|
||||
else if (Main.time <= transitionTime)
|
||||
drawColor = Color.Lerp(nightColor, dayColor, interval);
|
||||
else
|
||||
drawColor = dayColor;
|
||||
}
|
||||
else drawColor = nightColor;
|
||||
}
|
||||
|
||||
public static Color GetCurrentMoonlightDyeColor(float angleOffset = 0f)
|
||||
{
|
||||
float interval = (float)Math.Cos(Main.GlobalTimeWrappedHourly * 0.6f + angleOffset) * 0.5f + 0.5f;
|
||||
interval = MathHelper.Clamp(interval, 0f, 0.995f);
|
||||
Color dayColorToUse = CalamityUtils.MulticolorLerp(interval, MoonlightDyeDayColors.ToArray());
|
||||
Color nightColorToUse = CalamityUtils.MulticolorLerp(interval, MoonlightDyeNightColors.ToArray());
|
||||
DetermineMoonlightDyeColors(out Color drawColor, dayColorToUse, nightColorToUse);
|
||||
return drawColor;
|
||||
}
|
||||
|
||||
public override Position GetDefaultPosition() => new AfterParent(PlayerDrawLayers.EyebrellaCloud);
|
||||
|
||||
public override bool GetDefaultVisibility(PlayerDrawSet drawInfo)
|
||||
{
|
||||
if (drawInfo.shadow != 0f)
|
||||
return false;
|
||||
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
int totalMoonlightDyes = drawPlayer.dye.Count(dyeItem => dyeItem.type == ModContent.ItemType<ProfanedMoonlightDye>());
|
||||
return totalMoonlightDyes > 0;
|
||||
}
|
||||
|
||||
protected override void Draw(ref PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
int totalMoonlightDyes = drawPlayer.dye.Count(dyeItem => dyeItem.type == ModContent.ItemType<ProfanedMoonlightDye>());
|
||||
drawInfo.DrawDataCache.AddRange(CalamityUtils.DrawAuroras(drawPlayer, 5 + (int)MathHelper.Clamp(totalMoonlightDyes, 0f, 4f) * 2, MathHelper.Clamp(totalMoonlightDyes / 3f, 0f, 1f), GetCurrentMoonlightDyeColor()));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.CalPlayer.DrawLayers
|
||||
{
|
||||
public class ProvidenceBurnFireLayer : PlayerDrawLayer
|
||||
{
|
||||
public override Position GetDefaultPosition() => new AfterParent(PlayerDrawLayers.BackAcc);
|
||||
|
||||
public override bool GetDefaultVisibility(PlayerDrawSet drawInfo) => drawInfo.shadow == 0f;
|
||||
|
||||
protected override void Draw(ref PlayerDrawSet drawInfo)
|
||||
{
|
||||
if (drawInfo.shadow != 0f)
|
||||
return;
|
||||
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
CalamityPlayer modPlayer = drawPlayer.Calamity();
|
||||
|
||||
modPlayer.ProvidenceBurnEffectDrawer.DrawSet(drawPlayer.Bottom - Vector2.UnitY * 10f);
|
||||
modPlayer.ProvidenceBurnEffectDrawer.SpawnAreaCompactness = 18f;
|
||||
modPlayer.ProvidenceBurnEffectDrawer.RelativePower = 0.4f;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
using CalamityMod.Projectiles.Magic;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.GameContent;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.CalPlayer.DrawLayers
|
||||
{
|
||||
public class RancorBookLayer : PlayerDrawLayer
|
||||
{
|
||||
public override Position GetDefaultPosition() => new AfterParent(PlayerDrawLayers.ArmOverItem);
|
||||
|
||||
public override bool GetDefaultVisibility(PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
if (drawInfo.shadow != 0f || drawPlayer.dead)
|
||||
return false;
|
||||
|
||||
return drawPlayer.heldProj != -1 && Main.projectile[drawPlayer.heldProj].active && Main.projectile[drawPlayer.heldProj].type == ModContent.ProjectileType<RancorHoldout>();
|
||||
}
|
||||
|
||||
protected override void Draw(ref PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
|
||||
int bookType = ModContent.ProjectileType<RancorHoldout>();
|
||||
Texture2D bookTexture = TextureAssets.Projectile[bookType].Value;
|
||||
Projectile book = Main.projectile[drawPlayer.heldProj];
|
||||
Rectangle frame = bookTexture.Frame(1, Main.projFrames[bookType], 0, book.frame);
|
||||
Vector2 origin = frame.Size() * 0.5f;
|
||||
Vector2 drawPosition = drawPlayer.Center + Vector2.UnitX * drawPlayer.direction * 8f - Main.screenPosition;
|
||||
Color drawColor = book.GetAlpha(Color.White);
|
||||
SpriteEffects direction = book.spriteDirection == 1f ? SpriteEffects.None : SpriteEffects.FlipHorizontally;
|
||||
DrawData bookDrawData = new DrawData(bookTexture, drawPosition, frame, drawColor, book.rotation, origin, book.scale, direction, 0);
|
||||
drawInfo.DrawDataCache.Add(bookDrawData);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.CalPlayer.DrawLayers
|
||||
{
|
||||
public class RoverDriveShieldLayer : PlayerDrawLayer
|
||||
{
|
||||
public override Position GetDefaultPosition() => new BeforeParent(PlayerDrawLayers.Skin);
|
||||
|
||||
public override bool GetDefaultVisibility(PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
CalamityPlayer modPlayer = drawPlayer.Calamity();
|
||||
return drawInfo.shadow == 0f && !drawPlayer.dead && modPlayer.roverDriveTimer < 616 && modPlayer.roverDrive;
|
||||
}
|
||||
|
||||
protected override void Draw(ref PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/RoverAccShield").Value;
|
||||
Vector2 drawPos = drawPlayer.Center - Main.screenPosition + new Vector2(0f, drawPlayer.gfxOffY);
|
||||
Rectangle frame = texture.Frame(1, 11, 0, drawPlayer.Calamity().roverFrame);
|
||||
Color color = Color.White * 0.625f;
|
||||
Vector2 origin = new Vector2(texture.Width / 2f, texture.Height / 2f / 11f);
|
||||
float scale = 1f + (float)Math.Cos(Main.GlobalTimeWrappedHourly) * 0.1f;
|
||||
SpriteEffects spriteEffects = drawPlayer.direction != -1 ? SpriteEffects.None : SpriteEffects.FlipHorizontally;
|
||||
|
||||
drawInfo.DrawDataCache.Add(new DrawData(texture, drawPos, frame, color, 0f, origin, scale, spriteEffects, 0));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.CalPlayer.DrawLayers
|
||||
{
|
||||
public class SirenIceShieldLayer : PlayerDrawLayer
|
||||
{
|
||||
public override Position GetDefaultPosition() => new AfterParent(PlayerDrawLayers.BackAcc);
|
||||
|
||||
public override bool GetDefaultVisibility(PlayerDrawSet drawInfo) => drawInfo.drawPlayer.Calamity().sirenIce && drawInfo.shadow == 0f;
|
||||
|
||||
protected override void Draw(ref PlayerDrawSet drawInfo)
|
||||
{
|
||||
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/IceShield").Value;
|
||||
int drawX = (int)(drawInfo.Center.X - Main.screenPosition.X);
|
||||
int drawY = (int)(drawInfo.Center.Y - Main.screenPosition.Y);
|
||||
drawInfo.DrawDataCache.Add(new DrawData(texture, new Vector2(drawX, drawY), null, Color.White, 0f, texture.Size() * 0.5f, 1f, SpriteEffects.None, 0));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
using CalamityMod.Projectiles.Magic;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.GameContent;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.CalPlayer.DrawLayers
|
||||
{
|
||||
public class StratusSphereOrbLayer : PlayerDrawLayer
|
||||
{
|
||||
public override Position GetDefaultPosition() => new AfterParent(PlayerDrawLayers.ArmOverItem);
|
||||
|
||||
public override bool GetDefaultVisibility(PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
if (drawInfo.shadow != 0f || drawPlayer.dead)
|
||||
return false;
|
||||
|
||||
return drawPlayer.ActiveItem().type == ModContent.ItemType<StratusSphere>();
|
||||
}
|
||||
|
||||
protected override void Draw(ref PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
|
||||
SpriteEffects effect;
|
||||
if (drawPlayer.direction == 1)
|
||||
effect = SpriteEffects.None;
|
||||
else
|
||||
effect = SpriteEffects.FlipHorizontally;
|
||||
if (drawPlayer.gravDir != 1f)
|
||||
effect |= SpriteEffects.FlipVertically;
|
||||
|
||||
Vector2 itemDrawPosition = drawPlayer.Center;
|
||||
Texture2D drawTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/StratusSphereHold").Value;
|
||||
Rectangle rectangle = drawTexture.Frame(1, 4, 0, (int)(Math.Sin(drawPlayer.miscCounter / 20f * MathHelper.TwoPi) * 2f + 2));
|
||||
Vector2 drawOffset = new Vector2(rectangle.Width / 2 * drawPlayer.direction, 0f);
|
||||
Vector2 origin = rectangle.Size() / 2f;
|
||||
drawInfo.DrawDataCache.Add(new DrawData(drawTexture,
|
||||
(itemDrawPosition - Main.screenPosition + drawOffset).Floor(),
|
||||
new Rectangle?(rectangle),
|
||||
Color.White,
|
||||
drawPlayer.itemRotation,
|
||||
origin,
|
||||
drawPlayer.inventory[drawPlayer.selectedItem].scale,
|
||||
effect,
|
||||
0));
|
||||
drawTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/StratusSphereHoldGlow").Value;
|
||||
drawInfo.DrawDataCache.Add(new DrawData(drawTexture,
|
||||
(itemDrawPosition - Main.screenPosition + drawOffset).Floor(),
|
||||
new Rectangle?(rectangle),
|
||||
Color.White,
|
||||
drawPlayer.itemRotation,
|
||||
origin,
|
||||
drawPlayer.inventory[drawPlayer.selectedItem].scale,
|
||||
effect,
|
||||
0));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.CalPlayer.DrawLayers
|
||||
{
|
||||
public class YanmeiKnifeTrail : PlayerDrawLayer
|
||||
{
|
||||
public override Position GetDefaultPosition() => new AfterParent(PlayerDrawLayers.EyebrellaCloud);
|
||||
|
||||
public override bool GetDefaultVisibility(PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
if (drawInfo.shadow != 0f || drawPlayer.dead)
|
||||
return false;
|
||||
|
||||
return drawPlayer.Calamity().kamiBoost;
|
||||
}
|
||||
|
||||
protected override void Draw(ref PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
List<DrawData> existingDrawData = drawInfo.DrawDataCache;
|
||||
for (int i = 0; i < drawPlayer.Calamity().OldPositions.Length; i++)
|
||||
{
|
||||
float completionRatio = i / (float)drawPlayer.Calamity().OldPositions.Length;
|
||||
float scale = MathHelper.Lerp(1f, 0.5f, completionRatio);
|
||||
float opacity = MathHelper.Lerp(0.25f, 0.08f, completionRatio);
|
||||
List<DrawData> afterimages = new List<DrawData>();
|
||||
for (int j = 0; j < existingDrawData.Count; j++)
|
||||
{
|
||||
var drawData = existingDrawData[j];
|
||||
drawData.position = existingDrawData[j].position - drawPlayer.position + drawPlayer.oldPosition;
|
||||
drawData.color = Color.Cyan * opacity;
|
||||
drawData.color.G = (byte)(drawData.color.G * 1.6);
|
||||
drawData.color.B = (byte)(drawData.color.B * 1.2);
|
||||
drawData.scale = new Vector2(scale);
|
||||
afterimages.Add(drawData);
|
||||
}
|
||||
drawInfo.DrawDataCache.InsertRange(0, afterimages);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Buffs.Mounts;
|
||||
using CalamityMod.Buffs.Mounts;
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.NPCs.TownNPCs;
|
||||
using Microsoft.Xna.Framework;
|
||||
|
||||
@@ -28,13 +28,13 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.defense = 100;
|
||||
NPC.lifeMax = 7200;
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.value = Item.buyPrice(0, 0, 30, 0);
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
NPC.knockBackResist = 0.9f;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<BloatfishBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<BloatfishBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = true;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -32,13 +32,13 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.DR_NERD(0.25f);
|
||||
NPC.lifeMax = 6000;
|
||||
NPC.knockBackResist = 0f;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.noGravity = true;
|
||||
NPC.value = Item.buyPrice(0, 0, 50, 0);
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<BobbitWormBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<BobbitWormBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = true;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -27,12 +27,12 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.lifeMax = 90;
|
||||
NPC.alpha = 20;
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.value = Item.buyPrice(0, 0, 0, 80);
|
||||
NPC.HitSound = SoundID.NPCHit25;
|
||||
NPC.DeathSound = SoundID.NPCDeath28;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<BoxJellyfishBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<BoxJellyfishBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -34,13 +34,13 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.defense = 50;
|
||||
NPC.lifeMax = 5625;
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.value = Item.buyPrice(0, 0, 30, 0);
|
||||
NPC.HitSound = SoundID.NPCHit23;
|
||||
NPC.DeathSound = SoundID.NPCDeath28;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<ChaoticPufferBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<ChaoticPufferBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = true;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
@@ -125,7 +125,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
{
|
||||
int damageBoom = 45;
|
||||
int projectileType = ModContent.ProjectileType<PufferExplosion>();
|
||||
int boom = Projectile.NewProjectile(NPC.Center.X, NPC.Center.Y, 0, 0, projectileType, damageBoom, 0f, Main.myPlayer, 0f, 0f);
|
||||
int boom = Projectile.NewProjectile(NPC.GetSpawnSource_ForProjectile(), NPC.Center.X, NPC.Center.Y, 0, 0, projectileType, damageBoom, 0f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
NPC.netUpdate = true;
|
||||
}
|
||||
|
||||
@@ -37,15 +37,15 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.DR_NERD(0.05f);
|
||||
NPC.lifeMax = 130000; // Previously 220,000
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.timeLeft = NPC.activeTime * 30;
|
||||
NPC.value = Item.buyPrice(0, 25, 0, 0);
|
||||
NPC.HitSound = SoundID.NPCHit20;
|
||||
NPC.DeathSound = SoundID.NPCDeath23;
|
||||
NPC.rarity = 2;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<ColossalSquidBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<ColossalSquidBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = true;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
@@ -393,7 +393,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
damage = 55;
|
||||
}
|
||||
SoundEngine.PlaySound(SoundID.Item, (int)NPC.position.X, (int)NPC.position.Y, 111);
|
||||
Projectile.NewProjectile(NPC.Center.X, NPC.Center.Y + 60, 0f, 2f, ModContent.ProjectileType<InkBombHostile>(), damage, 0f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(NPC.GetSpawnSource_ForProjectile(), NPC.Center.X, NPC.Center.Y + 60, 0f, 2f, ModContent.ProjectileType<InkBombHostile>(), damage, 0f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
NPC.rotation = NPC.velocity.X * 0.05f;
|
||||
NPC.velocity *= 0.975f;
|
||||
|
||||
@@ -28,13 +28,13 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.defense = 8;
|
||||
NPC.lifeMax = 110;
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.value = Item.buyPrice(0, 0, 1, 0);
|
||||
NPC.HitSound = SoundID.NPCHit33;
|
||||
NPC.DeathSound = SoundID.NPCDeath28;
|
||||
NPC.knockBackResist = 0.3f;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<CuttlefishBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<CuttlefishBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = true;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -35,13 +35,13 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.defense = 999999;
|
||||
NPC.lifeMax = 400;
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.value = Item.buyPrice(0, 0, 10, 0);
|
||||
NPC.HitSound = SoundID.NPCHit4;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
NPC.knockBackResist = 0.85f;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<DevilFishBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<DevilFishBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = true;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -35,13 +35,13 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.defense = 999999;
|
||||
NPC.lifeMax = 400;
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.value = Item.buyPrice(0, 0, 10, 0);
|
||||
NPC.HitSound = SoundID.NPCHit4;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
NPC.knockBackResist = 0.85f;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<DevilFishBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<DevilFishBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = true;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.defense = 0;
|
||||
NPC.lifeMax = 160000;
|
||||
NPC.aiStyle = -1; //new
|
||||
aiType = -1; //new
|
||||
AIType = -1; //new
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.alpha = 255;
|
||||
NPC.behindTiles = true;
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.defense = 0;
|
||||
NPC.lifeMax = 160000;
|
||||
NPC.aiStyle = -1; //new
|
||||
aiType = -1; //new
|
||||
AIType = -1; //new
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.alpha = 255;
|
||||
NPC.behindTiles = true;
|
||||
|
||||
@@ -162,13 +162,13 @@ namespace CalamityMod.NPCs.Abyss
|
||||
int random = Main.rand.Next(randomAmt);
|
||||
if (random == 0)
|
||||
{
|
||||
Projectile.NewProjectile(vector2, Vector2.Zero, ProjectileID.CultistBossLightningOrb, damage, 0f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(NPC.GetSpawnSource_ForProjectile(), vector2, Vector2.Zero, ProjectileID.CultistBossLightningOrb, damage, 0f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
else if (random == 1)
|
||||
{
|
||||
Vector2 vec = (Main.player[NPC.target].Center - NPC.Center).SafeNormalize(Vector2.UnitX * NPC.direction);
|
||||
Vector2 vector4 = vec * (adultWyrmAlive ? 6f : 4f);
|
||||
Projectile.NewProjectile(vector2, vector4, ProjectileID.CultistBossIceMist, damage, 0f, Main.myPlayer, 0f, 1f);
|
||||
Projectile.NewProjectile(NPC.GetSpawnSource_ForProjectile(), vector2, vector4, ProjectileID.CultistBossIceMist, damage, 0f, Main.myPlayer, 0f, 1f);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.defense = 0;
|
||||
NPC.lifeMax = 160000;
|
||||
NPC.aiStyle = -1; //new
|
||||
aiType = -1; //new
|
||||
AIType = -1; //new
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.alpha = 255;
|
||||
NPC.behindTiles = true;
|
||||
|
||||
@@ -32,12 +32,12 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.defense = 18;
|
||||
NPC.lifeMax = 800;
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.value = Item.buyPrice(0, 0, 15, 0);
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<GiantSquidBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<GiantSquidBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = true;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.defense = 30;
|
||||
NPC.lifeMax = 60000;
|
||||
NPC.aiStyle = -1; //new
|
||||
aiType = -1; //new
|
||||
AIType = -1; //new
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.alpha = 255;
|
||||
NPC.behindTiles = true;
|
||||
@@ -34,8 +34,8 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.netAlways = true;
|
||||
NPC.dontCountMe = true;
|
||||
NPC.chaseable = false;
|
||||
banner = ModContent.NPCType<GulperEelHead>();
|
||||
bannerItem = ModContent.ItemType<GulperEelBanner>();
|
||||
Banner = ModContent.NPCType<GulperEelHead>();
|
||||
BannerItem = ModContent.ItemType<GulperEelBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = true;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.defense = 30;
|
||||
NPC.lifeMax = 60000;
|
||||
NPC.aiStyle = -1; //new
|
||||
aiType = -1; //new
|
||||
AIType = -1; //new
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.alpha = 255;
|
||||
NPC.behindTiles = true;
|
||||
@@ -34,8 +34,8 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.netAlways = true;
|
||||
NPC.dontCountMe = true;
|
||||
NPC.chaseable = false;
|
||||
banner = ModContent.NPCType<GulperEelHead>();
|
||||
bannerItem = ModContent.ItemType<GulperEelBanner>();
|
||||
Banner = ModContent.NPCType<GulperEelHead>();
|
||||
BannerItem = ModContent.ItemType<GulperEelBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = true;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.defense = 50;
|
||||
NPC.lifeMax = 60000;
|
||||
NPC.aiStyle = -1; //new
|
||||
aiType = -1; //new
|
||||
AIType = -1; //new
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.alpha = 255;
|
||||
NPC.behindTiles = true;
|
||||
@@ -34,8 +34,8 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.netAlways = true;
|
||||
NPC.dontCountMe = true;
|
||||
NPC.chaseable = false;
|
||||
banner = ModContent.NPCType<GulperEelHead>();
|
||||
bannerItem = ModContent.ItemType<GulperEelBanner>();
|
||||
Banner = ModContent.NPCType<GulperEelHead>();
|
||||
BannerItem = ModContent.ItemType<GulperEelBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = true;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -27,13 +27,13 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.defense = 15;
|
||||
NPC.lifeMax = 480;
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.value = Item.buyPrice(0, 0, 10, 0);
|
||||
NPC.HitSound = SoundID.NPCHit51;
|
||||
NPC.DeathSound = SoundID.NPCDeath26;
|
||||
NPC.knockBackResist = 0.65f;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<LaserfishBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<LaserfishBanner>();
|
||||
NPC.chaseable = false;
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = true;
|
||||
|
||||
@@ -35,13 +35,13 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.defense = 12;
|
||||
NPC.lifeMax = 800;
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.value = Item.buyPrice(0, 0, 15, 0);
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
NPC.knockBackResist = 0.85f;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<LuminousCorvinaBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<LuminousCorvinaBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = true;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -34,13 +34,13 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.defense = 10;
|
||||
NPC.lifeMax = 6000;
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.value = Item.buyPrice(0, 0, 25, 0);
|
||||
NPC.HitSound = SoundID.NPCHit25;
|
||||
NPC.DeathSound = SoundID.NPCDeath28;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<MirageJellyBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<MirageJellyBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
NPC.Calamity().VulnerableToElectricity = false;
|
||||
|
||||
@@ -24,13 +24,13 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.defense = 8;
|
||||
NPC.lifeMax = 360;
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.value = Item.buyPrice(0, 0, 1, 0);
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
NPC.knockBackResist = 0.75f;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<MorayEelBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<MorayEelBanner>();
|
||||
NPC.chaseable = false;
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.defense = 20;
|
||||
NPC.lifeMax = 4000;
|
||||
NPC.aiStyle = -1; //new
|
||||
aiType = -1; //new
|
||||
AIType = -1; //new
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.alpha = 255;
|
||||
NPC.behindTiles = true;
|
||||
@@ -32,8 +32,8 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.netAlways = true;
|
||||
NPC.dontCountMe = true;
|
||||
NPC.chaseable = false;
|
||||
banner = ModContent.NPCType<OarfishHead>();
|
||||
bannerItem = ModContent.ItemType<OarfishBanner>();
|
||||
Banner = ModContent.NPCType<OarfishHead>();
|
||||
BannerItem = ModContent.ItemType<OarfishBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = true;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.defense = 30;
|
||||
NPC.lifeMax = 4000;
|
||||
NPC.aiStyle = -1; //new
|
||||
aiType = -1; //new
|
||||
AIType = -1; //new
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.alpha = 255;
|
||||
NPC.behindTiles = true;
|
||||
@@ -32,8 +32,8 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.netAlways = true;
|
||||
NPC.dontCountMe = true;
|
||||
NPC.chaseable = false;
|
||||
banner = ModContent.NPCType<OarfishHead>();
|
||||
bannerItem = ModContent.ItemType<OarfishBanner>();
|
||||
Banner = ModContent.NPCType<OarfishHead>();
|
||||
BannerItem = ModContent.ItemType<OarfishBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = true;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -39,15 +39,15 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.defense = 70;
|
||||
NPC.lifeMax = 100000; // Previously 190,000
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.timeLeft = NPC.activeTime * 30;
|
||||
NPC.value = Item.buyPrice(0, 25, 0, 0);
|
||||
NPC.HitSound = SoundID.NPCHit56;
|
||||
NPC.DeathSound = SoundID.NPCDeath60;
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.rarity = 2;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<ReaperSharkBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<ReaperSharkBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = true;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -30,13 +30,13 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.defense = 20;
|
||||
NPC.lifeMax = 240;
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.value = Item.buyPrice(0, 0, 5, 0);
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
NPC.knockBackResist = 0.15f;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<ToxicMinnowBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<ToxicMinnowBanner>();
|
||||
NPC.chaseable = false;
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
@@ -89,8 +89,8 @@ namespace CalamityMod.NPCs.Abyss
|
||||
{
|
||||
int projectileType = ModContent.ProjectileType<ToxicMinnowCloud>();
|
||||
offsetAngleBoom = startAngleBoom + deltaAngleBoom * (iBoom + iBoom * iBoom) / 2f + 32f * iBoom;
|
||||
int boom1 = Projectile.NewProjectile(valueBoom.X, valueBoom.Y, (float)(Math.Sin(offsetAngleBoom) * 6f), (float)(Math.Cos(offsetAngleBoom) * 6f), projectileType, damageBoom, 0f, Main.myPlayer, 0f, 0f);
|
||||
int boom2 = Projectile.NewProjectile(valueBoom.X, valueBoom.Y, (float)(-Math.Sin(offsetAngleBoom) * 6f), (float)(-Math.Cos(offsetAngleBoom) * 6f), projectileType, damageBoom, 0f, Main.myPlayer, 0f, 0f);
|
||||
int boom1 = Projectile.NewProjectile(NPC.GetSpawnSource_ForProjectile(), valueBoom.X, valueBoom.Y, (float)(Math.Sin(offsetAngleBoom) * 6f), (float)(Math.Cos(offsetAngleBoom) * 6f), projectileType, damageBoom, 0f, Main.myPlayer, 0f, 0f);
|
||||
int boom2 = Projectile.NewProjectile(NPC.GetSpawnSource_ForProjectile(), valueBoom.X, valueBoom.Y, (float)(-Math.Sin(offsetAngleBoom) * 6f), (float)(-Math.Cos(offsetAngleBoom) * 6f), projectileType, damageBoom, 0f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
NPC.netUpdate = true;
|
||||
|
||||
@@ -28,13 +28,13 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.defense = 10;
|
||||
NPC.lifeMax = 320;
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.value = Item.buyPrice(0, 0, 5, 0);
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
NPC.knockBackResist = 0.85f;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<ViperfishBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<ViperfishBanner>();
|
||||
NPC.chaseable = false;
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = true;
|
||||
|
||||
@@ -51,13 +51,13 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
|
||||
NPC.value = Item.buyPrice(0, 0, 3, 32);
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.lavaImmune = false;
|
||||
NPC.noGravity = true;
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<AcidEelBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<AcidEelBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
|
||||
NPC.width = 68;
|
||||
NPC.height = 54;
|
||||
NPC.aiStyle = aiType = -1;
|
||||
NPC.aiStyle = AIType = -1;
|
||||
|
||||
NPC.damage = 66;
|
||||
NPC.lifeMax = 4000;
|
||||
|
||||
@@ -34,8 +34,8 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
NPC.noTileCollide = false;
|
||||
NPC.HitSound = SoundID.NPCHit41;
|
||||
NPC.DeathSound = SoundID.DD2_WitherBeastDeath;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<FlakCrabBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<FlakCrabBanner>();
|
||||
NPC.dontTakeDamageFromHostiles = true;
|
||||
NPC.catchItem = (short)ModContent.ItemType<BabyFlakHermit>();
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
NPC.damage = 10;
|
||||
NPC.lifeMax = 300;
|
||||
|
||||
NPC.aiStyle = aiType = -1;
|
||||
NPC.aiStyle = AIType = -1;
|
||||
|
||||
if (CalamityWorld.downedPolterghast)
|
||||
{
|
||||
@@ -52,8 +52,8 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
NPC.noTileCollide = false;
|
||||
NPC.HitSound = SoundID.NPCHit41;
|
||||
NPC.DeathSound = SoundID.DD2_WitherBeastDeath;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<FlakCrabBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<FlakCrabBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
NPC.DR_NERD(0.15f);
|
||||
NPC.defense = 25;
|
||||
|
||||
NPC.aiStyle = aiType = -1;
|
||||
NPC.aiStyle = AIType = -1;
|
||||
|
||||
NPC.knockBackResist = 0f;
|
||||
animationType = NPCID.CorruptSlime;
|
||||
@@ -51,8 +51,8 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
NPC.noTileCollide = false;
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<GammaSlimeBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<GammaSlimeBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
|
||||
NPC.knockBackResist = 0f;
|
||||
animationType = NPCID.CorruptSlime;
|
||||
aiType = NPCID.ToxicSludge;
|
||||
AIType = NPCID.ToxicSludge;
|
||||
NPC.value = Item.buyPrice(0, 0, 5, 0);
|
||||
NPC.alpha = 50;
|
||||
NPC.lavaImmune = false;
|
||||
@@ -39,8 +39,8 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
NPC.noTileCollide = false;
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<IrradiatedSlimeBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<IrradiatedSlimeBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
@@ -66,7 +66,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
NPC.TargetClosest(false);
|
||||
Player player = Main.player[NPC.target];
|
||||
NPC.aiStyle = aiType = -1;
|
||||
NPC.aiStyle = AIType = -1;
|
||||
|
||||
NPC.noTileCollide = NPC.noGravity = true;
|
||||
if (player.Top.Y < NPC.Bottom.Y)
|
||||
|
||||
@@ -55,14 +55,14 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
NPC.DR_NERD(0.05f);
|
||||
NPC.lifeMax = 88500;
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.value = Item.buyPrice(0, 25, 0, 0);
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath60;
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.rarity = 2;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<MaulerBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<MaulerBanner>();
|
||||
NPC.RemoveWaterSlowness();
|
||||
NPC.Calamity().canBreakPlayerDefense = true;
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
|
||||
@@ -82,7 +82,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
|
||||
NPC.width = 176;
|
||||
NPC.height = 138;
|
||||
NPC.aiStyle = aiType = -1;
|
||||
NPC.aiStyle = AIType = -1;
|
||||
|
||||
NPC.lifeMax = 90000;
|
||||
NPC.defense = 50;
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
NPC.height = 34;
|
||||
NPC.defense = 4;
|
||||
|
||||
NPC.aiStyle = aiType = -1;
|
||||
NPC.aiStyle = AIType = -1;
|
||||
|
||||
NPC.damage = 15;
|
||||
NPC.lifeMax = 60;
|
||||
@@ -54,8 +54,8 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
NPC.noTileCollide = false;
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<NuclearToadBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<NuclearToadBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
NPC.width = 62;
|
||||
NPC.height = 34;
|
||||
NPC.aiStyle = aiType = -1;
|
||||
NPC.aiStyle = AIType = -1;
|
||||
|
||||
NPC.damage = 45;
|
||||
NPC.lifeMax = 280;
|
||||
@@ -60,8 +60,8 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
NPC.noTileCollide = false;
|
||||
NPC.HitSound = SoundID.NPCHit41;
|
||||
NPC.DeathSound = SoundID.NPCDeath13;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<OrthoceraBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<OrthoceraBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -47,9 +47,9 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
NPC.noTileCollide = false;
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
aiType = NPCID.GlowingSnail;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<RadiatorBanner>();
|
||||
AIType = NPCID.GlowingSnail;
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<RadiatorBanner>();
|
||||
NPC.catchItem = (short)ModContent.ItemType<RadiatingCrystal>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
NPC.width = 46;
|
||||
NPC.height = 22;
|
||||
NPC.aiStyle = aiType = -1;
|
||||
NPC.aiStyle = AIType = -1;
|
||||
|
||||
NPC.damage = 12;
|
||||
NPC.lifeMax = 70;
|
||||
@@ -56,8 +56,8 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
NPC.noTileCollide = true;
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<SkyfinBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<SkyfinBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -56,10 +56,10 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
NPC.noTileCollide = false;
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<SulfurousSkaterBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<SulfurousSkaterBanner>();
|
||||
|
||||
NPC.aiStyle = aiType = -1;
|
||||
NPC.aiStyle = AIType = -1;
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
NPC.width = 36;
|
||||
NPC.height = 38;
|
||||
NPC.aiStyle = aiType = -1;
|
||||
NPC.aiStyle = AIType = -1;
|
||||
|
||||
NPC.damage = 45;
|
||||
NPC.lifeMax = 300;
|
||||
@@ -52,8 +52,8 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
NPC.noTileCollide = false;
|
||||
NPC.HitSound = SoundID.NPCHit42;
|
||||
NPC.DeathSound = SoundID.NPCDeath27;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<TrilobiteBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<TrilobiteBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -51,8 +51,8 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
NPC.noTileCollide = false;
|
||||
NPC.HitSound = SoundID.NPCHit33;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<WaterLeechBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<WaterLeechBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -24,12 +24,12 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
NPC.defense = 5;
|
||||
NPC.LifeMaxNERB(Main.hardMode ? 200 : 30);
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.value = Item.buyPrice(0, 0, 0, 60);
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<AquaticParasiteBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<AquaticParasiteBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
NPC.defense = 10;
|
||||
NPC.lifeMax = 60;
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.alpha = 255;
|
||||
NPC.behindTiles = true;
|
||||
@@ -31,8 +31,8 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
NPC.netAlways = true;
|
||||
NPC.dontCountMe = true;
|
||||
banner = ModContent.NPCType<AquaticSeekerHead>();
|
||||
bannerItem = ModContent.ItemType<AquaticSeekerBanner>();
|
||||
Banner = ModContent.NPCType<AquaticSeekerHead>();
|
||||
BannerItem = ModContent.ItemType<AquaticSeekerBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
NPC.defense = 5;
|
||||
NPC.lifeMax = 60;
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.value = Item.buyPrice(0, 0, 0, 80);
|
||||
NPC.behindTiles = true;
|
||||
@@ -38,8 +38,8 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
NPC.netAlways = true;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<AquaticSeekerBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<AquaticSeekerBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
NPC.defense = 20;
|
||||
NPC.lifeMax = 60;
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.alpha = 255;
|
||||
NPC.behindTiles = true;
|
||||
@@ -31,8 +31,8 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
NPC.netAlways = true;
|
||||
NPC.dontCountMe = true;
|
||||
banner = ModContent.NPCType<AquaticSeekerHead>();
|
||||
bannerItem = ModContent.ItemType<AquaticSeekerBanner>();
|
||||
Banner = ModContent.NPCType<AquaticSeekerHead>();
|
||||
BannerItem = ModContent.ItemType<AquaticSeekerBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
public override void SetDefaults()
|
||||
{
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.damage = Main.hardMode ? 50 : 25;
|
||||
NPC.width = 40;
|
||||
NPC.height = 40;
|
||||
@@ -28,8 +28,8 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath15;
|
||||
NPC.behindTiles = true;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<AquaticUrchinBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<AquaticUrchinBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -36,8 +36,8 @@ namespace CalamityMod.NPCs.Astral
|
||||
NPC.knockBackResist = 0.6f;
|
||||
NPC.value = Item.buyPrice(0, 0, 10, 0);
|
||||
NPC.DeathSound = Mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath");
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<AriesBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<AriesBanner>();
|
||||
if (CalamityWorld.downedAstrageldon)
|
||||
{
|
||||
NPC.damage = 85;
|
||||
|
||||
@@ -29,14 +29,14 @@ namespace CalamityMod.NPCs.Astral
|
||||
NPC.DR_NERD(0.15f);
|
||||
NPC.lifeMax = 50;
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.knockBackResist = 0.95f;
|
||||
NPC.value = Item.buyPrice(0, 0, 5, 0);
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.DeathSound = SoundID.NPCDeath14;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<AstralProbeBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<AstralProbeBanner>();
|
||||
if (CalamityWorld.downedAstrageldon)
|
||||
{
|
||||
NPC.damage = 30;
|
||||
|
||||
@@ -34,8 +34,8 @@ namespace CalamityMod.NPCs.Astral
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
animationType = NPCID.BlueSlime;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<AstralSlimeBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<AstralSlimeBanner>();
|
||||
if (CalamityWorld.downedAstrageldon)
|
||||
{
|
||||
NPC.damage = 65;
|
||||
|
||||
@@ -44,8 +44,8 @@ namespace CalamityMod.NPCs.Astral
|
||||
NPC.value = Item.buyPrice(0, 0, 20, 0);
|
||||
NPC.timeLeft = NPC.activeTime * 2;
|
||||
animationType = NPCID.WallCreeper;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<AstralachneaBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<AstralachneaBanner>();
|
||||
if (CalamityWorld.downedAstrageldon)
|
||||
{
|
||||
NPC.damage = 90;
|
||||
|
||||
@@ -45,8 +45,8 @@ namespace CalamityMod.NPCs.Astral
|
||||
NPC.value = Item.buyPrice(0, 0, 20, 0);
|
||||
NPC.timeLeft = NPC.activeTime * 2;
|
||||
animationType = NPCID.BlackRecluseWall;
|
||||
banner = ModContent.NPCType<AstralachneaGround>();
|
||||
bannerItem = ModContent.ItemType<AstralachneaBanner>();
|
||||
Banner = ModContent.NPCType<AstralachneaGround>();
|
||||
BannerItem = ModContent.ItemType<AstralachneaBanner>();
|
||||
if (CalamityWorld.downedAstrageldon)
|
||||
{
|
||||
NPC.damage = 90;
|
||||
|
||||
@@ -114,8 +114,8 @@ namespace CalamityMod.NPCs.Astral
|
||||
NPC.value = Item.buyPrice(0, 1, 0, 0);
|
||||
NPC.aiStyle = -1;
|
||||
NPC.DeathSound = Mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AtlasDeath");
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<AtlasBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<AtlasBanner>();
|
||||
if (CalamityWorld.downedAstrageldon)
|
||||
{
|
||||
NPC.damage = 100;
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
public override void SetDefaults()
|
||||
{
|
||||
NPC.CloneDefaults(NPCID.EnchantedNightcrawler); //ID is 484
|
||||
aiType = NPCID.EnchantedNightcrawler;
|
||||
AIType = NPCID.EnchantedNightcrawler;
|
||||
animationType = NPCID.EnchantedNightcrawler;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,8 +40,8 @@ namespace CalamityMod.NPCs.Astral
|
||||
NPC.behindTiles = true;
|
||||
NPC.DeathSound = Mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath");
|
||||
animationType = NPCID.SandShark;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<FusionFeederBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<FusionFeederBanner>();
|
||||
if (CalamityWorld.downedAstrageldon)
|
||||
{
|
||||
NPC.damage = 65;
|
||||
|
||||
@@ -38,8 +38,8 @@ namespace CalamityMod.NPCs.Astral
|
||||
NPC.DeathSound = Mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath");
|
||||
NPC.knockBackResist = 0.75f;
|
||||
NPC.value = Item.buyPrice(0, 0, 15, 0);
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<HadarianBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<HadarianBanner>();
|
||||
if (CalamityWorld.downedAstrageldon)
|
||||
{
|
||||
NPC.damage = 80;
|
||||
|
||||
@@ -40,8 +40,8 @@ namespace CalamityMod.NPCs.Astral
|
||||
NPC.knockBackResist = 0.2f;
|
||||
NPC.value = Item.buyPrice(0, 0, 15, 0);
|
||||
NPC.DeathSound = Mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath");
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<MantisBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<MantisBanner>();
|
||||
if (CalamityWorld.downedAstrageldon)
|
||||
{
|
||||
NPC.damage = 85;
|
||||
|
||||
+2
-2
@@ -48,8 +48,8 @@ namespace CalamityMod.NPCs.Astral
|
||||
NPC.knockBackResist = 0.5f;
|
||||
NPC.value = Item.buyPrice(0, 0, 20, 0);
|
||||
NPC.aiStyle = -1;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<NovaBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<NovaBanner>();
|
||||
if (CalamityWorld.downedAstrageldon)
|
||||
{
|
||||
NPC.damage = 75;
|
||||
|
||||
@@ -38,8 +38,8 @@ namespace CalamityMod.NPCs.Astral
|
||||
NPC.knockBackResist = 0.58f;
|
||||
NPC.value = Item.buyPrice(0, 0, 10, 0);
|
||||
NPC.aiStyle = -1;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<SmallSightseerBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<SmallSightseerBanner>();
|
||||
if (CalamityWorld.downedAstrageldon)
|
||||
{
|
||||
NPC.damage = 58;
|
||||
|
||||
@@ -40,8 +40,8 @@ namespace CalamityMod.NPCs.Astral
|
||||
NPC.value = Item.buyPrice(0, 0, 10, 0);
|
||||
NPC.DeathSound = Mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath");
|
||||
animationType = NPCID.GiantFlyingFox;
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<StellarCulexBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<StellarCulexBanner>();
|
||||
if (CalamityWorld.downedAstrageldon)
|
||||
{
|
||||
NPC.damage = 90;
|
||||
|
||||
@@ -20,12 +20,12 @@ namespace CalamityMod.NPCs.Astral
|
||||
NPC.CloneDefaults(NPCID.LightningBug); //ID is 358
|
||||
NPC.width = 7;
|
||||
NPC.height = 5;
|
||||
aiType = NPCID.LightningBug;
|
||||
AIType = NPCID.LightningBug;
|
||||
animationType = NPCID.LightningBug;
|
||||
NPC.catchItem = (short)ModContent.ItemType<TwinklerItem>();
|
||||
NPC.friendly = true; // prevents critter from getting slagged
|
||||
//banner = npc.type;
|
||||
//bannerItem = ModContent.ItemType<TwinklerBanner>();
|
||||
//Banner = npc.type;
|
||||
//BannerItem = ModContent.ItemType<TwinklerBanner>();
|
||||
}
|
||||
|
||||
public override bool? CanBeHitByItem(Player player, Item item) => true;
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace CalamityMod.NPCs.AstrumAureus
|
||||
NPC.DR_NERD(0.5f);
|
||||
NPC.LifeMaxNERB(NPC.downedMoonlord ? 196000 : 98000, NPC.downedMoonlord ? 235200 : 117600, 740000); // 30 seconds in boss rush
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.value = Item.buyPrice(0, 60, 0, 0);
|
||||
NPC.boss = true;
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace CalamityMod.NPCs.AstrumAureus
|
||||
{
|
||||
NPC.Calamity().canBreakPlayerDefense = true;
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.GetNPCDamage();
|
||||
NPC.width = 90;
|
||||
NPC.height = 60;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.World;
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
|
||||
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.knockBackResist = 0f;
|
||||
|
||||
if (CalamityWorld.malice || BossRushEvent.BossRushActive)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.Items.Accessories;
|
||||
@@ -45,7 +45,7 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
|
||||
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.knockBackResist = 0f;
|
||||
|
||||
if (CalamityWorld.malice || BossRushEvent.BossRushActive)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.World;
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
|
||||
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.knockBackResist = 0f;
|
||||
|
||||
if (CalamityWorld.malice || BossRushEvent.BossRushActive)
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace CalamityMod.NPCs.BrimstoneElemental
|
||||
public override void SetDefaults()
|
||||
{
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.damage = 0;
|
||||
NPC.width = 60;
|
||||
NPC.height = 60;
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace CalamityMod.NPCs.BrimstoneElemental
|
||||
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.boss = true;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.NPCs.Bumblebirb
|
||||
NPC.Calamity().canBreakPlayerDefense = true;
|
||||
NPC.npcSlots = 32f;
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.GetNPCDamage();
|
||||
NPC.width = 130;
|
||||
NPC.height = 100;
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.NPCs.Bumblebirb
|
||||
{
|
||||
NPC.npcSlots = 1f;
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.GetNPCDamage();
|
||||
NPC.width = 120;
|
||||
NPC.height = 80;
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace CalamityMod.NPCs.Calamitas
|
||||
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
|
||||
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace CalamityMod.NPCs.Calamitas
|
||||
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
|
||||
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace CalamityMod.NPCs.Calamitas
|
||||
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
|
||||
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.boss = true;
|
||||
NPC.noGravity = true;
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.NPCs.Calamitas
|
||||
public override void SetDefaults()
|
||||
{
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.width = 40;
|
||||
NPC.height = 40;
|
||||
NPC.noGravity = true;
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace CalamityMod.NPCs.CeaselessVoid
|
||||
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
|
||||
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.NPCs.CeaselessVoid
|
||||
{
|
||||
NPC.Calamity().canBreakPlayerDefense = true;
|
||||
NPC.aiStyle = -1;
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.GetNPCDamage();
|
||||
NPC.dontTakeDamage = true;
|
||||
NPC.width = 80;
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace CalamityMod.NPCs.Crabulon
|
||||
{
|
||||
NPC.lifeMax = 15000;
|
||||
}
|
||||
aiType = -1;
|
||||
AIType = -1;
|
||||
NPC.knockBackResist = 0.75f;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
|
||||
@@ -212,7 +212,7 @@ namespace CalamityMod.NPCs.Crabulon
|
||||
num350 *= num351;
|
||||
vector34.X += num349;
|
||||
vector34.Y += num350;
|
||||
Projectile.NewProjectile(vector34.X, vector34.Y, num349, num350 - 5f, type, NPC.GetProjectileDamage(type), 0f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(NPC.GetSpawnSource_ForProjectile(), vector34.X, vector34.Y, num349, num350 - 5f, type, NPC.GetProjectileDamage(type), 0f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -459,7 +459,7 @@ namespace CalamityMod.NPCs.Crabulon
|
||||
|
||||
for (int x = 0; x < totalMushrooms; x++)
|
||||
{
|
||||
Projectile.NewProjectile(NPC.Center.X + shotSpacing, NPC.Center.Y - 1000f, velocityX, 0f, type, damage, 0f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(NPC.GetSpawnSource_ForProjectile(), NPC.Center.X + shotSpacing, NPC.Center.Y - 1000f, velocityX, 0f, type, damage, 0f, Main.myPlayer, 0f, 0f);
|
||||
shotSpacing -= shotSpacingDecrement;
|
||||
}
|
||||
|
||||
@@ -475,7 +475,7 @@ namespace CalamityMod.NPCs.Crabulon
|
||||
{
|
||||
for (int x = 0; x < 20; x++)
|
||||
{
|
||||
Projectile.NewProjectile(NPC.Center.X + shotSpacing, NPC.Center.Y - 1000f, 0f, 0f, type, damage, 0f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(NPC.GetSpawnSource_ForProjectile(), NPC.Center.X + shotSpacing, NPC.Center.Y - 1000f, 0f, 0f, type, damage, 0f, Main.myPlayer, 0f, 0f);
|
||||
shotSpacing -= 100;
|
||||
}
|
||||
shotSpacing = 1000;
|
||||
|
||||
@@ -36,8 +36,8 @@ namespace CalamityMod.NPCs.Crags
|
||||
NPC.defense = 20;
|
||||
NPC.lifeMax = 3000;
|
||||
}
|
||||
banner = NPC.type;
|
||||
bannerItem = ModContent.ItemType<CalamityEyeBanner>();
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<CalamityEyeBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToCold = true;
|
||||
NPC.Calamity().VulnerableToWater = true;
|
||||
|
||||
Loaded 100 of 279 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user