defeating plantera now gives a message about GSS

This commit is contained in:
termigator1359 committed 2020-01-19 18:57:04 -05:00
1 parent 96fe4cfbbc
commit ca1b8b07f8
3 files changed
+12 -7

No files matched your search

+1
View File
@@ -99,6 +99,7 @@ namespace CalamityMod.Localization
new [] { "SandSharkText", "Something stirs in the warm desert sands..." },
new [] { "SandSharkText2", "An enormous apex predator approaches..." },
new [] { "SandSharkText3", "The desert sand shifts intensely!" },
new [] { "CryogenBossText", "Cryogen is derping out!" },
+7 -7
View File
@@ -2703,13 +2703,13 @@ namespace CalamityMod.NPCs
for (int num262 = 0; num262 < num261; num262 = num + 1)
{
int num263 = NPC.NewNPC((int)(npc.position.X + npc.width / 2), (int)(npc.position.Y + npc.height), 1, 0, 0f, 0f, 0f, 0f, 255);
NPC npc = Main.npc[num263];
npc.SetDefaults(-5, -1f);
npc.velocity.X = npc.velocity.X * 2f;
npc.velocity.Y = npc.velocity.Y;
npc.velocity.X += Main.rand.Next(-20, 20) * 0.1f + num262 * npc.direction * 0.3f;
npc.velocity.Y -= Main.rand.Next(0, 10) * 0.1f + num262;
npc.ai[0] = -1000 * Main.rand.Next(3);
NPC npc2 = Main.npc[num263];
npc2.SetDefaults(-5, -1f);
npc2.velocity.X = npc.velocity.X * 2f;
npc2.velocity.Y = npc.velocity.Y;
npc2.velocity.X += Main.rand.Next(-20, 20) * 0.1f + num262 * npc.direction * 0.3f;
npc2.velocity.Y -= Main.rand.Next(0, 10) * 0.1f + num262;
npc2.ai[0] = -1000 * Main.rand.Next(3);
if (Main.netMode == NetmodeID.Server && num263 < 200)
{
+4
View File
@@ -188,6 +188,8 @@ namespace CalamityMod.NPCs
{
string key2 = "Mods.CalamityMod.PlantOreText";
Color messageColor2 = Color.GreenYellow;
string key3 = "Mods.CalamityMod.SandSharkText3";
Color messageColor3 = Color.Goldenrod;
WorldGenerationMethods.SpawnOre(ModContent.TileType<PerennialOre>(), 12E-05, .5f, .7f);
;
@@ -195,10 +197,12 @@ namespace CalamityMod.NPCs
if (Main.netMode == NetmodeID.SinglePlayer)
{
Main.NewText(Language.GetTextValue(key2), messageColor2);
Main.NewText(Language.GetTextValue(key3), messageColor3);
}
else if (Main.netMode == NetmodeID.Server)
{
NetMessage.BroadcastChatMessage(NetworkText.FromKey(key2), messageColor2);
NetMessage.BroadcastChatMessage(NetworkText.FromKey(key3), messageColor3);
}
}