84839 {
84840
84841
84842
84843
84844
84845
84846
84847
84848
84849
84850
84851
84852
84853
84854
84855
84856
84857
84858
84859
84860
84861
84862
84863
84864
84865
84869 {
84871 }
84873 {
84874 case 216:
84876 break;
84877 case 327:
84878 if (Main.pumpkinMoon)
84879 {
84881 }
84882 break;
84883 case 325:
84884 if (Main.pumpkinMoon)
84885 {
84887 }
84888 break;
84889 case 344:
84890 if (Main.snowMoon)
84891 {
84893 }
84894 break;
84895 case 345:
84896 if (Main.snowMoon)
84897 {
84899 }
84900 break;
84901 case 346:
84902 if (Main.snowMoon)
84903 {
84905 }
84906 break;
84907 case 552:
84908 case 553:
84909 case 554:
84911 {
84914 {
84916 }
84917 }
84918 break;
84919 case 555:
84920 case 556:
84921 case 557:
84922 case 558:
84923 case 559:
84924 case 560:
84925 case 561:
84926 case 562:
84927 case 563:
84928 case 564:
84929 case 565:
84930 case 568:
84931 case 569:
84932 case 570:
84933 case 571:
84934 case 572:
84935 case 573:
84936 case 574:
84937 case 575:
84938 case 576:
84939 case 577:
84940 case 578:
84942 {
84944 }
84945 break;
84946 case 412:
84947 case 413:
84948 case 414:
84949 case 415:
84950 case 416:
84951 case 417:
84952 case 418:
84953 case 419:
84954 case 518:
84956 {
84958 }
84959 break;
84960 case 425:
84961 case 426:
84962 case 427:
84963 case 429:
84965 {
84967 }
84968 break;
84969 case 420:
84970 case 421:
84971 case 423:
84972 case 424:
84974 {
84976 }
84977 break;
84978 case 402:
84979 case 405:
84980 case 407:
84981 case 409:
84982 case 411:
84984 {
84986 }
84987 break;
84988 case 517:
84992 WorldGen.MessageLunarApocalypse();
84993 break;
84994 case 422:
84998 WorldGen.MessageLunarApocalypse();
84999 break;
85000 case 507:
85004 WorldGen.MessageLunarApocalypse();
85005 break;
85006 case 493:
85010 WorldGen.MessageLunarApocalypse();
85011 break;
85012 case 245:
85014 break;
85015 case 370:
85017 break;
85018 case 636:
85020 break;
85021 case 668:
85023 break;
85024 case 657:
85026 break;
85027 case 22:
85029 {
85031 }
85032 break;
85033 case 614:
85034 {
85037 {
85039 }
85040 Projectile.NewProjectile(
GetSpawnSource_ForProjectile(),
base.Center.X,
base.Center.Y, 0
f, 0
f, 281,
num2, 0
f, Main.myPlayer, -2
f,
releaseOwner + 1);
85041 break;
85042 }
85043 case 109:
85045 {
85047 if (Main.netMode == 2)
85048 {
85049 NetMessage.SendData(7);
85050 }
85051 }
85052 break;
85053 case 222:
85055 if (Main.netMode == 2)
85056 {
85057 NetMessage.SendData(7);
85058 }
85059 break;
85060 case 439:
85062 WorldGen.TriggerLunarApocalypse();
85063 break;
85064 case 398:
85067 break;
85068 case 50:
85069 if (Main.slimeRain)
85070 {
85071 Main.StopSlimeRain();
85073 }
85075 {
85078 }
85080 if (Main.netMode == 2)
85081 {
85082 NetMessage.SendData(7);
85083 }
85084 break;
85085 case 125:
85086 case 126:
85088 {
85091 }
85092 break;
85093 case 262:
85094 {
85098 {
85099 if (Main.netMode == 0)
85100 {
85101 Main.NewText(Lang.misc[33].Value, 50, byte.MaxValue, 130);
85102 }
85103 else if (Main.netMode == 2)
85104 {
85106 }
85107 }
85108 break;
85109 }
85110 case 4:
85112 break;
85113 case 13:
85114 case 14:
85115 case 15:
85116 case 266:
85118 {
85120 {
85121 WorldGen.spawnMeteor = true;
85122 }
85124 }
85125 break;
85126 case 35:
85128 {
85130 }
85131 break;
85132 case 127:
85134 {
85137 }
85138 break;
85139 case 134:
85141 {
85144 }
85145 break;
85146 case 113:
85147 {
85148 if (Main.netMode == 1)
85149 {
85150 break;
85151 }
85156 {
85157 if (Main.netMode == 0)
85158 {
85159 Main.NewText(Lang.misc[32].Value, 50, byte.MaxValue, 130);
85160 }
85161 else if (Main.netMode == 2)
85162 {
85164 }
85165 }
85167 break;
85168 }
85169 case 661:
85171 {
85174 {
85175 Vector2
vector = base.Center +
new Vector2(0
f, -200
f) + Main.rand.NextVector2Circular(50
f, 50
f);
85177 }
85178 }
85179 break;
85180 }
85182 {
85186 if (Main.netMode == 2)
85187 {
85188 NetMessage.SendData(7);
85189 }
85190 }
85191 }
static void BroadcastChatMessage(NetworkText text, Color color, int excludedPlayer=-1)
Vector2 position
The position of this Entity in world coordinates.
int width
The width of this Entity's hitbox, in pixels.
int height
The height of this Entity's hitbox, in pixels.
static void NotifyProgressionEvent(int eventID)
static bool ShouldDropCrystals()
static void AnnounceGoblinDeath(NPC n)
static NetworkText FromKey(string key, params object[] substitutions)
Creates a NetworkText object from a localization key and optional substitutions. The receiving client...
Represents text that will be sent over the network in multiplayer and displayed to the receiving user...
bool boss
Set to true if the NPC is a boss. Prevents off-screen despawn. Bosses also need [AutoloadBossHead] an...
static bool downedChristmasSantank
Denotes whether or not at least one Santa-NK1 has been defeated in the current world.
static bool downedTowerSolar
Denotes whether or not the Solar Pillar has been defeated at least once in the current world.
void DoDeathEvents_DropBossPotionsAndHearts(ref string typeName)
static bool downedTowerVortex
Denotes whether or not the Vortex Pillar has been defeated at least once in the current world.
static bool downedMechBoss2
Denotes whether or not the Twins have been defeated at least once in the current world.
static bool downedFishron
Denotes whether or not Duke Fishron has been defeated at least once in the current world.
static int ShieldStrengthTowerNebula
static void SpawnBoss(int spawnPositionX, int spawnPositionY, int Type, int targetPlayerIndex)
static bool downedBoss2
Denotes whether or not the Eater of Worlds OR the Brain of Cthulhu have been defeated at least once i...
static int ShieldStrengthTowerSolar
static bool TowerActiveStardust
string TypeName
The TYPE name of this NPC. Type names are the base titles given to any NPC, and are typically shared...
static int FindFirstNPC(int Type)
Returns the index within F:Terraria.Main.npc of the the first active NPC in the world of the given NP...
static bool unlockedSlimeBlueSpawn
static bool downedMechBossAny
Denotes whether or not ANY Mechanical Boss has been defeated at least once in the current world.
static bool downedEmpressOfLight
Denotes whether or not the Empress of Light has been defeated at least once in the current world.
static void SpawnWOF(Vector2 pos)
static bool downedHalloweenKing
Denotes whether or not at least one Pumpking has been defeated in the current world.
void DoDeathEvents_AdvanceSlimeRain(Player closestPlayer)
static bool downedBoss1
Denotes whether or not the Eye of Cthulhu has been defeated at least once in the current world.
static bool downedSlimeKing
Denotes whether or not King Slime has been defeated at least once in the current world.
static bool TowerActiveVortex
void CreateBrickBoxForWallOfFlesh()
static bool downedTowerStardust
Denotes whether or not the Stardust Pillar has been defeated at least once in the current world.
void DoDeathEvents_SummonDungeonSpirit(Player closestPlayer)
static bool downedMechBoss3
Denotes whether or not Skeletron Prime has been defeated at least once in the current world.
static int ShieldStrengthTowerStardust
static int ShieldStrengthTowerVortex
static bool downedMoonlord
Denotes whether or not the Moon Lord has been defeated at least once in the current world.
bool GetWereThereAnyInteractions()
Returns true if any player has damaged this NPC. Individual player participation can be determined by...
static bool TowerActiveSolar
static bool AnyNPCs(int Type)
Returns true if there are any active NPC in the world of the given NPC type (F:Terraria....
int type
The NPC ID of this NPC. The NPC ID is a unique number assigned to each NPC loaded into the game....
static bool downedQueenBee
Denotes whether or not at least one Queen Bee has been defeated in the current world.
static bool downedHalloweenTree
Denotes whether or not at least one Mourning Wood has been defeated in the current world.
bool AnyInteractions()
Returns true if any player has damaged this NPC. Individual player participation can be determined by...
static bool downedChristmasTree
Denotes whether or not at least one Everscream has been defeated in the current world.
static bool downedClown
Denotes whether or not at least one Clown has been killed in the current world. Only used to make th...
static void SpawnOnPlayer(int plr, int Type)
IEntitySource GetItemSource_Loot()
static void SetEventFlagCleared(ref bool eventFlag, int gameEventId)
static bool downedGolemBoss
Denotes whether or not Golem has been defeated at least once in the current world.
static bool LunarApocalypseIsUp
static bool downedChristmasIceQueen
Denotes whether or not at least one Ice Queen has been defeated in the current world.
static bool downedAncientCultist
Denotes whether or not the Lunatic Cultist has been defeated at least once in the current world.
static bool downedBoss3
Denotes whether or not Skeletron has been defeated at least once in the current world.
short releaseOwner
Identifies the player who released this NPC into the world. Used mainly for released critters....
void DoDeathEvents_CelebrateBossDeath(string typeName)
IEntitySource GetSpawnSource_ForProjectile()
static bool downedPlantBoss
Denotes whether or not Plantera has been defeated at least once in the current world.
static bool TowerActiveNebula
static bool downedMechBoss1
Denotes whether or not the Destroyer has been defeated at least once in the current world.
static bool downedDeerclops
Denotes whether or not the Deerclops has been defeated at least once in the current world.
void ViolentlySpawnNerdySlime()
static bool downedTowerNebula
Denotes whether or not the Nebula Pillar has been defeated at least once in the current world.
static bool downedQueenSlime
Denotes whether or not Queen Slime has been defeated at least once in the current world.