Added Cryogen Resprite
No files matched your search
|
After Width: | Height: | Size: 380 B |
|
After Width: | Height: | Size: 322 B |
|
After Width: | Height: | Size: 397 B |
|
After Width: | Height: | Size: 845 B |
|
After Width: | Height: | Size: 569 B |
|
After Width: | Height: | Size: 623 B |
|
Before Width: | Height: | Size: 744 B |
|
Before Width: | Height: | Size: 801 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 726 B |
|
Before Width: | Height: | Size: 456 B |
|
Before Width: | Height: | Size: 357 B |
|
Before Width: | Height: | Size: 390 B |
|
Before Width: | Height: | Size: 480 B |
|
Before Width: | Height: | Size: 654 B |
|
Before Width: | Height: | Size: 852 B |
|
After Width: | Height: | Size: 397 B |
|
After Width: | Height: | Size: 490 B |
|
After Width: | Height: | Size: 374 B |
|
After Width: | Height: | Size: 413 B |
@@ -11,13 +11,13 @@ namespace CalamityMod.Items.Accessories
|
||||
DisplayName.SetDefault("Cryo Stone");
|
||||
Tooltip.SetDefault("One of the ancient relics\n" +
|
||||
"Increases damage reduction by 5% and all damage by 3%");
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 5));
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(4, 4));
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 20;
|
||||
item.height = 20;
|
||||
item.width = 40;
|
||||
item.height = 40;
|
||||
item.value = Item.buyPrice(0, 15, 0, 0);
|
||||
item.rare = 5;
|
||||
item.defense = 6;
|
||||
|
||||
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 457 B |
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
|
||||
"Being below 25% life grants the player 10 defense and 15% increased max movement speed and acceleration\n" +
|
||||
"Provides heat and cold protection in Death Mode\n" +
|
||||
"Revengeance drop");
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(5, 10));
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(5, 4));
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 513 B |
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"All melee attacks and projectiles inflict frostburn\n" +
|
||||
"Icicles rain down as you fly\n" +
|
||||
"Provides heat and cold protection in Death Mode");
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(8, 4));
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 3));
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
|
Before Width: | Height: | Size: 960 B After Width: | Height: | Size: 543 B |
|
Before Width: | Height: | Size: 240 B After Width: | Height: | Size: 438 B |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 345 B After Width: | Height: | Size: 512 B |
|
Before Width: | Height: | Size: 390 B After Width: | Height: | Size: 553 B |
|
Before Width: | Height: | Size: 615 B After Width: | Height: | Size: 769 B |
|
Before Width: | Height: | Size: 534 B After Width: | Height: | Size: 758 B |
|
Before Width: | Height: | Size: 498 B After Width: | Height: | Size: 740 B |
|
Before Width: | Height: | Size: 579 B After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 570 B After Width: | Height: | Size: 916 B |
|
Before Width: | Height: | Size: 810 B After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 738 B After Width: | Height: | Size: 997 B |
|
Before Width: | Height: | Size: 645 B After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 936 B After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 747 B After Width: | Height: | Size: 1.1 KiB |
@@ -31,9 +31,11 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
{
|
||||
private int time = 0;
|
||||
private int iceShard = 0;
|
||||
private bool drawAltTexture = false;
|
||||
private int currentPhase = 1;
|
||||
private int teleportLocationX = 0;
|
||||
|
||||
public override string Texture => "CalamityMod/NPCs/Cryogen/Cryogen_Phase1";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Cryogen");
|
||||
@@ -43,8 +45,8 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
{
|
||||
npc.npcSlots = 24f;
|
||||
npc.damage = 50;
|
||||
npc.width = 80;
|
||||
npc.height = 80;
|
||||
npc.width = 86;
|
||||
npc.height = 88;
|
||||
npc.defense = 12;
|
||||
npc.Calamity().RevPlusDR(0.1f);
|
||||
npc.LifeMaxNERB(17900, 26300, 3000000);
|
||||
@@ -96,7 +98,6 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
|
||||
public override void SendExtraAI(BinaryWriter writer)
|
||||
{
|
||||
writer.Write(drawAltTexture);
|
||||
writer.Write(time);
|
||||
writer.Write(iceShard);
|
||||
writer.Write(teleportLocationX);
|
||||
@@ -105,7 +106,6 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
|
||||
public override void ReceiveExtraAI(BinaryReader reader)
|
||||
{
|
||||
drawAltTexture = reader.ReadBoolean();
|
||||
time = reader.ReadInt32();
|
||||
iceShard = reader.ReadInt32();
|
||||
teleportLocationX = reader.ReadInt32();
|
||||
@@ -128,6 +128,11 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
bool death = CalamityWorld.death || CalamityWorld.bossRushActive;
|
||||
double multAdd = revenge ? 0.1 : 0D;
|
||||
|
||||
if ((int)npc.ai[0] + 1 > currentPhase && currentPhase < 6)
|
||||
{
|
||||
handlePhaseTransition((int)npc.ai[0] + 1);
|
||||
}
|
||||
|
||||
if (npc.ai[2] == 0f && npc.localAI[1] == 0f && Main.netMode != NetmodeID.MultiplayerClient && (npc.ai[0] < 4f || CalamityWorld.bossRushActive)) //spawn shield for phase 0 1 2 3, not 4 5 6
|
||||
{
|
||||
int num6 = NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, ModContent.NPCType<CryogenIce>(), npc.whoAmI, 0f, 0f, 0f, 0f, 255);
|
||||
@@ -695,9 +700,6 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
double HPMult = death ? 0.4 : 0.15 + multAdd;
|
||||
if ((double)npc.life < (double)npc.lifeMax * HPMult)
|
||||
{
|
||||
Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 15);
|
||||
drawAltTexture = true;
|
||||
|
||||
for (int num621 = 0; num621 < 40; num621++)
|
||||
{
|
||||
int num622 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 67, 0f, 0f, 100, default, 2f);
|
||||
@@ -730,17 +732,6 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
teleportLocationX = 0;
|
||||
iceShard = 0;
|
||||
npc.netUpdate = true;
|
||||
|
||||
string key = "Mods.CalamityMod.CryogenBossText";
|
||||
Color messageColor = Color.Cyan;
|
||||
if (Main.netMode == NetmodeID.SinglePlayer)
|
||||
{
|
||||
Main.NewText(Language.GetTextValue(key), messageColor);
|
||||
}
|
||||
else if (Main.netMode == NetmodeID.Server)
|
||||
{
|
||||
NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (npc.ai[0] == 5f)
|
||||
@@ -994,11 +985,24 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
}
|
||||
}
|
||||
|
||||
private void handlePhaseTransition (int newPhase)
|
||||
{
|
||||
int chipGoreAmount = newPhase >= 5 ? 3 : newPhase >= 3 ? 2 : 1;
|
||||
for (int i = 1; i < chipGoreAmount; i++)
|
||||
{
|
||||
Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CryoChipGore" + i), 1f);
|
||||
}
|
||||
currentPhase = newPhase;
|
||||
Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 15);
|
||||
}
|
||||
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) //for alt textures
|
||||
{
|
||||
if (drawAltTexture)
|
||||
if (currentPhase > 1)
|
||||
{
|
||||
Texture2D texture = ModContent.GetTexture("CalamityMod/NPCs/Cryogen/Cryogen2");
|
||||
string phase = "CalamityMod/NPCs/Cryogen/Cryogen_Phase" + currentPhase;
|
||||
Texture2D texture = ModContent.GetTexture(phase);
|
||||
CalamityMod.DrawTexture(spriteBatch, texture, 0, npc, drawColor);
|
||||
return false;
|
||||
}
|
||||
@@ -1038,9 +1042,11 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
Main.dust[num624].velocity *= 2f;
|
||||
}
|
||||
float randomSpread = (float)(Main.rand.Next(-200, 200) / 100);
|
||||
Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CryoGore8"), 1f);
|
||||
Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CryoGore9"), 1f);
|
||||
Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CryoGore10"), 1f);
|
||||
for (int i = 1; i < 4; i++)
|
||||
{
|
||||
Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CryoDeathGore" + i), 1f);
|
||||
Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CryoChipGore" + i), 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
@@ -22,8 +22,8 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
npc.canGhostHeal = false;
|
||||
npc.noTileCollide = true;
|
||||
npc.damage = 50;
|
||||
npc.width = 240;
|
||||
npc.height = 240;
|
||||
npc.width = 190;
|
||||
npc.height = 190;
|
||||
npc.Calamity().RevPlusDR(0.4f);
|
||||
npc.lifeMax = 1400;
|
||||
if (CalamityWorld.bossRushActive)
|
||||
@@ -118,14 +118,15 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
Main.projectile[ice].timeLeft = 300;
|
||||
Main.projectile[ice2].timeLeft = 300;
|
||||
}
|
||||
float randomSpread = (float)(Main.rand.Next(-200, 200) / 100);
|
||||
float randomSpread;
|
||||
for (int spike = 0; spike < 4; spike++)
|
||||
{
|
||||
randomSpread = (float)(Main.rand.Next(-200, 200) / 100);
|
||||
Gore.NewGore(npc.Center, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CryoGore4"), 1f);
|
||||
Gore.NewGore(npc.Center, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CryoGore5"), 1f);
|
||||
Gore.NewGore(npc.Center, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CryoGore6"), 1f);
|
||||
Gore.NewGore(npc.Center, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CryoGore7"), 1f);
|
||||
for (int x = 0; x < 4; x++)
|
||||
{
|
||||
Gore.NewGore(npc.Center, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CryoShieldGore" + x), 1f);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 771 B |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 484 B After Width: | Height: | Size: 757 B |
|
Before Width: | Height: | Size: 249 B After Width: | Height: | Size: 304 B |
|
Before Width: | Height: | Size: 249 B After Width: | Height: | Size: 304 B |
|
Before Width: | Height: | Size: 936 B After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 484 B After Width: | Height: | Size: 757 B |
|
Before Width: | Height: | Size: 484 B After Width: | Height: | Size: 757 B |
|
Before Width: | Height: | Size: 506 B After Width: | Height: | Size: 304 B |
|
Before Width: | Height: | Size: 936 B After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 747 B After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |