supreme permafrost and misc things
No files matched your search
@@ -213,7 +213,7 @@ namespace CalamityMod.ILEditing
|
||||
On_Player.ItemCheck_CheckCanUse += RemoveUseLocks;
|
||||
On_Player.ItemCheck_UseEventItems += ApplyCelestialSigilChanges;
|
||||
IL_Main.DrawInfoAccs += RemoveDamageConditionFromRadar;
|
||||
On_ShopHelper.ApplyNpcRelationshipEffect += AllowMultipleLikedNPCs;
|
||||
//On_ShopHelper.ApplyNpcRelationshipEffect += AllowMultipleLikedNPCs;
|
||||
|
||||
On_Player.UpdateControlHolds += DelayGravity;
|
||||
On_PlayerInput.SetZoom_MouseInWorld += GravityMouse;
|
||||
|
||||
@@ -1765,7 +1765,7 @@ namespace CalamityMod.ILEditing
|
||||
public static void ShimmerEffectEdits(Terraria.On_Item.orig_GetShimmered orig, Item self)
|
||||
{
|
||||
// Make Plagued Containment Bricks turn into Plagued Nanodroids if shimmered before defeating Golem
|
||||
else if (self.type == ModContent.ItemType<PlaguedContainmentBrick>())
|
||||
if (self.type == ModContent.ItemType<PlaguedContainmentBrick>())
|
||||
{
|
||||
if (NPC.downedGolemBoss)
|
||||
orig(self);
|
||||
|
||||
@@ -1153,14 +1153,17 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Multiple NPC Happiness support for Cirrus
|
||||
private static void AllowMultipleLikedNPCs(On_ShopHelper.orig_ApplyNpcRelationshipEffect orig, ShopHelper self, int npcType, AffectionLevel affectionLevel)
|
||||
#region Multiple NPC Happiness support
|
||||
// Currently unused as the one NPC who used it was removed. However it is very likely it'll be used again in the future, so this code is being kept.
|
||||
/*private static void AllowMultipleLikedNPCs(On_ShopHelper.orig_ApplyNpcRelationshipEffect orig, ShopHelper self, int npcType, AffectionLevel affectionLevel)
|
||||
{
|
||||
FieldInfo npcTalkField = typeof(ShopHelper).GetField("_currentNPCBeingTalkedTo", BindingFlags.Instance | BindingFlags.NonPublic);
|
||||
NPC talkedNPC = (NPC)npcTalkField.GetValue(self);
|
||||
|
||||
// Allow Cirrus to have things to say about multiple NPCs with the same happiness level
|
||||
if (talkedNPC.type == ModContent.NPCType<Cirrus>())
|
||||
int npcTypee = 0;
|
||||
|
||||
// Allow the given NPC to have things to say about multiple NPCs with the same happiness level
|
||||
if (talkedNPC.type == npcTypee)
|
||||
{
|
||||
MethodInfo addReportField = typeof(ShopHelper).GetMethod("AddHappinessReportText", BindingFlags.Instance | BindingFlags.NonPublic);
|
||||
|
||||
@@ -1182,7 +1185,7 @@ namespace CalamityMod.ILEditing
|
||||
{
|
||||
orig(self, npcType, affectionLevel);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
#endregion
|
||||
|
||||
#region Allow disabling gravity swap visual && allow gravity keybind
|
||||
|
||||
|
Before Width: | Height: | Size: 554 B |
@@ -5,12 +5,12 @@ using CalamityMod.Rarities;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items
|
||||
{
|
||||
public class AlicornonaStick : ModItem, ILocalizedModType
|
||||
[LegacyName("AlicornonaStick")]
|
||||
public class ColdheartIcicle : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Misc";
|
||||
public override void SetDefaults()
|
||||
@@ -22,6 +22,17 @@ namespace CalamityMod.Items
|
||||
Item.rare = ModContent.RarityType<CalamityRed>();
|
||||
}
|
||||
|
||||
public override void HoldStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
player.itemRotation = player.direction == -1 ? -MathHelper.PiOver4 : MathHelper.PiOver4;
|
||||
player.itemLocation = player.GetBackHandPosition(Player.CompositeArmStretchAmount.Full, player.direction * MathHelper.PiOver4) + Vector2.UnitX * player.direction * 14;
|
||||
}
|
||||
|
||||
public override void HoldItemFrame(Player player)
|
||||
{
|
||||
player.SetCompositeArmBack(true, Player.CompositeArmStretchAmount.Full, -player.direction * MathHelper.PiOver4);
|
||||
}
|
||||
|
||||
public override void HoldItem(Player player)
|
||||
{
|
||||
int offset = player.direction == 1 ? 5 : -Item.width - 5;
|
||||
|
After Width: | Height: | Size: 282 B |
@@ -391,11 +391,6 @@ LegendaryShortTooltip:
|
||||
[c/BABABA:Press "Left Shift" to listen closer]
|
||||
'''
|
||||
|
||||
AlicornonaStick: {
|
||||
DisplayName: Alicorn on a Stick
|
||||
Tooltip: "'Congratulations, you're winner! Here's my head on a stick.'"
|
||||
}
|
||||
|
||||
BallAndChain: {
|
||||
DisplayName: Ball and Chain
|
||||
Tooltip:
|
||||
@@ -415,6 +410,11 @@ BrimstoneLocus: {
|
||||
'''
|
||||
}
|
||||
|
||||
ColdheartIcicle: {
|
||||
DisplayName: Coldheart Icicle
|
||||
Tooltip: "'N(ice) work'"
|
||||
}
|
||||
|
||||
MomentumCapacitor: {
|
||||
DisplayName: Momentum Capacitor
|
||||
GFBName: Burden Breaker
|
||||
|
||||
@@ -316,7 +316,7 @@ BrimstoneHeart.DisplayName: Brimstone Heart
|
||||
SepulcherHead.DisplayName: Sepulcher
|
||||
SoulSeekerSupreme.DisplayName: Soul Seeker
|
||||
SupremeCalamitas.DisplayName: Supreme Witch, Calamitas
|
||||
SupremeCirrus: Supreme Alchemist, Cirrus
|
||||
SupremePermafrost: Supreme Ultramage, Permafrost
|
||||
SupremeCataclysm.DisplayName: Cataclysm
|
||||
SupremeCatastrophe.DisplayName: Catastrophe
|
||||
Yharon.DisplayName: Yharon, Dragon of Rebirth
|
||||
@@ -403,7 +403,6 @@ Bandit: {
|
||||
Night1: Hm, the stars are too bright tonight. Makes sneaking around a little more difficult.
|
||||
Night2: You think those stars that fall occasionally would make good throwing weapons?
|
||||
BrimstoneWitch: Hey, hey, has {0} seriously moved in here with us? Why???
|
||||
DrunkPrincess: I learned never to steal {0}'s drinks. She doesn't appreciate me right now, so I'll go back to hiding.
|
||||
Merchant: Don't tell {0}, but I took some of his stuff and replaced it with Angel Statues.
|
||||
NurseArmsDealer: Don't tell {0} that I was responsible for {1}'s injuries.
|
||||
NamedLaura: The nice thing about maps is I can track anything that has fallen.
|
||||
@@ -462,7 +461,6 @@ BrimstoneWitch: {
|
||||
BloodMoon2: I can't work with nights like these. The stars seem to have shrunk away in fear.
|
||||
Night1: These undead are horrific, I can't stand to look at them. How could anyone be satisfied with such amateur work?
|
||||
Night2: I don't think it's a stretch to say that astrology is utter nonsense... but it was a hobby of mine once.
|
||||
DrunkPrincess: I wonder if {0} ever feels cold given how revealing her dress is. Perhaps she should cover up a bit more.
|
||||
SeaKing: I cannot understand the Sea King. He does not seem to want me dead. That amount of compassion I just can't understand.
|
||||
Party: If another person asks me if I can dance or not, I will light their hat on fire.
|
||||
}
|
||||
@@ -504,7 +502,6 @@ SeaKing: {
|
||||
Angler1: Meet me at {0}'s house at night. We will throw him to the Trashers.
|
||||
Angler2: Not sure how {0} has not been roasted and digested by now, hanging around the sulphuric seas for so long. Perhaps it got to his head.
|
||||
BrimstoneWitch: I must admit, the Witch's presence is unsettling to me. But so many years have passed, and she too has suffered much.
|
||||
DrunkPrincess: Rumor has it {0} drinks to forget her troubled past.
|
||||
PartyGirl: "{0} asked if my nose could be used as a vuvuzela. What is a vuvuzela?"
|
||||
BloodMoon1: Since ancient times people have said that deities cause celestial events. Which one then, is the cause for these?
|
||||
BloodMoon2: I've never been keen on these nights. Such violence.
|
||||
|
||||
@@ -167,3 +167,8 @@ WaterSpear.DisplayName: Water Spear
|
||||
YharonBulletHellVortex.DisplayName: Bullet Hell Vortex
|
||||
YharonFireball.DisplayName: Dragon Fireball
|
||||
YharonFireball2.DisplayName: Dragon Fireball
|
||||
PermafrostAbsoluteZeroProjectile.DisplayName: Permafrost Absolute Zero Projectile
|
||||
PermafrostBlast.DisplayName: Permafrost Blast
|
||||
PermafrostBlaster.DisplayName: Permafrost Blaster
|
||||
PermafrostColdheartIcicle.DisplayName: Permafrost Coldheart Icicle
|
||||
PermafrostMeat.DisplayName: Permafrost Meat
|
||||
@@ -105,20 +105,20 @@ SCalDesparationText1Rematch: A terrific display, I concede this match to you.
|
||||
SCalDesparationText2Rematch: No doubt you will face enemies stronger than I.
|
||||
SCalDesparationText3Rematch: I trust you will not make the same mistakes he did.
|
||||
SCalDesparationText4Rematch: I can't imagine what your future holds now.
|
||||
// Cirrus (GFB)
|
||||
CirrusSummonText: Are you prepared for a task most Sisyphean?
|
||||
CirrusBirbSwarmText: Those hearts are a bit too edgy. How about a swarm of birbs instead?
|
||||
CirrusBH2Text: Feelin' thirsty? I can fix that!
|
||||
CirrusBH3Text: Check out this cool toy I found!
|
||||
CirrusDoGText: I told you the talking worms were real! But you didn't believe me!
|
||||
CirrusPhase2Text: Time for a transformation!
|
||||
CirrusBH4Text: It's HAGE time!
|
||||
CirrusHallowBossSpamText: I have more friends than you could possibly imagine!
|
||||
CirrusBH5Text: Hah! You're good, but I'm better!
|
||||
CirrusSecondBirbSwarmText: Time for another swarm!
|
||||
CirrusNonchalantText: I'm getting tired...
|
||||
CirrusBruhText: Just kidding! Time for my special attack!
|
||||
CirrusGiveUpText: Meh, whatever, I'm a bit tired of this.
|
||||
// Permafrost (GFB)
|
||||
PermafrostSummonText: Are you prepared for a task most Sisyphean?
|
||||
PermafrostBirbSwarmText: Those hearts were a bit too brutal for my taste. How about some lovely birds instead?
|
||||
PermafrostBH2Text: Getting tired from the battle, adventurer? Hungry? How does some Delicious Meat sound?
|
||||
PermafrostBH3Text: Suprised at how I am holding my own again you? I did train Calamitas, after all!
|
||||
PermafrostDoGText: The serpent!? How!? What is HE doing here!? Is he here to torment me further!? Kill it, adventurer!
|
||||
PermafrostPhase2Text: Ha! I suppose I can no longer be "chill" about this duel! Get it?
|
||||
PermafrostBH4Text: Need a break? Can you not even keep up with an old man?
|
||||
PermafrostHallowBossSpamText: You truly have grown strong! Thankfully, I and Calamitas reconstructed this to assist me.
|
||||
PermafrostBH5Text: Why, it has been quite long since I have had an excuse to use these magics!
|
||||
PermafrostSecondBirbSwarmText: I must say, those birds earlier were rather cute! Do some more not sound nice?
|
||||
PermafrostNonchalantText: I must say, I am not the mage I used to be. This is starting to tire my old body...
|
||||
PermafrostBruhText: Ha! Just kidding! Watch what happens when I cast a spell I know!
|
||||
PermafrostGiveUpText: Gah, I think I pulled a muscle! Ah, well. I seems that I must concede. Well fought!
|
||||
// April Fools
|
||||
AprilFools: The LORDE is approaching...
|
||||
AprilFoolsGFB: La Ruga is approaching...
|
||||
@@ -3802,17 +3802,9 @@ namespace CalamityMod.NPCs
|
||||
effectiveDR = 0f;
|
||||
|
||||
// Calculate extra DR based on kill time, similar to the Hush boss from The Binding of Isaac
|
||||
// Cirrus being active makes the extra DR cease to function
|
||||
bool cirrusBossActive = false;
|
||||
if (SCal != -1)
|
||||
{
|
||||
if (Main.npc[SCal].active)
|
||||
cirrusBossActive = Main.npc[SCal].ModNPC<SupremeCalamitas.SupremeCalamitas>().cirrus;
|
||||
}
|
||||
|
||||
bool enragedProvi = npc.type == NPCType<Providence.Providence>() && !ProvUtils.StandardAI();
|
||||
bool dayEmpress = npc.type == NPCID.HallowBoss && NPC.ShouldEmpressBeEnraged();
|
||||
if (KillTime > 0 && AITimer < KillTime && !BossRushEvent.BossRushActive && !cirrusBossActive && (enragedProvi || dayEmpress))
|
||||
if (KillTime > 0 && AITimer < KillTime && !BossRushEvent.BossRushActive && (enragedProvi || dayEmpress))
|
||||
{
|
||||
// Set the DR scaling factor
|
||||
float DRScalar = 10f;
|
||||
|
||||
@@ -1815,7 +1815,7 @@ namespace CalamityMod.NPCs
|
||||
rev.Add(ItemID.FairyQueenMasterTrophy);
|
||||
rev.Add(ItemID.FairyQueenPetItem, 4);
|
||||
|
||||
// GFB Cirrus' Vodka and Terraformer drop
|
||||
// GFB Purple Haze and Terraformer drop
|
||||
GFB.Add(DropHelper.PerPlayer(ModContent.ItemType<PurpleHaze>(), 1, 1, 9999), true);
|
||||
GFB.Add(DropHelper.PerPlayer(ItemID.Clentaminator2), hideLootReport: true);
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 972 B |
|
Before Width: | Height: | Size: 968 B |
|
Before Width: | Height: | Size: 8.9 KiB |
|
Before Width: | Height: | Size: 5.6 KiB |
|
After Width: | Height: | Size: 5.5 KiB |
@@ -84,7 +84,13 @@ namespace CalamityMod.NPCs.TownNPCs
|
||||
}
|
||||
}
|
||||
|
||||
public override bool CanTownNPCSpawn(int numTownNPCs) => DownedBossSystem.downedCryogen;
|
||||
public override bool CanTownNPCSpawn(int numTownNPCs)
|
||||
{
|
||||
if (NPC.AnyNPCs(ModContent.NPCType<SupremeCalamitas.SupremeCalamitas>()) && Main.zenithWorld)
|
||||
return false;
|
||||
|
||||
return DownedBossSystem.downedCryogen;
|
||||
}
|
||||
|
||||
public override List<string> SetNPCNameList() => new List<string>() { this.GetLocalizedValue("Name.Permafrost") };
|
||||
|
||||
|
||||
@@ -153,8 +153,12 @@ namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].active)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].ModNPC<SupremeCalamitas>().cirrus)
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].ModNPC<SupremeCalamitas>().permafrost)
|
||||
{
|
||||
lightColor.G = (byte)(255 * Projectile.Opacity);
|
||||
lightColor.B = (byte)(255 * Projectile.Opacity);
|
||||
lightColor.R = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -103,8 +103,12 @@ namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].active)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].ModNPC<SupremeCalamitas>().cirrus)
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].ModNPC<SupremeCalamitas>().permafrost)
|
||||
{
|
||||
lightColor.G = (byte)(255 * Projectile.Opacity);
|
||||
lightColor.B = (byte)(255 * Projectile.Opacity);
|
||||
lightColor.R = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -84,8 +84,12 @@ namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].active)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].ModNPC<SupremeCalamitas>().cirrus)
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].ModNPC<SupremeCalamitas>().permafrost)
|
||||
{
|
||||
lightColor.G = (byte)(255 * Projectile.Opacity);
|
||||
lightColor.B = (byte)(255 * Projectile.Opacity);
|
||||
lightColor.R = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -284,7 +284,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
if (Colliding(Projectile.Hitbox, player.Hitbox) == false)
|
||||
return false;
|
||||
|
||||
// Applies Vulnerability Hex and/or the effects of Supreme Cirrus' HAGE faces.
|
||||
// Applies Vulnerability Hex and/or the effects of Supreme Permafrost's HAGE faces.
|
||||
OnHitPlayer_Internal(player);
|
||||
|
||||
// Check the player's speed. If they are moving fast enough, damage them more severely; this prevents trying to rush straight through the vortex.
|
||||
@@ -341,12 +341,12 @@ namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<VulnerabilityHex>(), 360, true);
|
||||
|
||||
// Remove all positive buffs from the player if they're hit by HAGE while Cirrus is alive.
|
||||
// Remove all positive buffs from the player if they're hit by HAGE while Permafrost is alive.
|
||||
if (CalamityGlobalNPC.SCal != -1)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].active)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].ModNPC<SupremeCalamitas>().cirrus)
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].ModNPC<SupremeCalamitas>().permafrost)
|
||||
{
|
||||
for (int l = 0; l < Player.MaxBuffs; l++)
|
||||
{
|
||||
@@ -407,8 +407,8 @@ namespace CalamityMod.Projectiles.Boss
|
||||
Main.spriteBatch.End();
|
||||
Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, null, Main.GameViewMatrix.TransformationMatrix);
|
||||
|
||||
bool isCirrus = CalamityGlobalNPC.SCal != -1 && Main.npc[CalamityGlobalNPC.SCal].active && Main.npc[CalamityGlobalNPC.SCal].ModNPC<SupremeCalamitas>().cirrus;
|
||||
if (isCirrus)
|
||||
bool isPermafrost = CalamityGlobalNPC.SCal != -1 && Main.npc[CalamityGlobalNPC.SCal].active && Main.npc[CalamityGlobalNPC.SCal].ModNPC<SupremeCalamitas>().permafrost;
|
||||
if (isPermafrost)
|
||||
{
|
||||
Texture2D hageTex = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Boss/BrimstoneMonsterII").Value;
|
||||
lightColor.B = (byte)(255 * Projectile.Opacity);
|
||||
|
||||
@@ -87,8 +87,12 @@ namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].active)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].ModNPC<SupremeCalamitas>().cirrus)
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].ModNPC<SupremeCalamitas>().permafrost)
|
||||
{
|
||||
lightColor.G = (byte)(255 * Projectile.Opacity);
|
||||
lightColor.B = (byte)(255 * Projectile.Opacity);
|
||||
lightColor.R = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -9,13 +9,13 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
public class CirrusPhotonRipperProjectile : ModProjectile, ILocalizedModType
|
||||
public class PermafrostAbsoluteZeroProjectile : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Boss";
|
||||
|
||||
public override string Texture => "CalamityMod/Projectiles/Melee/PhotonRipperProjectile";
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Melee/AbsoluteZero";
|
||||
|
||||
public NPC Cirrus => Main.npc.IndexInRange((int)Projectile.ai[2]) ? Main.npc[(int)Projectile.ai[2]] : null;
|
||||
public NPC Permafrost => Main.npc.IndexInRange((int)Projectile.ai[2]) ? Main.npc[(int)Projectile.ai[2]] : null;
|
||||
public const float ZeroChargeDamageRatio = 0.36f;
|
||||
public const float ToothDamageRatio = 0.1666667f;
|
||||
public const int ToothShootRate = 5; // One chainsaw tooth is emitted every this many frames.
|
||||
@@ -44,36 +44,33 @@ namespace CalamityMod.Projectiles.Boss
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
Texture2D texture = Terraria.GameContent.TextureAssets.Projectile[Type].Value;
|
||||
Texture2D glowmaskTexture = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Melee/PhotonRipperGlowmask").Value;
|
||||
Rectangle glowmaskRectangle = glowmaskTexture.Frame(1, 6, 0, Projectile.frame);
|
||||
Vector2 origin = texture.Size() * 0.5f;
|
||||
Vector2 drawPosition = Projectile.Center - Main.screenPosition;
|
||||
SpriteEffects direction = Projectile.spriteDirection == 1 ? SpriteEffects.None : SpriteEffects.FlipHorizontally;
|
||||
|
||||
Main.EntitySpriteDraw(texture, drawPosition, null, Projectile.GetAlpha(lightColor), Projectile.rotation, origin, Projectile.scale, direction, 0);
|
||||
Main.EntitySpriteDraw(glowmaskTexture, drawPosition, glowmaskRectangle, Color.HotPink, Projectile.rotation, origin, Projectile.scale, direction, 0);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
// Die if Cirrus disappears.
|
||||
if (Cirrus is null || !Cirrus.active)
|
||||
// Die if Permafrost disappears.
|
||||
if (Permafrost is null || !Permafrost.active)
|
||||
{
|
||||
Projectile.Kill();
|
||||
return;
|
||||
}
|
||||
|
||||
// Die if Cirrus shouldn't be using it.
|
||||
int cirrusBulletHellCounter = Cirrus.ModNPC<SupremeCalamitas>().bulletHellCounter2;
|
||||
if (!(cirrusBulletHellCounter > SupremeCalamitas.SecondBulletHellEndValue && cirrusBulletHellCounter < SupremeCalamitas.ThirdBulletHellEndValue) &&
|
||||
!(cirrusBulletHellCounter > SupremeCalamitas.FourthBulletHellEndValue && cirrusBulletHellCounter < SupremeCalamitas.FifthBulletHellEndValue))
|
||||
// Die if Permafrost shouldn't be using it.
|
||||
int permafrostBulletHellCounter = Permafrost.ModNPC<SupremeCalamitas>().bulletHellCounter2;
|
||||
if (!(permafrostBulletHellCounter > SupremeCalamitas.SecondBulletHellEndValue && permafrostBulletHellCounter < SupremeCalamitas.ThirdBulletHellEndValue) &&
|
||||
!(permafrostBulletHellCounter > SupremeCalamitas.FourthBulletHellEndValue && permafrostBulletHellCounter < SupremeCalamitas.FifthBulletHellEndValue))
|
||||
{
|
||||
Projectile.Kill();
|
||||
return;
|
||||
}
|
||||
|
||||
Projectile.damage = SupremeCalamitas.CirrusPhotonRipperDamage;
|
||||
Projectile.damage = SupremeCalamitas.PermafrostAbsoluteZeroDamage;
|
||||
DetermineDamage();
|
||||
|
||||
PlayChainsawSounds();
|
||||
@@ -81,14 +78,14 @@ namespace CalamityMod.Projectiles.Boss
|
||||
// Determines the owner's position whilst incorporating their fullRotation field.
|
||||
// It uses vector transformation on a Z rotation matrix based on said rotation under the hood.
|
||||
// This is essentially just the pure mathematical definition of the RotatedBy method.
|
||||
Vector2 cirrusRotatedPosition = Cirrus.Center;
|
||||
float rotation = Cirrus.rotation;
|
||||
Vector2 vector = Cirrus.Bottom + new Vector2(0f, Cirrus.gfxOffY);
|
||||
Vector2 permafrostRotatedPosition = Permafrost.Center;
|
||||
float rotation = Permafrost.rotation;
|
||||
Vector2 vector = Permafrost.Bottom + new Vector2(0f, Permafrost.gfxOffY);
|
||||
Vector2 vector2 = new Vector2(0f, -4f) + new Vector2(0f, 4f).RotatedBy(rotation);
|
||||
cirrusRotatedPosition.Y += Cirrus.gfxOffY;
|
||||
cirrusRotatedPosition = vector + (cirrusRotatedPosition - vector).RotatedBy(rotation) + vector2;
|
||||
HandleMovement(cirrusRotatedPosition);
|
||||
DetermineVisuals(cirrusRotatedPosition);
|
||||
permafrostRotatedPosition.Y += Permafrost.gfxOffY;
|
||||
permafrostRotatedPosition = vector + (permafrostRotatedPosition - vector).RotatedBy(rotation) + vector2;
|
||||
HandleMovement(permafrostRotatedPosition);
|
||||
DetermineVisuals(permafrostRotatedPosition);
|
||||
EmitPrettyDust();
|
||||
|
||||
if (Time % ToothShootRate == ToothShootRate - 1f)
|
||||
@@ -129,7 +126,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
}
|
||||
}
|
||||
|
||||
public void DetermineVisuals(Vector2 cirrusRotatedPosition)
|
||||
public void DetermineVisuals(Vector2 permafrostRotatedPosition)
|
||||
{
|
||||
float directionAngle = Projectile.velocity.ToRotation();
|
||||
Projectile.rotation = directionAngle;
|
||||
@@ -146,8 +143,8 @@ namespace CalamityMod.Projectiles.Boss
|
||||
if (Projectile.spriteDirection != oldDirection)
|
||||
Projectile.rotation -= MathHelper.Pi;
|
||||
|
||||
// Positioning close to the Cirrus' arm.
|
||||
Projectile.position = cirrusRotatedPosition - Projectile.Size * 0.5f + directionAngle.ToRotationVector2() * 30f;
|
||||
// Positioning close to the Permafrost's arm.
|
||||
Projectile.position = permafrostRotatedPosition - Projectile.Size * 0.5f + directionAngle.ToRotationVector2() * 30f;
|
||||
|
||||
// Update the position a tiny bit every frame at random to make it look like the saw is vibrating.
|
||||
// It is reset on the next frame.
|
||||
@@ -164,9 +161,9 @@ namespace CalamityMod.Projectiles.Boss
|
||||
}
|
||||
}
|
||||
|
||||
public void HandleMovement(Vector2 cirrusRotatedPosition)
|
||||
public void HandleMovement(Vector2 permafrostRotatedPosition)
|
||||
{
|
||||
Vector2 idealAimDirection = (Main.player[Cirrus.target].Center - cirrusRotatedPosition).SafeNormalize(Vector2.UnitX * Cirrus.direction);
|
||||
Vector2 idealAimDirection = (Main.player[Permafrost.target].Center - permafrostRotatedPosition).SafeNormalize(Vector2.UnitX * Permafrost.direction);
|
||||
|
||||
float angularAimVelocity = 0.03f;
|
||||
float directionAngularDisparity = Projectile.velocity.AngleBetween(idealAimDirection) / MathHelper.Pi;
|
||||
@@ -179,7 +176,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
else
|
||||
Projectile.velocity = idealAimDirection;
|
||||
|
||||
Projectile.velocity = Projectile.velocity.SafeNormalize(Vector2.UnitX * Cirrus.direction);
|
||||
Projectile.velocity = Projectile.velocity.SafeNormalize(Vector2.UnitX * Permafrost.direction);
|
||||
}
|
||||
|
||||
public void EmitPrettyDust()
|
||||
@@ -213,7 +210,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
return;
|
||||
|
||||
float shootReach = MathHelper.SmoothStep(Projectile.width * 1.8f, Projectile.width * 5.3f + 16f, ChargeUpPower);
|
||||
float distanceFromTarget = Cirrus.Distance(Main.player[Cirrus.target].Center);
|
||||
float distanceFromTarget = Permafrost.Distance(Main.player[Permafrost.target].Center);
|
||||
|
||||
// If the distance to the mouse is less than the base reach, reach only to mouse.
|
||||
// This way the player can more directly control the crystals if they want.
|
||||
@@ -227,7 +224,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
shootReach = 72f;
|
||||
}
|
||||
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Cirrus.Center, Projectile.velocity, ModContent.ProjectileType<CirrusPhotonRipperPrismTooth>(), (int)ToothDamage, 0f, Projectile.owner, shootReach, Projectile.whoAmI, Projectile.ai[2]);
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Permafrost.Center, Projectile.velocity, ModContent.ProjectileType<PermafrostColdheartIcicle>(), (int)ToothDamage, 0f, Projectile.owner, shootReach, Projectile.whoAmI, Projectile.ai[2]);
|
||||
}
|
||||
|
||||
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox)
|
||||
@@ -12,7 +12,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
public class CirrusBlast : BaseLaserbeamProjectile, ILocalizedModType
|
||||
public class PermafrostBlast : BaseLaserbeamProjectile, ILocalizedModType
|
||||
{
|
||||
// Modified clone of Seraphim's Laser
|
||||
public new string LocalizationCategory => "Projectiles.Boss";
|
||||
@@ -7,11 +7,11 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
public class CirrusBlaster : ModProjectile, ILocalizedModType
|
||||
public class PermafrostBlaster : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Boss";
|
||||
|
||||
public override string Texture => "CalamityMod/Items/Potions/Alcohol/OddMushroom";
|
||||
public override string Texture => "CalamityMod/Items/Accessories/PermafrostsConcoction";
|
||||
public static readonly SoundStyle SANSCharge = new("CalamityMod/Sounds/Custom/Ravager/GasterBlasterCharge");
|
||||
public static readonly SoundStyle SANSFire = new("CalamityMod/Sounds/Custom/Ravager/GasterBlasterFire");
|
||||
public Vector2 storedVelocity;
|
||||
@@ -45,7 +45,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
Projectile.ai[0] = 90f;
|
||||
if (Projectile.owner == Main.myPlayer)
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, storedVelocity, ModContent.ProjectileType<CirrusBlast>(), Projectile.damage, 0f, Projectile.owner, Projectile.ai[1], Projectile.whoAmI);
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, storedVelocity, ModContent.ProjectileType<PermafrostBlast>(), Projectile.damage, 0f, Projectile.owner, Projectile.ai[1], Projectile.whoAmI);
|
||||
|
||||
SoundEngine.PlaySound(SANSFire, Projectile.Center); // Funny Gaster Blaster sounds #2
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
using System;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Buffs.StatDebuffs;
|
||||
using CalamityMod.Graphics.Primitives;
|
||||
using CalamityMod.NPCs.SupremeCalamitas;
|
||||
using Microsoft.Xna.Framework;
|
||||
@@ -12,15 +12,15 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
public class CirrusPhotonRipperPrismTooth : ModProjectile, ILocalizedModType
|
||||
public class PermafrostColdheartIcicle : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Boss";
|
||||
|
||||
public override string Texture => "CalamityMod/Projectiles/Melee/PrismTooth";
|
||||
public override string Texture => "CalamityMod/Items/ColdheartIcicle";
|
||||
|
||||
public const int Lifetime = 80;
|
||||
|
||||
public NPC Cirrus => Main.npc.IndexInRange((int)Projectile.ai[2]) ? Main.npc[(int)Projectile.ai[2]] : null;
|
||||
public NPC Permafrost => Main.npc.IndexInRange((int)Projectile.ai[2]) ? Main.npc[(int)Projectile.ai[2]] : null;
|
||||
|
||||
public ref float ShootReach => ref Projectile.ai[0];
|
||||
|
||||
@@ -48,17 +48,17 @@ namespace CalamityMod.Projectiles.Boss
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
// Die if Cirrus disappears.
|
||||
if (Cirrus is null || !Cirrus.active)
|
||||
// Die if Permafrost disappears.
|
||||
if (Permafrost is null || !Permafrost.active)
|
||||
{
|
||||
Projectile.Kill();
|
||||
return;
|
||||
}
|
||||
|
||||
// Die if Cirrus shouldn't be using it.
|
||||
int cirrusBulletHellCounter = Cirrus.ModNPC<SupremeCalamitas>().bulletHellCounter2;
|
||||
if (!(cirrusBulletHellCounter > SupremeCalamitas.SecondBulletHellEndValue && cirrusBulletHellCounter < SupremeCalamitas.ThirdBulletHellEndValue) &&
|
||||
!(cirrusBulletHellCounter > SupremeCalamitas.FourthBulletHellEndValue && cirrusBulletHellCounter < SupremeCalamitas.FifthBulletHellEndValue))
|
||||
// Die if Permafrost shouldn't be using it.
|
||||
int permafrostBulletHellCounter = Permafrost.ModNPC<SupremeCalamitas>().bulletHellCounter2;
|
||||
if (!(permafrostBulletHellCounter > SupremeCalamitas.SecondBulletHellEndValue && permafrostBulletHellCounter < SupremeCalamitas.ThirdBulletHellEndValue) &&
|
||||
!(permafrostBulletHellCounter > SupremeCalamitas.FourthBulletHellEndValue && permafrostBulletHellCounter < SupremeCalamitas.FifthBulletHellEndValue))
|
||||
{
|
||||
Projectile.Kill();
|
||||
return;
|
||||
@@ -82,13 +82,13 @@ namespace CalamityMod.Projectiles.Boss
|
||||
// In this context, the velocity is simply the initial direction as a unit vector- it does not actually influence movement in any way.
|
||||
positionOffset = positionOffset.RotatedBy(Projectile.velocity.ToRotation() - MathHelper.PiOver2);
|
||||
|
||||
Vector2 cirrusRotatedPosition = Cirrus.Center;
|
||||
float rotation = Cirrus.rotation;
|
||||
Vector2 vector = Cirrus.Bottom + new Vector2(0f, Cirrus.gfxOffY);
|
||||
Vector2 permafrostRotatedPosition = Permafrost.Center;
|
||||
float rotation = Permafrost.rotation;
|
||||
Vector2 vector = Permafrost.Bottom + new Vector2(0f, Permafrost.gfxOffY);
|
||||
Vector2 vector2 = new Vector2(0f, -4f) + new Vector2(0f, 4f).RotatedBy(rotation);
|
||||
cirrusRotatedPosition.Y += Cirrus.gfxOffY;
|
||||
cirrusRotatedPosition = vector + (cirrusRotatedPosition - vector).RotatedBy(rotation) + vector2;
|
||||
Projectile.Center = cirrusRotatedPosition + Projectile.velocity * 42f + positionOffset;
|
||||
permafrostRotatedPosition.Y += Permafrost.gfxOffY;
|
||||
permafrostRotatedPosition = vector + (permafrostRotatedPosition - vector).RotatedBy(rotation) + vector2;
|
||||
Projectile.Center = permafrostRotatedPosition + Projectile.velocity * 42f + positionOffset;
|
||||
Projectile.Opacity = Utils.GetLerpValue(0f, 12f, Time, true) * Utils.GetLerpValue(Lifetime, Lifetime - 12f, Lifetime - Projectile.timeLeft, true);
|
||||
|
||||
// Destroy trees within the range of the past 20 oldPos positions.
|
||||
@@ -127,11 +127,11 @@ namespace CalamityMod.Projectiles.Boss
|
||||
AchievementsHelper.CurrentlyMining = false;
|
||||
}
|
||||
|
||||
public override Color? GetAlpha(Color lightColor) => Color.HotPink;
|
||||
public override Color? GetAlpha(Color lightColor) => Color.Cyan;
|
||||
|
||||
internal float WidthFunction(float completionRatio) => Projectile.scale * 24f * (1f - Utils.GetLerpValue(0.7f, 1f, completionRatio, true)) + 1f;
|
||||
|
||||
internal Color ColorFunction(float completionRatio) => Color.HotPink * Projectile.Opacity;
|
||||
internal Color ColorFunction(float completionRatio) => Color.Cyan * Projectile.Opacity;
|
||||
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
@@ -163,6 +163,6 @@ namespace CalamityMod.Projectiles.Boss
|
||||
// Prevent the crystals from utilizing velocity. Their movement is entirely dependant on Center setting.
|
||||
public override bool ShouldUpdatePosition() => false;
|
||||
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(ModContent.BuffType<MiracleBlight>(), 300);
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(ModContent.BuffType<GlacialState>(), 300);
|
||||
}
|
||||
}
|
||||
@@ -12,11 +12,11 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
public class CirrusVolatileVodkaBottle : ModProjectile, ILocalizedModType
|
||||
public class PermafrostMeat : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Boss";
|
||||
|
||||
public override string Texture => "CalamityMod/Items/Potions/Alcohol/PurpleHaze";
|
||||
public override string Texture => "CalamityMod/Items/Potions/DeliciousMeat";
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
@@ -34,9 +34,14 @@ namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
if (Projectile.ai[0] == 0f)
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.Item106, Projectile.Center);
|
||||
SoundEngine.PlaySound(SoundID.NPCDeath43 with { Volume = SoundID.NPCDeath43.Volume * 0.35f, Pitch = 0.3f }, Projectile.position);
|
||||
Projectile.ai[0] = 1f;
|
||||
}
|
||||
if (Projectile.ai[1] == 0)
|
||||
{
|
||||
Projectile.aiStyle = -1;
|
||||
Projectile.tileCollide = false;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
@@ -48,11 +53,11 @@ namespace CalamityMod.Projectiles.Boss
|
||||
|
||||
public override void OnKill(int timeLeft)
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.Shatter, Projectile.Center);
|
||||
SoundEngine.PlaySound(SoundID.NPCDeath43 with { Volume = SoundID.NPCDeath43.Volume * 0.35f }, Projectile.position);
|
||||
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
int dust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 0, default, 1.2f);
|
||||
int dust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.IceGolem, 0f, 0f, 0, default, 1.2f);
|
||||
Main.dust[dust].velocity *= 3f;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
@@ -63,32 +68,33 @@ namespace CalamityMod.Projectiles.Boss
|
||||
|
||||
for (int i = 0; i < 20; i++)
|
||||
{
|
||||
int dust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.BlueCosmilite, 0f, 0f, 0, default, 1.7f);
|
||||
int dust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.IceGolem, 0f, 0f, 0, default, 1.7f);
|
||||
Main.dust[dust].noGravity = true;
|
||||
Main.dust[dust].velocity *= 5f;
|
||||
dust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 0, default, 1f);
|
||||
dust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.IceGolem, 0f, 0f, 0, default, 1f);
|
||||
Main.dust[dust].velocity *= 2f;
|
||||
}
|
||||
|
||||
if (Projectile.owner == Main.myPlayer)
|
||||
if (Projectile.ai[2] == 0)
|
||||
{
|
||||
int totalProjectiles = 3;
|
||||
float radians = MathHelper.TwoPi / totalProjectiles;
|
||||
int type = ModContent.ProjectileType<FabRay>();
|
||||
float velocity = 8f;
|
||||
double angleA = radians * 0.5;
|
||||
double angleB = MathHelper.ToRadians(90f) - angleA;
|
||||
float velocityX2 = (float)(velocity * Math.Sin(angleA) / Math.Sin(angleB));
|
||||
Vector2 spinningPoint = Main.rand.NextBool() ? new Vector2(0f, -velocity) : new Vector2(-velocityX2, -velocity);
|
||||
for (int k = 0; k < totalProjectiles; k++)
|
||||
if (Projectile.owner == Main.myPlayer)
|
||||
{
|
||||
Vector2 velocity2 = spinningPoint.RotatedBy(radians * k);
|
||||
int proj = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center + Vector2.Normalize(velocity2) * 10f, velocity2, type, (int)Math.Round(Projectile.damage * 0.8), 0f, Main.myPlayer);
|
||||
if (proj.WithinBounds(Main.maxProjectiles))
|
||||
int totalProjectiles = 3;
|
||||
float radians = MathHelper.TwoPi / totalProjectiles;
|
||||
float velocity = 8f;
|
||||
double angleA = radians * 0.5;
|
||||
double angleB = MathHelper.ToRadians(90f) - angleA;
|
||||
float velocityX2 = (float)(velocity * Math.Sin(angleA) / Math.Sin(angleB));
|
||||
Vector2 spinningPoint = Main.rand.NextBool() ? new Vector2(0f, -velocity) : new Vector2(-velocityX2, -velocity);
|
||||
for (int k = 0; k < totalProjectiles; k++)
|
||||
{
|
||||
Main.projectile[proj].DamageType = DamageClass.Default;
|
||||
Main.projectile[proj].friendly = false;
|
||||
Main.projectile[proj].hostile = true;
|
||||
Vector2 velocity2 = spinningPoint.RotatedBy(radians * k);
|
||||
int proj = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center + Vector2.Normalize(velocity2) * 10f, velocity2, Type, (int)Math.Round(Projectile.damage * 0.8), 0f, Main.myPlayer, ai2: 1);
|
||||
if (proj.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[proj].tileCollide = false;
|
||||
Main.projectile[proj].aiStyle = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -97,7 +103,6 @@ namespace CalamityMod.Projectiles.Boss
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo info)
|
||||
{
|
||||
Projectile.Kill();
|
||||
target.AddBuff(ModContent.BuffType<PurpleHazeBuff>(), 54000);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -168,8 +168,13 @@ namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].active)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].ModNPC<SupremeCalamitas>().cirrus)
|
||||
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].ModNPC<SupremeCalamitas>().permafrost)
|
||||
{
|
||||
lightColor.G = (byte)(255 * Projectile.Opacity);
|
||||
lightColor.B = (byte)(255 * Projectile.Opacity);
|
||||
lightColor.R = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -153,8 +153,12 @@ namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].active)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].ModNPC<SupremeCalamitas>().cirrus)
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].ModNPC<SupremeCalamitas>().permafrost)
|
||||
{
|
||||
lightColor.G = (byte)(255 * Projectile.Opacity);
|
||||
lightColor.B = (byte)(255 * Projectile.Opacity);
|
||||
lightColor.R = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using CalamityMod.NPCs.Cryogen;
|
||||
using CalamityMod.NPCs.SupremeCalamitas;
|
||||
using CalamityMod.Particles;
|
||||
using CalamityMod.Skies;
|
||||
@@ -98,12 +99,12 @@ namespace CalamityMod.Projectiles.Boss
|
||||
NPC scal = CalamityUtils.SpawnBossBetter(spawnPosition, ModContent.NPCType<SupremeCalamitas>());
|
||||
if (Projectile.ai[1] == 1)
|
||||
{
|
||||
scal.ModNPC<SupremeCalamitas>().cirrus = true;
|
||||
scal.ModNPC<SupremeCalamitas>().permafrost = true;
|
||||
}
|
||||
}
|
||||
|
||||
// Make a laugh sound and create a burst of brimstone dust.
|
||||
SoundStyle SpawnSound = Projectile.ai[1] == 1 ? SoundID.Item107 : SupremeCalamitas.SpawnSound;
|
||||
SoundStyle SpawnSound = Projectile.ai[1] == 1 ? Cryogen.DeathSound : SupremeCalamitas.SpawnSound;
|
||||
SoundEngine.PlaySound(SpawnSound, Projectile.Center);
|
||||
|
||||
// Make a sudden screen shake.
|
||||
@@ -112,19 +113,19 @@ namespace CalamityMod.Projectiles.Boss
|
||||
// Generate a dust explosion at the ritual's position.
|
||||
for (int i = 0; i < 90; i++)
|
||||
{
|
||||
Dust spawnDust = Dust.NewDustPerfect(Projectile.Center, Projectile.ai[1] == 1 ? (int)CalamityDusts.PurpleCosmilite : (int)CalamityDusts.Brimstone, new Vector2(30, 30).RotatedByRandom(100) * Main.rand.NextFloat(0.05f, 1.2f));
|
||||
Dust spawnDust = Dust.NewDustPerfect(Projectile.Center, Projectile.ai[1] == 1 ? DustID.IceGolem : (int)CalamityDusts.Brimstone, new Vector2(30, 30).RotatedByRandom(100) * Main.rand.NextFloat(0.05f, 1.2f));
|
||||
spawnDust.noGravity = true;
|
||||
spawnDust.scale = Main.rand.NextFloat(1.2f, 2.3f);
|
||||
}
|
||||
for (int i = 0; i < 40; i++)
|
||||
{
|
||||
Vector2 sparkVel = new Vector2(20, 20).RotatedByRandom(100) * Main.rand.NextFloat(0.1f, 1.1f);
|
||||
GlowOrbParticle orb = new GlowOrbParticle(Projectile.Center + sparkVel * 2, sparkVel, false, 120, Main.rand.NextFloat(1.55f, 2.75f), Projectile.ai[1] == 1 ? Color.Magenta : Color.Red, true, true);
|
||||
GlowOrbParticle orb = new GlowOrbParticle(Projectile.Center + sparkVel * 2, sparkVel, false, 120, Main.rand.NextFloat(1.55f, 2.75f), Projectile.ai[1] == 1 ? Color.Cyan : Color.Red, true, true);
|
||||
GeneralParticleHandler.SpawnParticle(orb);
|
||||
}
|
||||
Particle pulse = new DirectionalPulseRing(Projectile.Center, Vector2.Zero, Projectile.ai[1] == 1 ? Color.Magenta : Color.Red, new Vector2(2f, 2f), 0, 0f, 2.7f, 60);
|
||||
Particle pulse = new DirectionalPulseRing(Projectile.Center, Vector2.Zero, Projectile.ai[1] == 1 ? Color.Cyan : Color.Red, new Vector2(2f, 2f), 0, 0f, 2.7f, 60);
|
||||
GeneralParticleHandler.SpawnParticle(pulse);
|
||||
Particle pulse2 = new DirectionalPulseRing(Projectile.Center, Vector2.Zero, Projectile.ai[1] == 1 ? Color.Magenta : new Color(121, 21, 77), new Vector2(2f, 2f), 0, 0f, 2.1f, 60);
|
||||
Particle pulse2 = new DirectionalPulseRing(Projectile.Center, Vector2.Zero, Projectile.ai[1] == 1 ? Color.Cyan : new Color(121, 21, 77), new Vector2(2f, 2f), 0, 0f, 2.1f, 60);
|
||||
GeneralParticleHandler.SpawnParticle(pulse2);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,16 +49,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
if (potentialTarget != null)
|
||||
{
|
||||
Vector2 shootVelocity = Projectile.SafeDirectionTo(potentialTarget.Center) * 13f;
|
||||
int p = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center - shootVelocity * 2.5f, shootVelocity, ModContent.ProjectileType<FabBolt>(), Projectile.damage, Projectile.knockBack, Projectile.owner);
|
||||
if (p.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
if (Projectile.hostile)
|
||||
{
|
||||
Main.projectile[p].hostile = true;
|
||||
Main.projectile[p].friendly = false;
|
||||
Main.projectile[p].DamageType = DamageClass.Default;
|
||||
}
|
||||
}
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center - shootVelocity * 2.5f, shootVelocity, ModContent.ProjectileType<FabBolt>(), Projectile.damage, Projectile.knockBack, Projectile.owner);
|
||||
}
|
||||
|
||||
for (int i = 0; i < Projectile.oldPos.Length / 4; i += 3)
|
||||
@@ -67,16 +58,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
if (potentialTarget != null)
|
||||
{
|
||||
Vector2 shootVelocity = (potentialTarget.Center - Projectile.oldPos[i]).SafeNormalize(Vector2.UnitY) * 13f;
|
||||
int p = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.oldPos[i] - shootVelocity * 2.5f, shootVelocity, ModContent.ProjectileType<FabBolt>(), Projectile.damage, Projectile.knockBack, Projectile.owner);
|
||||
if (p.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
if (Projectile.hostile)
|
||||
{
|
||||
Main.projectile[p].hostile = true;
|
||||
Main.projectile[p].friendly = false;
|
||||
Main.projectile[p].DamageType = DamageClass.Default;
|
||||
}
|
||||
}
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.oldPos[i] - shootVelocity * 2.5f, shootVelocity, ModContent.ProjectileType<FabBolt>(), Projectile.damage, Projectile.knockBack, Projectile.owner);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -312,7 +312,6 @@ namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
switch (name)
|
||||
{
|
||||
case "Fabsol":
|
||||
case "Ziggums":
|
||||
return 2f;
|
||||
case "Poly":
|
||||
|
||||
@@ -13,31 +13,9 @@ namespace CalamityMod.Systems
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
{
|
||||
// Case 1: Zenith Seed Crabulon.
|
||||
if (Main.zenithWorld && NPC.AnyNPCs(ModContent.NPCType<Crabulon>()))
|
||||
return true;
|
||||
|
||||
// Case 2: Supreme Cirrus BH5.
|
||||
bool cirrusSpecialAttack = false;
|
||||
|
||||
// Try to find Supreme Cirrus, if she exists. She might not.
|
||||
try
|
||||
{
|
||||
// Is there an index reference to Supreme Calamitas/Cirrus available? Is it valid? I sure hope so. Thanks TML
|
||||
if (CalamityGlobalNPC.SCal >= 0 && CalamityGlobalNPC.SCal < Main.maxNPCs && Main.npc[CalamityGlobalNPC.SCal].active)
|
||||
{
|
||||
NPC npc = Main.npc[CalamityGlobalNPC.SCal];
|
||||
SupremeCalamitas supremeSomeone = npc.ModNPC<SupremeCalamitas>();
|
||||
cirrusSpecialAttack = supremeSomeone is not null && supremeSomeone.cirrus && supremeSomeone.gettingTired5;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
if (Main.netMode == NetmodeID.SinglePlayer)
|
||||
Main.NewText("Supreme Cirrus code attempted to crash the game. Did you do something weird?");
|
||||
}
|
||||
|
||||
return cirrusSpecialAttack;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void SpecialVisuals(Player player, bool isActive)
|
||||
|
||||
@@ -13,7 +13,6 @@ namespace CalamityMod.Skies
|
||||
public class DrunkCrabScreenShaderData : ScreenShaderData
|
||||
{
|
||||
public int CrabIndex;
|
||||
public int CirrusIndex;
|
||||
|
||||
public DrunkCrabScreenShaderData(string passName)
|
||||
: base(passName)
|
||||
@@ -23,98 +22,28 @@ namespace CalamityMod.Skies
|
||||
public void UpdateBossIndex()
|
||||
{
|
||||
int CrabType = ModContent.NPCType<Crabulon>();
|
||||
int CirrusType = ModContent.NPCType<SupremeCalamitas>();
|
||||
bool shouldCheckForCirrus = false;
|
||||
bool shouldForceDeactivateCirrusShader = false;
|
||||
if (CalamityGlobalNPC.SCal != -1)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].active)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].ModNPC<SupremeCalamitas>().cirrus)
|
||||
{
|
||||
shouldCheckForCirrus = Main.npc[CalamityGlobalNPC.SCal].ModNPC<SupremeCalamitas>().gettingTired5;
|
||||
shouldForceDeactivateCirrusShader = Main.npc[CalamityGlobalNPC.SCal].ModNPC<SupremeCalamitas>().giveUpCounter <= 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (CrabIndex >= 0 && Main.npc[CrabIndex].active && Main.npc[CrabIndex].type == CrabType)
|
||||
return;
|
||||
|
||||
if (shouldCheckForCirrus)
|
||||
{
|
||||
if (CirrusIndex >= 0 && Main.npc[CirrusIndex].active && Main.npc[CirrusIndex].type == CirrusType && !shouldForceDeactivateCirrusShader)
|
||||
return;
|
||||
|
||||
CirrusIndex = -1;
|
||||
|
||||
if (!shouldForceDeactivateCirrusShader)
|
||||
{
|
||||
CirrusIndex = NPC.FindFirstNPC(CirrusType);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (CrabIndex >= 0 && Main.npc[CrabIndex].active && Main.npc[CrabIndex].type == CrabType)
|
||||
return;
|
||||
|
||||
CrabIndex = NPC.FindFirstNPC(CrabType);
|
||||
}
|
||||
CrabIndex = NPC.FindFirstNPC(CrabType);
|
||||
}
|
||||
|
||||
public override void Update(GameTime gameTime)
|
||||
{
|
||||
bool shouldCheckForCirrus = false;
|
||||
if (CalamityGlobalNPC.SCal != -1)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].active)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].ModNPC<SupremeCalamitas>().cirrus)
|
||||
shouldCheckForCirrus = Main.npc[CalamityGlobalNPC.SCal].ModNPC<SupremeCalamitas>().gettingTired5;
|
||||
}
|
||||
}
|
||||
|
||||
if (shouldCheckForCirrus)
|
||||
{
|
||||
if (CirrusIndex == -1)
|
||||
{
|
||||
UpdateBossIndex();
|
||||
if (CirrusIndex == -1)
|
||||
Filters.Scene["CalamityMod:DrunkCrabulon"].Deactivate();
|
||||
}
|
||||
}
|
||||
else
|
||||
if (CrabIndex == -1 || !Main.zenithWorld)
|
||||
{
|
||||
UpdateBossIndex();
|
||||
if (CrabIndex == -1 || !Main.zenithWorld)
|
||||
{
|
||||
UpdateBossIndex();
|
||||
if (CrabIndex == -1 || !Main.zenithWorld)
|
||||
Filters.Scene["CalamityMod:DrunkCrabulon"].Deactivate();
|
||||
}
|
||||
}
|
||||
Filters.Scene["CalamityMod:DrunkCrabulon"].Deactivate();
|
||||
}
|
||||
}
|
||||
|
||||
public override void Apply()
|
||||
{
|
||||
UpdateBossIndex();
|
||||
|
||||
bool shouldCheckForCirrus = false;
|
||||
if (CalamityGlobalNPC.SCal != -1)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].active)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].ModNPC<SupremeCalamitas>().cirrus)
|
||||
shouldCheckForCirrus = Main.npc[CalamityGlobalNPC.SCal].ModNPC<SupremeCalamitas>().gettingTired5;
|
||||
}
|
||||
}
|
||||
|
||||
if (shouldCheckForCirrus)
|
||||
{
|
||||
if (CirrusIndex != -1)
|
||||
UseTargetPosition(Main.npc[CirrusIndex].Center);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (CrabIndex != -1)
|
||||
UseTargetPosition(Main.npc[CrabIndex].Center);
|
||||
}
|
||||
if (CrabIndex != -1)
|
||||
UseTargetPosition(Main.npc[CrabIndex].Center);
|
||||
|
||||
base.Apply();
|
||||
}
|
||||
|
||||
@@ -44,8 +44,8 @@ namespace CalamityMod.Skies
|
||||
{
|
||||
UseTargetPosition(Main.npc[SCalIndex].Center);
|
||||
|
||||
if (Main.npc[SCalIndex].ModNPC<SupremeCalamitas>().cirrus)
|
||||
Filters.Scene["CalamityMod:SupremeCalamitas"].GetShader().UseColor(0.9f, 0.3f, 0.9f);
|
||||
if (Main.npc[SCalIndex].ModNPC<SupremeCalamitas>().permafrost)
|
||||
Filters.Scene["CalamityMod:SupremeCalamitas"].GetShader().UseColor(0.3f, 0.6f, 0.9f);
|
||||
}
|
||||
base.Apply();
|
||||
}
|
||||
|
||||
@@ -140,7 +140,7 @@ namespace CalamityMod.Skies
|
||||
return Color.Transparent;
|
||||
|
||||
NPC scal = Main.npc[CalamityGlobalNPC.SCal];
|
||||
bool cirrus = scal.ModNPC<SupremeCalamitas>().cirrus;
|
||||
bool permafrost = scal.ModNPC<SupremeCalamitas>().permafrost;
|
||||
float lifeRatio = scal.life / (float)scal.lifeMax;
|
||||
|
||||
if (NPC.AnyNPCs(ModContent.NPCType<SupremeCatastrophe>()) == true && NPC.AnyNPCs(ModContent.NPCType<SupremeCataclysm>()) == false)
|
||||
@@ -151,11 +151,11 @@ namespace CalamityMod.Skies
|
||||
return Color.Lerp(Color.Red, Color.IndianRed, Main.rand.NextFloat(0f, 1f));
|
||||
|
||||
if (lifeRatio > 0.5f)
|
||||
return Color.Lerp(cirrus ? Color.Pink : Color.Red, cirrus ? Color.Violet : Color.Crimson, Main.rand.NextFloat(0f, 1f));
|
||||
return Color.Lerp(permafrost ? Color.LightBlue : Color.Red, permafrost ? Color.DarkCyan : Color.Crimson, Main.rand.NextFloat(0f, 1f));
|
||||
else if (lifeRatio > 0.3f || scal.ModNPC<SupremeCalamitas>().postMusicHit == false)
|
||||
return Color.Lerp(cirrus ? Color.Cyan : Color.Red, cirrus ? Color.DarkCyan : Color.Magenta, Main.rand.NextFloat(0f, 0.7f));
|
||||
return Color.Lerp(permafrost ? Color.LightBlue : Color.Red, permafrost ? Color.DarkCyan : Color.Magenta, Main.rand.NextFloat(0f, 0.7f));
|
||||
else if (lifeRatio > 0.01f)
|
||||
return Color.Lerp(cirrus ? Color.Pink : Color.Red, cirrus ? Color.Green : Color.Yellow, Main.rand.NextFloat(0f, 0.88f));
|
||||
return Color.Lerp(permafrost ? Color.LightBlue : Color.Red, permafrost ? Color.MediumBlue : Color.Yellow, Main.rand.NextFloat(0f, 0.88f));
|
||||
else
|
||||
return Color.Lerp(Color.Gray, Color.White, Main.rand.NextFloat(0f, 0.65f));
|
||||
}
|
||||
@@ -253,15 +253,15 @@ namespace CalamityMod.Skies
|
||||
}
|
||||
|
||||
NPC scal = Main.npc[CalamityGlobalNPC.SCal];
|
||||
bool cirrus = scal.ModNPC<SupremeCalamitas>().cirrus;
|
||||
bool permafrost = scal.ModNPC<SupremeCalamitas>().permafrost;
|
||||
float lifeRatio = scal.life / (float)scal.lifeMax;
|
||||
|
||||
if (lifeRatio > 0.5f)
|
||||
cinderColortoBe = Color.Lerp(cirrus ? Color.Pink : Color.Red, cirrus ? Color.Violet : Color.Crimson, Main.rand.NextFloat(0f, 1f));
|
||||
cinderColortoBe = Color.Lerp(permafrost ? Color.Cyan : Color.Red, permafrost ? Color.MediumBlue : Color.Crimson, Main.rand.NextFloat(0f, 1f));
|
||||
else if (lifeRatio > 0.3f || scal.ModNPC<SupremeCalamitas>().postMusicHit == false)
|
||||
cinderColortoBe = Color.Lerp(cirrus ? Color.Cyan : Color.Red, cirrus ? Color.DarkCyan : Color.Magenta, Main.rand.NextFloat(0f, 0.7f));
|
||||
cinderColortoBe = Color.Lerp(permafrost ? Color.Cyan : Color.Red, permafrost ? Color.DarkCyan : Color.Magenta, Main.rand.NextFloat(0f, 0.7f));
|
||||
else if (lifeRatio > 0.01f)
|
||||
cinderColortoBe = Color.Lerp(cirrus ? Color.Pink : Color.Red, cirrus ? Color.Green : Color.Yellow, Main.rand.NextFloat(0f, 0.88f));
|
||||
cinderColortoBe = Color.Lerp(permafrost ? Color.Cyan : Color.Red, permafrost ? Color.DarkTurquoise : Color.Yellow, Main.rand.NextFloat(0f, 0.88f));
|
||||
else
|
||||
cinderColortoBe = Color.Lerp(Color.Gray, Color.White, Main.rand.NextFloat(0.8f));
|
||||
|
||||
|
||||
@@ -1409,6 +1409,13 @@ namespace CalamityMod.Systems
|
||||
r.AddIngredient(ItemID.Bone, 2);
|
||||
r.AddTile(TileID.CookingPots);
|
||||
r.Register();
|
||||
r.DisableDecraft();
|
||||
|
||||
r = Recipe.Create(ItemID.Milkshake);
|
||||
r.AddIngredient(ItemID.IceBlock);
|
||||
r.AddIngredient(ItemID.MilkCarton);
|
||||
r.AddTile(TileID.IceMachine);
|
||||
r.Register();
|
||||
r.DisableDecraft();
|
||||
|
||||
r = Recipe.Create(ItemID.Nachos);
|
||||
|
||||
@@ -233,7 +233,7 @@ namespace CalamityMod
|
||||
BitsByte flags5 = new BitsByte();
|
||||
flags5[0] = downedAstrumDeus;
|
||||
flags5[1] = spawnedBandit;
|
||||
flags5[2] = spawnedCirrus;
|
||||
flags5[2] = false;
|
||||
flags5[3] = AcidRainEvent.HasStartedAcidicDownpour;
|
||||
flags5[4] = false;
|
||||
flags5[5] = downedPolterghast;
|
||||
@@ -387,7 +387,7 @@ namespace CalamityMod
|
||||
BitsByte flags5 = reader.ReadByte();
|
||||
downedAstrumDeus = flags5[0];
|
||||
spawnedBandit = flags5[1];
|
||||
spawnedCirrus = flags5[2];
|
||||
_ = flags5[2];
|
||||
AcidRainEvent.HasStartedAcidicDownpour = flags5[3];
|
||||
_ = flags5[4];
|
||||
downedPolterghast = flags5[5];
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Tiles.Furniture
|
||||
{
|
||||
public class BlueCandle : ModTile
|
||||
{
|
||||
// TODO -- Unique sounds for each Cirrus Candle.
|
||||
// TODO -- Unique sounds for each Candle.
|
||||
public static readonly SoundStyle ActivationSound = new("CalamityMod/Sounds/Item/LouderPhantomPhoenix2");
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Furniture.CraftingStations;
|
||||
using CalamityMod.Items.Potions;
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using CalamityMod.Items.SummonItems;
|
||||
using CalamityMod.NPCs.SupremeCalamitas;
|
||||
@@ -79,9 +80,9 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
|
||||
public static void HoverItemIcon(int i, int j)
|
||||
{
|
||||
bool vodka = Main.LocalPlayer.HeldItem.type == ModContent.ItemType<PurpleHaze>() && Main.zenithWorld;
|
||||
bool vodka = Main.LocalPlayer.HeldItem.type == ModContent.ItemType<DeliciousMeat>() && Main.zenithWorld;
|
||||
if (vodka)
|
||||
Main.LocalPlayer.cursorItemIconID = ModContent.ItemType<PurpleHaze>();
|
||||
Main.LocalPlayer.cursorItemIconID = ModContent.ItemType<DeliciousMeat>();
|
||||
else if (Main.LocalPlayer.HasItem(ModContent.ItemType<CeremonialUrn>()))
|
||||
Main.LocalPlayer.cursorItemIconID = ModContent.ItemType<CeremonialUrn>();
|
||||
else
|
||||
@@ -108,12 +109,12 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
public static bool AttemptToSummonSCal(int i, int j)
|
||||
{
|
||||
if (!Main.LocalPlayer.HasItem(ModContent.ItemType<AshesofCalamity>()) &&
|
||||
!Main.LocalPlayer.HasItem(ModContent.ItemType<CeremonialUrn>()) && !(Main.LocalPlayer.HeldItem.type == ModContent.ItemType<PurpleHaze>() && Main.zenithWorld))
|
||||
!Main.LocalPlayer.HasItem(ModContent.ItemType<CeremonialUrn>()) && !(Main.LocalPlayer.HeldItem.type == ModContent.ItemType<DeliciousMeat>() && Main.zenithWorld))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
bool vodka = Main.LocalPlayer.HeldItem.type == ModContent.ItemType<PurpleHaze>() && Main.zenithWorld;
|
||||
bool meat = Main.LocalPlayer.HeldItem.type == ModContent.ItemType<DeliciousMeat>() && Main.zenithWorld;
|
||||
|
||||
if (NPC.AnyNPCs(ModContent.NPCType<SupremeCalamitas>()) || BossRushEvent.BossRushActive)
|
||||
return true;
|
||||
@@ -130,14 +131,14 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
ritualSpawnPosition += new Vector2(0f, -24f);
|
||||
|
||||
SoundEngine.PlaySound(SummonSound, ritualSpawnPosition);
|
||||
Projectile.NewProjectile(new EntitySource_WorldEvent(), ritualSpawnPosition, Vector2.Zero, ModContent.ProjectileType<SCalRitualDrama>(), 0, 0f, Main.myPlayer, 0, vodka.ToInt());
|
||||
Projectile.NewProjectile(new EntitySource_WorldEvent(), ritualSpawnPosition, Vector2.Zero, ModContent.ProjectileType<SCalRitualDrama>(), 0, 0f, Main.myPlayer, 0, meat.ToInt());
|
||||
|
||||
if (vodka)
|
||||
if (meat)
|
||||
{
|
||||
Main.LocalPlayer.ConsumeItem(ModContent.ItemType<PurpleHaze>(), true);
|
||||
Main.LocalPlayer.ConsumeItem(ModContent.ItemType<DeliciousMeat>(), true);
|
||||
foreach (NPC n in Main.ActiveNPCs)
|
||||
{
|
||||
if (n.type == ModContent.NPCType<Cirrus>())
|
||||
if (n.type == ModContent.NPCType<Archmage>())
|
||||
n.active = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Tiles.Furniture
|
||||
{
|
||||
public class PinkCandle : ModTile
|
||||
{
|
||||
// TODO -- Unique sounds for each Cirrus Candle.
|
||||
// TODO -- Unique sounds for each Candle.
|
||||
public static readonly SoundStyle ActivationSound = new("CalamityMod/Sounds/Item/LouderPhantomPhoenix2");
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Tiles.Furniture
|
||||
{
|
||||
public class PurpleCandle : ModTile
|
||||
{
|
||||
// TODO -- Unique sounds for each Cirrus Candle.
|
||||
// TODO -- Unique sounds for each Candle.
|
||||
public static readonly SoundStyle ActivationSound = new("CalamityMod/Sounds/Item/LouderPhantomPhoenix2");
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Tiles.Furniture
|
||||
{
|
||||
public class YellowCandle : ModTile
|
||||
{
|
||||
// TODO -- Unique sounds for each Cirrus Candle.
|
||||
// TODO -- Unique sounds for each Candle.
|
||||
public static readonly SoundStyle ActivationSound = new("CalamityMod/Sounds/Item/LouderPhantomPhoenix2");
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
|
||||
@@ -73,8 +73,6 @@ namespace CalamityMod.World
|
||||
|
||||
/// <summary> If true, the Bandit has lived in this world. Used to ensure their spawn condition is not required on subsequent respawns. </summary>
|
||||
public static bool spawnedBandit = false;
|
||||
/// <summary> If true, the Drunk Princess has lived in this world. Used to ensure her spawn condition is not required on subsequent respawns. </summary>
|
||||
public static bool spawnedCirrus = false;
|
||||
/// <summary> If true, the Archmage has lived in a house in this world. Solely used as a condition for dialogue. </summary>
|
||||
public static bool foundHomePermafrost = false;
|
||||
|
||||
|
||||