4 files changed
+43
-8
No files matched your search
@@ -80,6 +80,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
public bool spawnArena = false;
|
||||
public bool enteredBrothersPhase = false;
|
||||
public bool hasSummonedBrothers = false;
|
||||
public bool cirrus = false;
|
||||
|
||||
public int giveUpCounter = 1200;
|
||||
public int phaseChange = 0;
|
||||
@@ -270,6 +271,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
writer.Write(spawnArena);
|
||||
writer.Write(hasSummonedBrothers);
|
||||
writer.Write(enteredBrothersPhase);
|
||||
writer.Write(cirrus);
|
||||
writer.Write(NPC.dontTakeDamage);
|
||||
writer.Write(NPC.chaseable);
|
||||
|
||||
@@ -321,6 +323,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
spawnArena = reader.ReadBoolean();
|
||||
hasSummonedBrothers = reader.ReadBoolean();
|
||||
enteredBrothersPhase = reader.ReadBoolean();
|
||||
cirrus = reader.ReadBoolean();
|
||||
NPC.dontTakeDamage = reader.ReadBoolean();
|
||||
NPC.chaseable = reader.ReadBoolean();
|
||||
|
||||
@@ -2737,6 +2740,11 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
|
||||
Texture2D texture2D15 = DownedBossSystem.downedCalamitas && !BossRushEvent.BossRushActive ? TextureAssets.Npc[NPC.type].Value : ModContent.Request<Texture2D>("CalamityMod/NPCs/SupremeCalamitas/SupremeCalamitasHooded").Value;
|
||||
|
||||
if (cirrus)
|
||||
{
|
||||
texture2D15 = ModContent.Request<Texture2D>("CalamityMod/NPCs/SupremeCalamitas/SupremeCirrus").Value;
|
||||
}
|
||||
|
||||
Vector2 vector11 = new Vector2(texture2D15.Width / 2f, texture2D15.Height / Main.npcFrameCount[NPC.type] / 2f);
|
||||
Color color36 = Color.White;
|
||||
float amount9 = 0.5f;
|
||||
@@ -2828,7 +2836,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
GameShaders.Misc["CalamityMod:SupremeShield"].UseImage1("Images/Misc/Perlin");
|
||||
|
||||
Color forcefieldColor = Color.DarkViolet;
|
||||
Color secondaryForcefieldColor = Color.Red * 1.4f;
|
||||
Color secondaryForcefieldColor = (cirrus ? Color.HotPink : Color.Red) * 1.4f;
|
||||
|
||||
if (!NPC.dontTakeDamage && (willCharge || NPC.ai[1] == 2f))
|
||||
{
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 5.8 KiB |
@@ -74,10 +74,17 @@ namespace CalamityMod.Projectiles.Boss
|
||||
// Summon SCal serverside.
|
||||
// All the other acoustic and visual effects can happen client-side.
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
CalamityUtils.SpawnBossBetter(Projectile.Center - new Vector2(60f), ModContent.NPCType<SupremeCalamitas>());
|
||||
{
|
||||
NPC scal = CalamityUtils.SpawnBossBetter(Projectile.Center - new Vector2(60f), ModContent.NPCType<SupremeCalamitas>());
|
||||
if (Projectile.ai[1] == 1)
|
||||
{
|
||||
scal.ModNPC<SupremeCalamitas>().cirrus = true;
|
||||
}
|
||||
}
|
||||
|
||||
// Make a laugh sound and create a burst of brimstone dust.
|
||||
SoundEngine.PlaySound(SupremeCalamitas.SpawnSound, Projectile.Center);
|
||||
SoundStyle SpawnSound = Projectile.ai[1] == 1 ? SoundID.Item107 : SupremeCalamitas.SpawnSound;
|
||||
SoundEngine.PlaySound(SpawnSound, Projectile.Center);
|
||||
|
||||
// Make a sudden screen shake.
|
||||
Main.LocalPlayer.Calamity().GeneralScreenShakePower = Utils.GetLerpValue(3400f, 1560f, Main.LocalPlayer.Distance(Projectile.Center), true) * 16f;
|
||||
@@ -90,7 +97,8 @@ namespace CalamityMod.Projectiles.Boss
|
||||
burstDirectionVariance += j * 2;
|
||||
for (int k = 0; k < 40; k++)
|
||||
{
|
||||
Dust burstDust = Dust.NewDustPerfect(Projectile.Center, (int)CalamityDusts.Brimstone);
|
||||
int type = Projectile.ai[1] == 1 ? 69 : (int)CalamityDusts.Brimstone;
|
||||
Dust burstDust = Dust.NewDustPerfect(Projectile.Center, type);
|
||||
burstDust.scale = Main.rand.NextFloat(3.1f, 3.5f);
|
||||
burstDust.position += Main.rand.NextVector2Circular(10f, 10f);
|
||||
burstDust.velocity = Main.rand.NextVector2Square(-burstDirectionVariance, burstDirectionVariance).SafeNormalize(Vector2.UnitY) * burstSpeed;
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Furniture.CraftingStations;
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using CalamityMod.Items.SummonItems;
|
||||
using CalamityMod.NPCs.SupremeCalamitas;
|
||||
using CalamityMod.Projectiles.Boss;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
@@ -63,10 +65,19 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
|
||||
public static void HoverItemIcon()
|
||||
{
|
||||
if (Main.LocalPlayer.HasItem(ModContent.ItemType<CeremonialUrn>()))
|
||||
bool vodka = Main.LocalPlayer.HeldItem.type == ModContent.ItemType<FabsolsVodka>() && CalamityWorld.getFixedBoi;
|
||||
if (vodka)
|
||||
{
|
||||
Main.LocalPlayer.cursorItemIconID = ModContent.ItemType<FabsolsVodka>();
|
||||
}
|
||||
else if (Main.LocalPlayer.HasItem(ModContent.ItemType<CeremonialUrn>()))
|
||||
{
|
||||
Main.LocalPlayer.cursorItemIconID = ModContent.ItemType<CeremonialUrn>();
|
||||
}
|
||||
else
|
||||
{
|
||||
Main.LocalPlayer.cursorItemIconID = ModContent.ItemType<AshesofCalamity>();
|
||||
}
|
||||
|
||||
Main.LocalPlayer.noThrow = 2;
|
||||
Main.LocalPlayer.cursorItemIconEnabled = true;
|
||||
@@ -80,11 +91,13 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
int top = j - tile.TileFrameY / 18;
|
||||
|
||||
if (!Main.LocalPlayer.HasItem(ModContent.ItemType<AshesofCalamity>()) &&
|
||||
!Main.LocalPlayer.HasItem(ModContent.ItemType<CeremonialUrn>()))
|
||||
!Main.LocalPlayer.HasItem(ModContent.ItemType<CeremonialUrn>()) && !(Main.LocalPlayer.HeldItem.type == ModContent.ItemType<FabsolsVodka>() && CalamityWorld.getFixedBoi))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
bool vodka = Main.LocalPlayer.HeldItem.type == ModContent.ItemType<FabsolsVodka>() && CalamityWorld.getFixedBoi;
|
||||
|
||||
if (NPC.AnyNPCs(ModContent.NPCType<SupremeCalamitas>()) || BossRushEvent.BossRushActive)
|
||||
return true;
|
||||
|
||||
@@ -97,10 +110,16 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
ritualSpawnPosition += new Vector2(-10f, -24f);
|
||||
|
||||
SoundEngine.PlaySound(SummonSound, ritualSpawnPosition);
|
||||
Projectile.NewProjectile(new EntitySource_WorldEvent(), ritualSpawnPosition, Vector2.Zero, ModContent.ProjectileType<SCalRitualDrama>(), 0, 0f, Main.myPlayer);
|
||||
Projectile.NewProjectile(new EntitySource_WorldEvent(), ritualSpawnPosition, Vector2.Zero, ModContent.ProjectileType<SCalRitualDrama>(), 0, 0f, Main.myPlayer, 0, vodka.ToInt());
|
||||
|
||||
if (!usingSpecialItem)
|
||||
if (vodka)
|
||||
{
|
||||
Main.LocalPlayer.ConsumeItem(ModContent.ItemType<FabsolsVodka>(), true);
|
||||
}
|
||||
else if (!usingSpecialItem)
|
||||
{
|
||||
Main.LocalPlayer.ConsumeItem(ModContent.ItemType<AshesofCalamity>(), true);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user