Gave Rev+ mini DS' a distinct name
This commit is contained in:
1 parent
65989673d8
commit
878dd1ec01
12 files changed
+199
-207
No files matched your search
+7
-7
@@ -547,9 +547,9 @@ namespace CalamityMod
|
||||
NPCID.DD2OgreT2,
|
||||
NPCID.DD2OgreT3,
|
||||
NPCID.DD2Betsy,
|
||||
NPCType<DesertScourgeHeadSmall>(),
|
||||
NPCType<DesertScourgeBodySmall>(),
|
||||
NPCType<DesertScourgeTailSmall>(),
|
||||
NPCType<DesertNuisanceHead>(),
|
||||
NPCType<DesertNuisanceBody>(),
|
||||
NPCType<DesertNuisanceTail>(),
|
||||
NPCType<GiantClam>(),
|
||||
NPCType<PerforatorHeadLarge>(),
|
||||
NPCType<PerforatorHeadMedium>(),
|
||||
@@ -2466,7 +2466,7 @@ namespace CalamityMod
|
||||
NPCID.PlanterasTentacle,
|
||||
NPCID.Sharkron,
|
||||
NPCID.Sharkron2,
|
||||
NPCType<DesertScourgeHeadSmall>(),
|
||||
NPCType<DesertNuisanceHead>(),
|
||||
NPCType<DriedSeekerHead>(),
|
||||
NPCType<CrabShroom>(),
|
||||
NPCType<DankCreeper>(),
|
||||
@@ -2551,9 +2551,9 @@ namespace CalamityMod
|
||||
|
||||
bossMinionList = new List<int>()
|
||||
{
|
||||
NPCType<DesertScourgeHeadSmall>(),
|
||||
NPCType<DesertScourgeBodySmall>(),
|
||||
NPCType<DesertScourgeTailSmall>(),
|
||||
NPCType<DesertNuisanceHead>(),
|
||||
NPCType<DesertNuisanceBody>(),
|
||||
NPCType<DesertNuisanceTail>(),
|
||||
NPCID.SlimeSpiked,
|
||||
NPCID.ServantofCthulhu,
|
||||
NPCType<CrabShroom>(),
|
||||
|
||||
+3
-3
@@ -628,9 +628,9 @@ namespace CalamityMod
|
||||
{ ModContent.NPCType<DesertScourgeHead>(), bitingEnemeyVelocityScale },
|
||||
{ ModContent.NPCType<DesertScourgeBody>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<DesertScourgeTail>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<DesertScourgeHeadSmall>(), bitingEnemeyVelocityScale },
|
||||
{ ModContent.NPCType<DesertScourgeBodySmall>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<DesertScourgeTailSmall>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<DesertNuisanceHead>(), bitingEnemeyVelocityScale },
|
||||
{ ModContent.NPCType<DesertNuisanceBody>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<DesertNuisanceTail>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<CrabulonIdle>(), bitingEnemeyVelocityScale },
|
||||
{ ModContent.NPCType<HiveMindP2>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<PerforatorHive>(), velocityScaleMin },
|
||||
|
||||
@@ -159,10 +159,10 @@ namespace CalamityMod.Events
|
||||
new Boss(ModContent.NPCType<DesertScourgeHead>(), spawnContext: type =>
|
||||
{
|
||||
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, ModContent.NPCType<DesertScourgeHead>());
|
||||
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, ModContent.NPCType<DesertScourgeHeadSmall>());
|
||||
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, ModContent.NPCType<DesertScourgeHeadSmall>());
|
||||
}, permittedNPCs: new int[] { ModContent.NPCType<DesertScourgeBody>(), ModContent.NPCType<DesertScourgeTail>(), ModContent.NPCType<DesertScourgeHeadSmall>(),
|
||||
ModContent.NPCType<DesertScourgeBodySmall>(), ModContent.NPCType<DesertScourgeTailSmall>(), ModContent.NPCType<DriedSeekerHead>(), ModContent.NPCType<DriedSeekerBody>(),
|
||||
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, ModContent.NPCType<DesertNuisanceHead>());
|
||||
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, ModContent.NPCType<DesertNuisanceHead>());
|
||||
}, permittedNPCs: new int[] { ModContent.NPCType<DesertScourgeBody>(), ModContent.NPCType<DesertScourgeTail>(), ModContent.NPCType<DesertNuisanceHead>(),
|
||||
ModContent.NPCType<DesertNuisanceBody>(), ModContent.NPCType<DesertNuisanceTail>(), ModContent.NPCType<DriedSeekerHead>(), ModContent.NPCType<DriedSeekerBody>(),
|
||||
ModContent.NPCType<DriedSeekerTail>() }),
|
||||
|
||||
new Boss(NPCID.CultistBoss, spawnContext: type =>
|
||||
|
||||
@@ -45,14 +45,14 @@ namespace CalamityMod.Items.SummonItems
|
||||
if (CalamityWorld.revenge || CalamityWorld.malice)
|
||||
{
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<DesertScourgeHeadSmall>());
|
||||
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<DesertNuisanceHead>());
|
||||
else
|
||||
NetMessage.SendData(MessageID.SpawnBoss, -1, -1, null, player.whoAmI, ModContent.NPCType<DesertScourgeHeadSmall>());
|
||||
NetMessage.SendData(MessageID.SpawnBoss, -1, -1, null, player.whoAmI, ModContent.NPCType<DesertNuisanceHead>());
|
||||
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<DesertScourgeHeadSmall>());
|
||||
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<DesertNuisanceHead>());
|
||||
else
|
||||
NetMessage.SendData(MessageID.SpawnBoss, -1, -1, null, player.whoAmI, ModContent.NPCType<DesertScourgeHeadSmall>());
|
||||
NetMessage.SendData(MessageID.SpawnBoss, -1, -1, null, player.whoAmI, ModContent.NPCType<DesertNuisanceHead>());
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
+64
-64
@@ -6,41 +6,38 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.NPCs.DesertScourge
|
||||
{
|
||||
public class DesertScourgeTailSmall : ModNPC
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Desert Scourge");
|
||||
}
|
||||
public class DesertNuisanceBody : ModNPC
|
||||
{
|
||||
public override void SetStaticDefaults() => DisplayName.SetDefault("A Desert Nuisance");
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
npc.GetNPCDamage();
|
||||
npc.width = 32;
|
||||
npc.height = 32;
|
||||
npc.defense = 7;
|
||||
npc.lifeMax = BossRushEvent.BossRushActive ? 35000 : 800;
|
||||
npc.aiStyle = -1;
|
||||
aiType = -1;
|
||||
npc.knockBackResist = 0f;
|
||||
npc.alpha = 255;
|
||||
npc.behindTiles = true;
|
||||
npc.noGravity = true;
|
||||
npc.noTileCollide = true;
|
||||
npc.canGhostHeal = false;
|
||||
npc.HitSound = SoundID.NPCHit1;
|
||||
npc.DeathSound = SoundID.NPCDeath1;
|
||||
npc.netAlways = true;
|
||||
npc.dontCountMe = true;
|
||||
}
|
||||
npc.width = 40;
|
||||
npc.height = 40;
|
||||
npc.defense = 4;
|
||||
npc.lifeMax = BossRushEvent.BossRushActive ? 35000 : 800;
|
||||
npc.aiStyle = -1;
|
||||
aiType = -1;
|
||||
npc.knockBackResist = 0f;
|
||||
npc.alpha = 255;
|
||||
npc.behindTiles = true;
|
||||
npc.noGravity = true;
|
||||
npc.noTileCollide = true;
|
||||
npc.canGhostHeal = false;
|
||||
npc.HitSound = SoundID.NPCHit1;
|
||||
npc.DeathSound = SoundID.NPCDeath1;
|
||||
npc.netAlways = true;
|
||||
npc.dontCountMe = true;
|
||||
}
|
||||
|
||||
public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
public override void AI()
|
||||
{
|
||||
if (npc.ai[2] > 0f)
|
||||
npc.realLife = (int)npc.ai[2];
|
||||
|
||||
@@ -50,7 +47,7 @@ namespace CalamityMod.NPCs.DesertScourge
|
||||
bool shouldDespawn = true;
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType<DesertScourgeHeadSmall>())
|
||||
if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType<DesertNuisanceHead>())
|
||||
{
|
||||
shouldDespawn = false;
|
||||
break;
|
||||
@@ -119,40 +116,43 @@ namespace CalamityMod.NPCs.DesertScourge
|
||||
}
|
||||
}
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
{
|
||||
for (int k = 0; k < 3; k++)
|
||||
{
|
||||
Dust.NewDust(npc.position, npc.width, npc.height, DustID.Blood, hitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (npc.life <= 0)
|
||||
{
|
||||
Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ScourgeTail"), 0.65f);
|
||||
for (int k = 0; k < 10; k++)
|
||||
{
|
||||
Dust.NewDust(npc.position, npc.width, npc.height, DustID.Blood, hitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
public override bool CheckActive()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool CheckActive()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public override bool PreNPCLoot()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool PreNPCLoot()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
{
|
||||
for (int k = 0; k < 3; k++)
|
||||
{
|
||||
Dust.NewDust(npc.position, npc.width, npc.height, DustID.Blood, hitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (npc.life <= 0)
|
||||
{
|
||||
float randomSpread = (float)(Main.rand.Next(-100, 100) / 100);
|
||||
Gore.NewGore(npc.position, npc.velocity * randomSpread * Main.rand.NextFloat(), mod.GetGoreSlot("Gores/ScourgeBody"), 0.65f);
|
||||
Gore.NewGore(npc.position, npc.velocity * randomSpread * Main.rand.NextFloat(), mod.GetGoreSlot("Gores/ScourgeBody2"), 0.65f);
|
||||
Gore.NewGore(npc.position, npc.velocity * randomSpread * Main.rand.NextFloat(), mod.GetGoreSlot("Gores/ScourgeBody3"), 0.65f);
|
||||
for (int k = 0; k < 10; k++)
|
||||
{
|
||||
Dust.NewDust(npc.position, npc.width, npc.height, DustID.Blood, hitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void ScaleExpertStats(int numPlayers, float bossLifeScale)
|
||||
{
|
||||
npc.lifeMax = (int)(npc.lifeMax * 0.7f * bossLifeScale);
|
||||
}
|
||||
public override void ScaleExpertStats(int numPlayers, float bossLifeScale)
|
||||
{
|
||||
npc.lifeMax = (int)(npc.lifeMax * 0.7f * bossLifeScale);
|
||||
}
|
||||
|
||||
public override void OnHitPlayer(Player player, int damage, bool crit)
|
||||
{
|
||||
player.AddBuff(BuffID.Bleeding, 30, true);
|
||||
}
|
||||
}
|
||||
public override void OnHitPlayer(Player player, int damage, bool crit)
|
||||
{
|
||||
player.AddBuff(BuffID.Bleeding, 60, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
+53
-55
@@ -7,41 +7,39 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.NPCs.DesertScourge
|
||||
{
|
||||
public class DesertScourgeHeadSmall : ModNPC
|
||||
{
|
||||
public bool flies = false;
|
||||
public float speed = 0.085f;
|
||||
public float turnSpeed = 0.125f;
|
||||
public int maxLength = 13;
|
||||
bool TailSpawned = false;
|
||||
public class DesertNuisanceHead : ModNPC
|
||||
{
|
||||
public bool flies = false;
|
||||
public float speed = 0.085f;
|
||||
public float turnSpeed = 0.125f;
|
||||
public int maxLength = 13;
|
||||
bool TailSpawned = false;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Desert Scourge");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public override void SetStaticDefaults() => DisplayName.SetDefault("A Desert Nuisance");
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
npc.Calamity().canBreakPlayerDefense = true;
|
||||
npc.GetNPCDamage();
|
||||
npc.defense = 2;
|
||||
npc.width = 60;
|
||||
npc.height = 60;
|
||||
npc.width = 60;
|
||||
npc.height = 60;
|
||||
npc.lifeMax = BossRushEvent.BossRushActive ? 35000 : 800;
|
||||
npc.aiStyle = -1;
|
||||
aiType = -1;
|
||||
npc.knockBackResist = 0f;
|
||||
npc.alpha = 255;
|
||||
npc.behindTiles = true;
|
||||
npc.noGravity = true;
|
||||
npc.noTileCollide = true;
|
||||
npc.HitSound = SoundID.NPCHit1;
|
||||
npc.DeathSound = SoundID.NPCDeath1;
|
||||
npc.netAlways = true;
|
||||
}
|
||||
aiType = -1;
|
||||
npc.knockBackResist = 0f;
|
||||
npc.alpha = 255;
|
||||
npc.behindTiles = true;
|
||||
npc.noGravity = true;
|
||||
npc.noTileCollide = true;
|
||||
npc.HitSound = SoundID.NPCHit1;
|
||||
npc.DeathSound = SoundID.NPCDeath1;
|
||||
npc.netAlways = true;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
public override void AI()
|
||||
{
|
||||
if (npc.ai[2] > 0f)
|
||||
npc.realLife = (int)npc.ai[2];
|
||||
|
||||
@@ -62,10 +60,10 @@ namespace CalamityMod.NPCs.DesertScourge
|
||||
int num3 = maxLength;
|
||||
for (int j = 0; j <= num3; j++)
|
||||
{
|
||||
int num4 = ModContent.NPCType<DesertScourgeBodySmall>();
|
||||
int num4 = ModContent.NPCType<DesertNuisanceBody>();
|
||||
if (j == num3)
|
||||
{
|
||||
num4 = ModContent.NPCType<DesertScourgeTailSmall>();
|
||||
num4 = ModContent.NPCType<DesertNuisanceTail>();
|
||||
}
|
||||
int num5 = NPC.NewNPC((int)(npc.position.X + (float)(npc.width / 2)), (int)(npc.position.Y + (float)npc.height), num4, npc.whoAmI, 0f, 0f, 0f, 0f, 255);
|
||||
Main.npc[num5].ai[2] = (float)npc.whoAmI;
|
||||
@@ -163,8 +161,8 @@ namespace CalamityMod.NPCs.DesertScourge
|
||||
{
|
||||
for (int a = 0; a < 200; a++)
|
||||
{
|
||||
if (Main.npc[a].type == ModContent.NPCType<DesertScourgeHeadSmall>() || Main.npc[a].type == ModContent.NPCType<DesertScourgeBodySmall>() ||
|
||||
Main.npc[a].type == ModContent.NPCType<DesertScourgeTailSmall>())
|
||||
if (Main.npc[a].type == ModContent.NPCType<DesertNuisanceHead>() || Main.npc[a].type == ModContent.NPCType<DesertNuisanceBody>() ||
|
||||
Main.npc[a].type == ModContent.NPCType<DesertNuisanceTail>())
|
||||
{
|
||||
Main.npc[a].active = false;
|
||||
}
|
||||
@@ -381,30 +379,30 @@ namespace CalamityMod.NPCs.DesertScourge
|
||||
}
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
{
|
||||
for (int k = 0; k < 3; k++)
|
||||
{
|
||||
Dust.NewDust(npc.position, npc.width, npc.height, DustID.Blood, hitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (npc.life <= 0)
|
||||
{
|
||||
Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ScourgeHead"), 0.65f);
|
||||
Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ScourgeHead2"), 0.65f);
|
||||
for (int k = 0; k < 10; k++)
|
||||
{
|
||||
Dust.NewDust(npc.position, npc.width, npc.height, DustID.Blood, hitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
for (int k = 0; k < 3; k++)
|
||||
{
|
||||
Dust.NewDust(npc.position, npc.width, npc.height, DustID.Blood, hitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (npc.life <= 0)
|
||||
{
|
||||
Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ScourgeHead"), 0.65f);
|
||||
Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ScourgeHead2"), 0.65f);
|
||||
for (int k = 0; k < 10; k++)
|
||||
{
|
||||
Dust.NewDust(npc.position, npc.width, npc.height, DustID.Blood, hitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void ScaleExpertStats(int numPlayers, float bossLifeScale)
|
||||
{
|
||||
npc.lifeMax = (int)(npc.lifeMax * 0.7f * bossLifeScale);
|
||||
}
|
||||
public override void ScaleExpertStats(int numPlayers, float bossLifeScale)
|
||||
{
|
||||
npc.lifeMax = (int)(npc.lifeMax * 0.7f * bossLifeScale);
|
||||
}
|
||||
|
||||
public override void OnHitPlayer(Player player, int damage, bool crit)
|
||||
{
|
||||
player.AddBuff(BuffID.Bleeding, 180, true);
|
||||
}
|
||||
}
|
||||
public override void OnHitPlayer(Player player, int damage, bool crit)
|
||||
{
|
||||
player.AddBuff(BuffID.Bleeding, 180, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
+59
-65
@@ -6,41 +6,38 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.NPCs.DesertScourge
|
||||
{
|
||||
public class DesertScourgeBodySmall : ModNPC
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Desert Scourge");
|
||||
}
|
||||
public class DesertNuisanceTail : ModNPC
|
||||
{
|
||||
public override void SetStaticDefaults() => DisplayName.SetDefault("A Desert Nuisance");
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
npc.GetNPCDamage();
|
||||
npc.width = 40;
|
||||
npc.height = 40;
|
||||
npc.defense = 4;
|
||||
npc.width = 32;
|
||||
npc.height = 32;
|
||||
npc.defense = 7;
|
||||
npc.lifeMax = BossRushEvent.BossRushActive ? 35000 : 800;
|
||||
npc.aiStyle = -1;
|
||||
aiType = -1;
|
||||
npc.knockBackResist = 0f;
|
||||
npc.alpha = 255;
|
||||
npc.behindTiles = true;
|
||||
npc.noGravity = true;
|
||||
npc.noTileCollide = true;
|
||||
npc.canGhostHeal = false;
|
||||
npc.HitSound = SoundID.NPCHit1;
|
||||
npc.DeathSound = SoundID.NPCDeath1;
|
||||
npc.netAlways = true;
|
||||
npc.dontCountMe = true;
|
||||
}
|
||||
aiType = -1;
|
||||
npc.knockBackResist = 0f;
|
||||
npc.alpha = 255;
|
||||
npc.behindTiles = true;
|
||||
npc.noGravity = true;
|
||||
npc.noTileCollide = true;
|
||||
npc.canGhostHeal = false;
|
||||
npc.HitSound = SoundID.NPCHit1;
|
||||
npc.DeathSound = SoundID.NPCDeath1;
|
||||
npc.netAlways = true;
|
||||
npc.dontCountMe = true;
|
||||
}
|
||||
|
||||
public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
public override void AI()
|
||||
{
|
||||
if (npc.ai[2] > 0f)
|
||||
npc.realLife = (int)npc.ai[2];
|
||||
|
||||
@@ -50,7 +47,7 @@ namespace CalamityMod.NPCs.DesertScourge
|
||||
bool shouldDespawn = true;
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType<DesertScourgeHeadSmall>())
|
||||
if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType<DesertNuisanceHead>())
|
||||
{
|
||||
shouldDespawn = false;
|
||||
break;
|
||||
@@ -119,43 +116,40 @@ namespace CalamityMod.NPCs.DesertScourge
|
||||
}
|
||||
}
|
||||
|
||||
public override bool CheckActive()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
{
|
||||
for (int k = 0; k < 3; k++)
|
||||
{
|
||||
Dust.NewDust(npc.position, npc.width, npc.height, DustID.Blood, hitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (npc.life <= 0)
|
||||
{
|
||||
Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ScourgeTail"), 0.65f);
|
||||
for (int k = 0; k < 10; k++)
|
||||
{
|
||||
Dust.NewDust(npc.position, npc.width, npc.height, DustID.Blood, hitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override bool PreNPCLoot()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public override bool CheckActive()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
{
|
||||
for (int k = 0; k < 3; k++)
|
||||
{
|
||||
Dust.NewDust(npc.position, npc.width, npc.height, DustID.Blood, hitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
if (npc.life <= 0)
|
||||
{
|
||||
float randomSpread = (float)(Main.rand.Next(-100, 100) / 100);
|
||||
Gore.NewGore(npc.position, npc.velocity * randomSpread * Main.rand.NextFloat(), mod.GetGoreSlot("Gores/ScourgeBody"), 0.65f);
|
||||
Gore.NewGore(npc.position, npc.velocity * randomSpread * Main.rand.NextFloat(), mod.GetGoreSlot("Gores/ScourgeBody2"), 0.65f);
|
||||
Gore.NewGore(npc.position, npc.velocity * randomSpread * Main.rand.NextFloat(), mod.GetGoreSlot("Gores/ScourgeBody3"), 0.65f);
|
||||
for (int k = 0; k < 10; k++)
|
||||
{
|
||||
Dust.NewDust(npc.position, npc.width, npc.height, DustID.Blood, hitDirection, -1f, 0, default, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
public override bool PreNPCLoot()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void ScaleExpertStats(int numPlayers, float bossLifeScale)
|
||||
{
|
||||
npc.lifeMax = (int)(npc.lifeMax * 0.7f * bossLifeScale);
|
||||
}
|
||||
public override void ScaleExpertStats(int numPlayers, float bossLifeScale)
|
||||
{
|
||||
npc.lifeMax = (int)(npc.lifeMax * 0.7f * bossLifeScale);
|
||||
}
|
||||
|
||||
public override void OnHitPlayer(Player player, int damage, bool crit)
|
||||
{
|
||||
player.AddBuff(BuffID.Bleeding, 60, true);
|
||||
}
|
||||
}
|
||||
public override void OnHitPlayer(Player player, int damage, bool crit)
|
||||
{
|
||||
player.AddBuff(BuffID.Bleeding, 30, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 660 B After Width: | Height: | Size: 660 B |
@@ -299,9 +299,9 @@ namespace CalamityMod
|
||||
{ ModContent.NPCType<DesertScourgeHead>(), new int[] { 30, 66, 88, 99, 132 } },
|
||||
{ ModContent.NPCType<DesertScourgeBody>(), new int[] { 16, 32, 40, 44, 60 } },
|
||||
{ ModContent.NPCType<DesertScourgeTail>(), new int[] { 12, 24, 30, 32, 42 } },
|
||||
{ ModContent.NPCType<DesertScourgeHeadSmall>(), new int[] { 20, 44, 60, 70, 90 } },
|
||||
{ ModContent.NPCType<DesertScourgeBodySmall>(), new int[] { 14, 28, 32, 36, 45 } },
|
||||
{ ModContent.NPCType<DesertScourgeTailSmall>(), new int[] { 8, 16, 20, 24, 30 } },
|
||||
{ ModContent.NPCType<DesertNuisanceHead>(), new int[] { 20, 44, 60, 70, 90 } },
|
||||
{ ModContent.NPCType<DesertNuisanceBody>(), new int[] { 14, 28, 32, 36, 45 } },
|
||||
{ ModContent.NPCType<DesertNuisanceTail>(), new int[] { 8, 16, 20, 24, 30 } },
|
||||
{ ModContent.NPCType<DriedSeekerHead>(), new int[] { 14, 28, 36, 40, 51 } },
|
||||
{ ModContent.NPCType<DriedSeekerBody>(), new int[] { 8, 16, 20, 24, 30 } },
|
||||
{ ModContent.NPCType<DriedSeekerTail>(), new int[] { 6, 12, 16, 18, 24 } },
|
||||
|
||||
@@ -756,8 +756,8 @@ namespace CalamityMod.World
|
||||
}
|
||||
else if (bossType == ModContent.NPCType<DesertScourgeHead>())
|
||||
{
|
||||
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<DesertScourgeHeadSmall>());
|
||||
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<DesertScourgeHeadSmall>());
|
||||
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<DesertNuisanceHead>());
|
||||
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<DesertNuisanceHead>());
|
||||
}
|
||||
if (bossType == NPCID.DukeFishron)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user