324 int num = this.
netID;
339 if (givenName._stringLength != 0)
383 if (givenName._stringLength != 0)
414 if (num == 0 || num == 0)
694 if (num == 0 || num == 0)
847 int num = this.
netID;
951 if (num == 0 || num == 0)
967 if (num == 0 || num == 0)
1159 if (gameModeData ==
null)
1161 if (gameModeData ==
null)
1200 int num = this.
type;
1207 int num = this.
type;
1216 int num = this.
type;
1264 bool <IsJourneyMode>k__BackingField = gameModeData.<IsJourneyMode>k__BackingField;
1265 if (<IsJourneyMode>k__BackingField)
1267 if (!<IsJourneyMode>k__BackingField)
1290 int num = this.
type;
1386 int num = this.
type;
1393 int num = this.
type;
1400 int num = this.
type;
2031 int num = this.
life;
2040 Vector2 vector = point.ToVector2();
2191 int num = this.
type;
2336 if (this.
ai ==
null)
2363 float num = vector.
Length();
2676 if (-2147483648 == 0)
2681 if (-2147483648 == 0)
2683 if (-2147483648 == 0)
2700 if (-2147483648 == 0)
2705 if (-2147483648 == 0)
2707 if (-2147483648 == 0)
2737 if (this.
ai ==
null)
2751 if (-2147483648 == 0)
2757 if (this.
ai ==
null)
2776 if (-2147483648 == 0)
2781 if (-2147483648 == 0)
2783 if (-2147483648 == 0)
2793 if (-2147483648 == 0)
2798 if (-2147483648 == 0)
2803 if (-2147483648 == 0)
3053 int num = this.
type;
3085 if (this.
ai ==
null)
3195 int num = this.
type;
3388 float num = this.
scale;
3431 int num = this.
type;
3468 int num = this.
type;
3495 bool flag = point ==
point2;
3709 bool flag = tile.
active();
3849 if (
npcID != 0 && num != 0)
3878 int num = this.
type;
3904 if (this.
ai ==
null)
4055 if (this.direction == 0)
4065 if (direction3 == 0)
4078 if (this.
ai ==
null)
4300 float x =
proj.position.X;
4301 float y =
proj.position.Y;
4302 float x2 =
proj.position.X;
4303 float y2 =
proj.position.Y;
4318 float val =
proj.ai.val1;
4388 int num = this.
type;
4439 int num = this.
type;
4793 int num = this.
type;
4824 int num = this.
type;
5048 while (array ==
null)
5066 int num = this.
type;
5067 if (this.
ai ==
null)
5092 int num = this.
type;
5120 bool flag = this.
boss;
5133 if (spawnedFromStatue)
5188 int num = this.
type;
5216 int num = this.
type;
5259 bool flag = tile.
active();
5314 ushort wall = tile.
wall;
5352 int num = this.
type;
5425 int num = this.
type;
5426 if (closestPlayer.
RollLuck(6) == 0)
5442 if (statManaMax == 0)
5457 if (statLifeMax == 0)
5463 if (closestPlayer.
RollLuck(2) == 0)
5474 if (statManaMax2 == 0)
5489 bool flag = this.
midas;
5633 int num = this.
netID;
5698 if (
"Game.EnemiesDefeatedByAnnouncement" ==
null)
5701 if (
"Game.EnemiesDefeatedByAnnouncement" !=
null)
5703 if (
"Game.EnemiesDefeatedByAnnouncement" ==
null)
5707 if (
"Game.EnemiesDefeatedByAnnouncement" ==
null)
5738 int num = this.
netID;
5842 if (num == 0 || num == 0)
5851 if (num == 0 || num == 0)
5913 ushort wall = tile.
wall;
6089 if (num != 0 && num != 0)
6469 int num2 = num.m_value;
6473 if (num == 0 || num == 0)
6693 int num = this.
type;
6871 float num = vector.
Length();
6920 int num = this.
type;
6939 int num = this.
life;
7108 if (num == 0 || num == 0)
7414 int num = this.
type;
7487 int num = this.
type;
7515 int num = this.
type;
7786 if (!flag2 || !
flag2)
7802 if (!flag3 || !
flag3)
7806 if (!flag4 || !
flag4)
8789 if (num32 != 0 ||
num32 == 0)
8857 float num = this.
value;
8867 int num = this.
type;
8947 int num = this.
type;
8985 int num = this.
type;
9076 int num = this.
type;
9148 int num = this.
life;
9185 float x = this.velocity.
X;
9186 float y = this.velocity.
Y;
9230 float y3 = this.position.
Y;
9239 int num = this.
type;
9424 int num = this.
type;
9469 int num = this.
type;
9779 if (
"TaxCollector" ==
null)
9782 if (
"TaxCollector" ==
null)
9785 if (
"Merchant" ==
null)
9788 if (
"Merchant" ==
null)
9790 if (
"Merchant" ==
null)
9799 if (
"Merchant" !=
null)
9806 if (
"Merchant" ==
null)
9809 if (
"Merchant" ==
null)
9812 if (
"Steampunker" ==
null)
9815 if (
"Steampunker" !=
null)
9817 if (
"Steampunker" ==
null)
9826 if (
"Steampunker" ==
null)
9834 if (
"Steampunker" ==
null)
9912 if (
"AnglerChatter." ==
null)
9915 if (
"AnglerChatter." ==
null)
9918 if (
"AnglerChatter." ==
null)
9925 if (
"GolferQuestsChatterMaster" ==
null)
9928 if (
"GolferQuestsChatterMaster" ==
null)
9931 if (
"GolferQuestsChatterMaster" ==
null)
9934 if (
"GolferQuestsChatterMaster" ==
null)
9947 return "AnglerSpecialText.BloodMoonFishing";
9969 if (
"Mechanic" ==
null)
9972 if (
"Mechanic" ==
null)
9976 if (
"Mechanic" ==
null)
9984 if (
"Mechanic" ==
null)
9987 if (
"GoblinTinkerer" ==
null)
9995 if (
"GoblinTinkerer" ==
null)
10004 if (
"GoblinTinkerer" ==
null)
10009 if (<Value>k__BackingField ==
null)
10013 if (<Value>k__BackingField !=
null)
10018 if (
"Wizard" ==
null)
10021 if (
"Wizard" !=
null)
10023 if (
"Wizard" ==
null)
10032 if (
"Wizard" ==
null)
10036 if (
"Wizard" ==
null)
10042 if (
"Wizard" ==
null)
10046 if (
"Wizard" ==
null)
10052 if (
"Wizard" ==
null)
10056 if (
"Wizard" ==
null)
10064 if (
"Wizard" ==
null)
10068 if (
"Wizard" ==
null)
10076 if (
"Wizard" ==
null)
10080 if (
"Wizard" ==
null)
10088 if (
"Wizard" ==
null)
10092 if (
"Wizard" ==
null)
10100 if (
"Wizard" ==
null)
10104 if (
"PartyGirl" ==
null)
10114 if (
"GolferQuestsChatterApprentice" ==
null)
10117 if (
"GolferQuestsChatterApprentice" ==
null)
10120 if (
"GolferQuestsChatterApprentice" ==
null)
10128 if (
"GolferQuestsChatterApprentice" ==
null)
10131 if (
"GolferQuestsChatterBeginner" ==
null)
10138 int numberOfDeathsPVE;
10141 if (
"GolferQuestsChatterApprentice" ==
null)
10146 if (numberOfDeathsPVE == 0)
10152 if (numberOfDeathsPVE == 0)
10155 if (numberOfDeathsPVE == 0)
10160 if (numberOfDeathsPVE == 0)
10168 if (numberOfDeathsPVE == 0)
10176 if (numberOfDeathsPVE == 0)
10182 if (numberOfDeathsPVE == 0)
10253 if (
array.<Value>k__BackingField ==
null)
10306 text2 =
"GolferQuestsChatterJourneyman" +
".";
10364 if (
"GuideSpecialText.Lantern1" ==
null)
10367 if (
"GuideSpecialText.Lantern1" ==
null)
10371 if (
"GuideSpecialText.Lantern1" ==
null)
10388 return "NurseSpecialText.DeathCount";
10452 if (
"GuideChatter.Chatter_1" ==
null)
10456 if (
"GuideChatter.Chatter_1" ==
null)
10465 return base.MemberwiseClone();
10513 if (
"SpecialText.Party" ==
null)
10516 if (
"SpecialText.Party" !=
null)
10518 if (
"SpecialText.Party" ==
null)
10537 if (
"SpecialText.Rain" ==
null)
10555 if (
"SpecialText.Windy" ==
null)
10627 if (direction == 0)
10683 if (
"name:" ==
null ||
"name:" !=
null)
10688 if ((typeName ==
null || typeName !=
null) && (
", active:" ==
null ||
", active:" !=
null) && (
text ==
null ||
text !=
null) && (
", whoAmI:" ==
null ||
", whoAmI:" !=
null) && (text2 ==
null || text2 !=
null))
class f__AnonymousType0<< Count > j__TPar
static int Sign(double value)
static byte Max(byte val1, byte val2)
static bool DestroyChest(int X, int Y)
static int FindChest(int X, int Y)
static bool SolidTiles(Vector2 position, int width, int height)
static void CheckMechaMayhem(int justKilled=-1)
static void NotifyNPCKilled(NPC npc)
static void NotifyProgressionEvent(int eventID)
static CreativePowerManager Instance
bool GetShouldDisableSpawnsFor(int playerIndex)
static void TryStartingCreditsRoll()
static Color GetPortalColor(int colorIndex)
static int FromNetId(int id)
static int BannerToItem(int banner)
static int NPCtoBanner(int i)
static int BannerToNPC(int i)
static string GetNPCNameValue(int netID)
static string dialog(int l, bool english=false)
static object CreateDialogSubstitutionObject([Optional] NPC npc)
static string PrincessChat(NPC npc)
static LanguageSearchFilter CreateDialogFilter(string startsWith, object substitutions)
static LocalizedText GetNPCName(int netID)
static Color GetColor(Point tileCoords)
static void AddLight(Vector2 position, Vector3 rgb)
static LocalizedText[] FindAll(Regex regex)
static string GetTextValue(string key)
static string GetTextValueWith(string key, object obj)
string FormatWith(object obj)
static NetworkText FromLiteral(string text)
static bool anglerQuestFinished
static bool AnyPlayerReadyToFightKingSlime()
static void NewText(string newText, byte R=255, byte G=255, byte B=255)
static bool NetClientOnly
static Microsoft.Xna.Framework.Graphics.Color hslToRgb(Microsoft.Xna.Framework.Vector3 hslVector)
static Player LocalPlayer
static bool Spawning_FlyingAntlionCheck(int x, int y)
void AI_114_Dragonflies()
NPCSpawnParams GetMatchingSpawnParams()
void AI_117_BloodNautilus()
void UpdateNPC_CritterSounds()
static void SpawnNPC_SpawnFrog(int spawnTileX, int spawnTileY, int plr)
void TweakSwingStats(int swingMax, int swingCurrent, int aimDir, Rectangle itemRectangle)
static bool downedChristmasSantank
static ? float TryFindingFloor(Vector2 searchStartPositionInWorld, int searchRange, [Out] int tilesTraveled)
bool drippingSparkleSlime
static int ladyBugBadLuckTime
static int GetDestroyerSegmentsCount()
int checkArmorPenetration(int armorPenetration, float armorPenetrationPercent)
static bool downedTowerSolar
static int TypeToDefaultHeadIndex(int type)
void SpawnWithHigherTime(int timeMult)
static CoinLossRevengeSystem RevengeManager
void Collision_MoveSnailOnSlopes()
void UpdateNPC_BuffApplyDOTs()
void HealEffect(int healAmount, bool broadcast=true)
static string GetFullnameByID(int npcID)
int FindBuffIndex(int type)
void ScaleStats_ApplyGameMode(GameModeData gameModeData)
static void ResetNetOffsets()
static void GiveTownUniqueDataToNPCsThatNeedIt(int Type, int nextNPC)
void UpdateNPC_BuffSetFlags(bool lowerBuffTime=true)
const int NaturalMoonlordCountdownTime
void ScaleStats_ApplyExpertTweaks()
void SpawnStardustMark_StardustWorm()
bool HittableForOnHitRewards()
static void GetStatScalingFactors(int numPlayers, [Out] float balance, [Out] float boost)
NetworkText GetTypeNetName()
Color GetMagicAuraColor()
bool ShouldBestiaryGirlBeLycantrope()
int GetAttackDamage_ForProjectiles_MultiLerp(float normalDamage, float expertDamage, float masterDamage)
static bool AnyHelpfulFairies()
static int CountNPCS(int Type)
static int stinkBugChance
static bool SpawnAllowed_Nurse()
static string firstNPCName(int npcType)
bool DoesntDespawnToInactivity()
static void UpdateFoundActiveNPCs()
static void ResetRemixHax()
static void OnGameEventClearedForTheFirstTime(int gameEventId)
static bool unlockedSlimeRainbowSpawn
void AI_107_ImprovedWalkers()
static int LunarShieldPowerExpert
static bool unlockedSlimeGreenSpawn
static bool downedTowerVortex
static bool downedMechBoss2
void AI_007_FindGoodRestingSpot(int myTileX, int myTileY, [Out] int floorX, [Out] int floorY)
void AI_001_SetRainbowSlimeColor()
void AI_120_HallowBoss_DashTo(Vector2 targetPosition)
long GoodRestingTileCacheTileState
void Teleport(Vector2 newPos, int Style=0, int extraInfo=0)
static int FindFrame_FromSequence(int sequenceFrame, int[] frames)
bool AI_007_TownEntities_CheckIfWillDrown(bool currentlyDrowning)
static bool downedFishron
void DiscourageDespawn(int despawnTime)
void CheckProgressPumpkinMoon()
static bool MechSpawn(float x, float y, int type)
static bool unlockedSlimePurpleSpawn
static bool NearSpikeBall(int x, int y)
static int ShieldStrengthTowerNebula
void EncourageDespawn(int despawnTime)
static bool savedTaxCollector
void Collision_MoveSandshark(bool fall, Vector2 cPosition, int cWidth, int cHeight)
void GetTileCollisionParameters([Out] Vector2 cPosition, [Out] int cWidth, [Out] int cHeight)
static int MoonLordFightingDistance
static void SpawnBoss(int spawnPositionX, int spawnPositionY, int Type, int targetPlayerIndex)
bool Boss_CanShootExtraAt(int playerIndex, int rotationIndexToAttack, int rotationSize, float attackScanDistance, bool alwaysSkipMainTarget=true)
bool GoodRestingTileCacheFound
static void CatchNPC(int i, int who=-1)
static int maximumAmountOfTimesLadyBugRainCanStack
static readonly int maxBuffs
static void setFireFlyChance()
static int ShieldStrengthTowerSolar
void AI_124_DeerclopsLeg()
static bool WoFKilledToday
void AI_108_DivingFlyer()
bool Collision_DecideFallThroughPlatforms()
int lifeRegenExpectedLossPerSecond
static int ignorePlayerInteractions
bool CanApplyHunterPotionEffects()
static int SpawnNPC_SpawnLavaBaitCritters(int spawnTileX, int spawnTileY)
static int ShieldStrengthTowerMax
void BigMimicSpawnSmoke()
static bool TowerActiveStardust
static bool SpawnAllowed_Demolitionist()
static void HaveDryadDoStardewAnimation()
void SetDefaultsFromNetId(int id, [Optional] NPCSpawnParams spawnparams)
IEntitySource GetSpawnSource_NPCHurt()
void Collision_MoveNormal(bool fall, Vector2 cPosition, int cWidth, int cHeight)
static void UnlockOrExchangePet(bool petBoughtFlag, int npcType, string textKeyForLicense, int netMessageData)
Color GetAlpha(Color newColor)
static readonly int[] _deerclopsAttack3Frames
void moneyPing(Vector2 pos)
void GetBirdFlightRecommendation(int downScanRange, int upRange, Point tCoords, [Out] bool goDownwards, [Out] bool goUpwards)
void ApplyTileCollision(bool fall, Vector2 cPosition, int cWidth, int cHeight)
void TargetClosest(bool faceTarget=true)
static int butterflyChance
static readonly int[,] MoonLordAttacksArray2
NetworkText GetFullNetName()
static bool unlockedMerchantSpawn
static Color AI_121_QueenSlime_GetDustColor()
Vector2 GetMechQueenCenter()
float GetMoonEventPointScalar()
static readonly int AFKTimeNeededForNoWorms
static int FindFirstNPC(int Type)
void UpdateNPC_BuffApplyVFX()
bool AI_120_HallowBoss_IsGenuinelyEnraged()
static bool SpawnAllowed_ArmsDealer()
static bool ShouldEmpressBeEnraged()
float takenDamageMultiplier
static bool unlockedSlimeBlueSpawn
bool ShouldFaceTarget(NPCUtils.TargetSearchResults searchResults, [Optional] NPCUtils.TargetType? overrideTargetType)
static bool downedMechBossAny
void SetDefaults_ForNetId(int Type, float scaleOverride)
void AI_123_Deerclops_Movement(bool haltMovement, bool goHome)
static int ladyBugRainTime
static bool downedEmpressOfLight
void AI_121_QueenSlime_FlyMovement()
void DropTombstoneTownNPC(NetworkText deathText)
int townNpcVariationIndex
static void SpawnWOF(Vector2 pos)
void AI_111_DD2LightningBug()
static int[,] cavernMonsterType
void UpdateHomeTileState(bool homeless, int x, int y)
static int FindFrame_Deerclops_GetAttack2Frame(int sequenceFrame)
void AI_112_FairyCritter()
bool GetFairyTreasureCoords([Out] Point treasureCoords)
static int GetEaterOfWorldsSegmentsCount()
static bool unlockedDyeTraderSpawn
int GetShootingFrame(float circleY)
NPCAimedTarget GetTargetData(bool ignorePlayerTankPets=true)
static int GetAvailableNPCSlot(int Type, int startIndex)
bool CanBeReplacedByOtherNPCs
void DropItemInstanced(Vector2 Position, Vector2 HitboxSize, int itemType, int itemStack=1, bool interactionRequired=true)
static int[] MoonEventRequiredPointsPerWaveLookup
static void ResetBadgerHatTime()
static bool downedHalloweenKing
void AI_87_BigMimic_FireStuffCannonBurst()
bool AI_003_Gnomes_ShouldTurnToStone()
bool dontTakeDamageFromHostiles
void TryTrackingTarget(float distance, float realDist, bool t, int tankTarget, int j)
void DoDeathEvents_AdvanceSlimeRain(Player closestPlayer)
static int MaxMoonLordCountdown
static void ResetKillCount()
float shimmerMovementSpeed
void CountKillForAchievements()
void TargetClosest_WOF(bool faceTarget=true)
bool ShouldRunAway(NPCAimedTarget targetData, bool isChasing)
const int goldCritterChance
static bool downedSlimeKing
bool needsUniqueInfoUpdate
void PopAllAttachedProjectilesAndTakeDamageForThem()
void getGoodAdjustments()
static bool unlockedPrincessSpawn
bool TryTeleportingCaughtMysticFrog()
static bool RerollVariationForNPCType(int npcType)
void UpdateNPC_CastLights()
static int GetStackForSlimeItemDrop(int item)
Color GetShimmerColor(Color newColor)
static int GetEaterOfWorldsSegmentsCountByGamemode(int gamemode)
static int SpawnNPC_TryFindingProperGroundTileType(int spawnTileType, int x, int y)
void CheckProgressFrostMoon()
static bool TowerActiveVortex
static int[,] InitializeMoonLordAttacks2()
void AI_87_BigMimic_ShootItem(int itemID)
void CreateBrickBoxForWallOfFlesh()
static int GetNPCInvasionGroup(int npcID)
bool CanBeChasedBy([Optional] object attacker, bool ignoreDontTakeDamage=false)
static int defaultSpawnRate
void AttemptToConvertNPCToEvil(bool crimson)
bool AI_007_TownEntities_IsInAGoodRestingSpot(int tileX, int tileY, int idealRestX, int idealRestY)
void AI_123_Deerclops_FindSpotToSpawnSpike(int howMany, int whichOne, int x, int y)
static bool unlockedTruffleSpawn
static bool empressRageMode
static void SpawnFaelings(int plr)
static bool IsDeerclopsHostile()
const float nameOverDistance
static bool combatBookWasUsed
static IEntitySource GetSpawnSource_NPCCatch(int whoCatchedIt)
void getZenithSeedAdjustmentsBeforeEverything()
static readonly int[] _deerclopsAttack1Frames
void SetDefaults(int Type, [Optional] NPCSpawnParams spawnparams)
void TargetClosestUpgraded(bool faceTarget=true, [Optional] Vector2? checkPosition)
void AI_002_FloatingEye()
void NPCLoot_DropMoney(Player closestPlayer)
static bool[] ShimmeredTownNPCs
void UpdateNPC_UpdateGravity([Out] float maxFallSpeed)
void UpdateNPC_BuffFlagsReset()
void NPCLoot_DropCommonLifeAndMana(Player closestPlayer)
static bool downedTowerStardust
int FindClosestPlayer([Out] float distanceToPlayer)
static int LunarShieldPowerNormal
void DoDeathEvents_SummonDungeonSpirit(Player closestPlayer)
static float totalInvasionPoints
static bool unlockedSlimeRedSpawn
static bool downedMechBoss3
void CountKillForBannersAndDropThem()
void ApplyInteraction(int player)
static int LunarShieldPowerMax
static bool BusyWithAnyInvasionOfSorts()
static void HealEffect(Rectangle r, int healAmount, bool broadcast=true)
void UpdateNetworkCode(int i)
void SpawnPassiveShadowHands(float lifePercent, int shadowHandDamage)
static int ShieldStrengthTowerStardust
static int ReleaseNPC(int x, int y, int Type, int Style, int who)
void AI_007_TownEntities()
static bool downedPirates
void GetLifeStats([Out] int statLife, [Out] int statLifeMax)
static int ShieldStrengthTowerVortex
void NPCLoot_DropItems(Player closestPlayer)
void AI_007_TownEntities_Shimmer_TeleportToLandingSpot()
static bool GetNPCLocation(int i, bool seekHead, bool averageDirection, [Out] int index, [Out] Vector2 pos)
static bool downedMoonlord
static void SlimeRainSpawns(int plr)
void LazySetLiquidMovementDD2()
double StrikeNPC(int Damage, float knockBack, int hitDirection, bool crit=false, bool noEffect=false, bool fromNet=false)
static bool IsValidSpawningGroundTile(int x, int y)
static bool unlockedPartyGirlSpawn
void UpdateNPC_UpdateTrails()
static bool PreventJojaColaDialog
static bool IsMechQueenUp
void AI_065_Butterflies()
void SetDefaultsKeepPlayerInteraction(int Type)
static float GetBalance()
static bool FindTreeBranch(int landX, int landY, [Out] int treeBranchX, [Out] int treeBranchY)
static bool BigMimicSummonCheck(int x, int y, Player user)
void AI_007_TownEntities_GetWalkPrediction(int myTileX, int homeFloorX, bool canBreathUnderWater, bool currentlyDrowning, int tileX, int tileY, [Out] bool keepwalking, [Out] bool avoidFalling)
bool GetWereThereAnyInteractions()
static bool DespawnEncouragement_AIStyle2_FloatingEye_IsDiscouraged(int npcID, Vector2 npcPosition, int target=255)
static bool AnyDanger(bool quickBossNPCCheck=false, bool ignorePillarsAndMoonlordCountdown=false)
static string GetFirstNPCNameOrNull(int npcType)
static bool TowerActiveSolar
void CopyInteractions(NPC npc)
void Collision_MoveSolarSroller(bool fall, Vector2 cPosition, int cWidth, int cHeight)
void NPCLoot_DropHeals(Player closestPlayer)
static bool AnyNPCs(int Type)
static int SpawnNPC_GetGemBunnyToSpawn()
static int FindFrame_Deerclops_GetAttack1Frame(int sequenceFrame)
void SetNetShimmerEffect()
static void TransformCopperSlime(int npcIndex)
bool AI_AttemptToFindTeleportSpot(Vector2 chosenTile, int targetTileX, int targetTileY, int rangeFromTargetTile=20, int telefragPreventionDistanceInTiles=5, int solidTileCheckFluff=1, bool solidTileCheckCentered=false, bool teleportInAir=false)
static bool SpawnNPC_CheckToSpawnUndergroundFairy(int spawnTileX, int spawnTileY, int plr)
void AI_069_DukeFishron()
void AI_124_ElderSlimeChest()
static int GetActivePlayerCount()
int GetAttackDamage_LerpBetweenFinalValues(float normalDamage, float expertDamage)
const int NPC_TARGETS_START
bool ExcludedFromDeathTally()
void AI_120_HallowBoss_DoMagicEffect(Vector2 spot, int effectType, float progress)
LegacySoundStyle DeathSound
Point GoodRestingTileCacheResult
bool DoesntDespawnToInactivityAndCountsNPCSlots()
IEntitySource GetSpawnSourceForProjectileNPC()
static bool CanReleaseNPCs(int who)
static bool IsADeerclopsNearScreen()
void ScaleStats_ApplyMultiplayerStats(int numPlayers, float balance, float boost, float bossAdjustment)
NetworkText GetGivenOrTypeNetName()
static void SetRemixHax()
static bool downedQueenBee
static bool downedHalloweenTree
double StrikeNPCNoInteraction(int Damage, float knockBack, int hitDirection, bool crit=false, bool noEffect=false, bool fromNet=false)
void Collision_WalkDownSlopes()
static int RollDragonflyType(int tileType=2)
static Color buffColor(Color newColor, float R, float G, float B, float A)
Color GetBestiaryEntryColor()
static void FairyEffects(Vector2 Position, int type)
void TransformVisuals(int oldType, int newType)
static bool downedChristmasTree
static bool WouldBeEncouragedToDespawn(int aistyle, int type)
int GetBossHeadTextureIndex()
static int RerollDryadText
static string getNewNPCNameInner(int npcType)
static bool unlockedSlimeOldSpawn
void AI_123_Deerclops_ShootRubbleUp(NPCAimedTarget targetData, Point sourceTileCoords, int howMany, int distancedByThisManyTiles, float upBiasPerSpike, int whichOne)
static bool downedGoblins
void AI_122_PirateGhost()
static readonly int[] _deerclopsAttack2Frames
void AI_000_TransformBoundNPC(int playerID, int npcType)
string GetBestiaryCreditId()
void DelBuff(int buffIndex)
static int AI_001_Slimes_GenerateItemInsideBody(bool isBallooned)
void SubAI_HandleTemporaryCatchableNPCPlayerInvulnerability()
void DoDeathEvents_CelebrateBossDeath()
static void SpawnSkeletron(int onWho)
static int FindFrame_Deerclops_GetAttack3Frame(int sequenceFrame)
const float nameOverIncrement
Vector2 GetFairyCircleOffset(float elapsedTime, float circleRotation, float circleHeight)
static bool Spawning_SandstoneCheck(int x, int y)
void AI_125_ClumsySlimeBalloon()
IEntitySource GetSpawnSourceForNPCFromNPCAI()
float shimmerTransparency
static int NewNPC(IEntitySource source, int X, int Y, int Type, int Start=0, float ai0=0f, float ai1=0f, float ai2=0f, float ai3=0f, int Target=255)
static void SpawnOnPlayer(int plr, int Type)
IEntitySource GetItemSource_Misc(int itemSourceId)
SpriteEffects GetBossHeadSpriteEffects()
void AI_084_LunaticCultist()
void AI_116_WaterStriders()
static bool peddlersSatchelWasUsed
void FishTransformationDuringRain()
int catchableNPCTempImmunityCounter
static int offSetDelayTime
static bool SpawnMechQueen(int onWhichPlayer)
IEntitySource GetItemSource_Loot()
static IEntitySource GetBossSpawnSource(int targetPlayerIndex)
static float cloudAlphaHax
static void LadyBugKilled(Vector2 Position, bool GoldLadyBug=false)
static bool SpawnAllowed_Merchant()
override string ToString()
static bool AnyoneNearCultists()
bool Collision_LavaCollision()
void AI_007_AttemptToPlayIdleAnimationsForPets(int petIdleChance)
static bool EoCKilledToday
int GetAttackDamage_ScaledByStrength(float normalDamage)
void CheckActive_WormSegments()
void ReflectProjectile(Projectile proj)
void LadyBugLuck(int plr, bool GoldLadyBug=false)
static void ClearFoundActiveNPCs()
void AI_113_WindyBalloon()
static string getNewNPCName(int npcType)
int GetAttackDamage_ForProjectiles(float normalDamage, float expertDamage)
void BloodNautilus_CallForHelp()
static int fireFlyFriendly
static int MoonLordCountdown
void AddIntoPlayersTownNPCSlots()
void Collision_MoveSlopesAndStairFall(bool fall)
static int[] lazyNPCOwnedProjectileSearchArray
bool AI_120_HallowBoss_IsInPhase2()
static bool combatBookVolumeTwoWasUsed
void HitEffect(int hitDirection=0, double dmg=10.0)
int AI_123_Deerclops_TryMakingSpike_FindBestY(Point sourceTileCoords, int x)
void BloodNautilus_GetMouthPositionAndRotation([Out] Vector2 mouthPosition, [Out] Vector2 mouthDirection)
Tuple< Vector2, float > GetSwingStats(int swingMax, int swingCurrent, int aimDir, int itemWidth, int itemHeight)
void Collision_MoveWhileWet(Vector2 oldDryVelocity, float Slowdown=0.5f)
static bool unlockedNurseSpawn
static IEntitySource GetSpawnSource_NPCRelease(int whoReleasedIt)
void Collision_MoveBlazingWheel()
void SpawnStardustMark_StardustTower()
static bool downedGolemBoss
static bool LunarApocalypseIsUp
void TrySyncingUniqueTownNPCData(int npcIndex)
bool CanReflectProjectile(Projectile proj)
static bool downedMartians
float GetBossHeadRotation()
static bool TowersDefeated
void ReflectProjectiles(Rectangle myRect)
void PlayerInteraction(int player)
int TranslatedTargetIndex
void DoDeathEvents(Player closestPlayer)
static bool downedChristmasIceQueen
void DoDeathEvents_BeforeLoot(Player closestPlayer)
static bool downedAncientCultist
float GetAttackDamage_LerpBetweenFinalValuesFloat(float normalDamage, float expertDamage)
void MakeTransitionEffectsForTextureChanges(int oldAltTexture, int currentAltTexture)
void Transform(int newType)
void DoDeathEvents_DropBossPotionsAndHearts()
static bool FindCattailTop(int landX, int landY, [Out] int cattailX, [Out] int cattailY)
static readonly int[,,,] MoonLordAttacksArray
void GetHurtByOtherNPCs(bool[] acceptableNPCIDs)
bool GetSpecialEventTextIfNotEmpty(string specialTextKey, object substitutes, string specialEventText)
static int SpawnNPC_GetGemSquirrelToSpawn()
IEntitySource GetSpawnSource_ForProjectile()
static bool[] npcsFoundForCheckActive
static void SetWorldSpecificMonstersByWorldID()
bool IsNPCValidForBestiaryKillCredit()
void AI_123_Deerclops_MakeSpikesForward(int AISLOT_PhaseCounter, NPCAimedTarget targetData)
static IEntitySource GetSpawnSourceForTownSpawn()
static bool unlockedSlimeYellowSpawn
static bool downedPlantBoss
const int ItemMoonlordCountdownTime
static int ladyBugGoodLuckTime
bool NPCCanStickToWalls()
void DropEoWLoot(bool fromCheckDead=true)
static bool DespawnEncouragement_AIStyle3_Fighters_CanBeBusyWithAction(int npcID)
static bool savedBartender
static bool TooWindyForButterflies
static bool SpawnAllowed_DyeTrader()
bool Collision_WaterCollision(bool lava)
void UpdateNPC_BloodMoonTransformations()
void UpdateNPC_BuffClearExpiredBuffs()
static int defaultMaxSpawns
bool HasSpecialEventText(string specialTextCategoryKey, [Out] string specialEventText)
void AI_007_TownEntities_TeleportToHome(int homeFloorX, int homeFloorY)
void ScaleStats(int? activePlayersCount, GameModeData gameModeData, float? strengthOverride)
static void TransformElderSlime(int npcIndex)
void UpdateNPC_SoulDrainDebuff()
static bool unlockedDemolitionistSpawn
static IEntitySource GetSpawnSourceForNaturalSpawn()
void SetDefaults_ForNetId(int Type, NPCSpawnParams spawnparams, float scaleOverride)
void AI_005_EaterOfSouls()
void getTenthAnniversaryAdjustments()
PartyHatColor GetPartyHatColor()
static int brainOfGravity
void GetImmuneTime(int fromWho, int time)
static bool TowerActiveNebula
void ScaleStats_UseStrengthMultiplier(float strength)
static bool DespawnEncouragement_AIStyle3_Fighters_NotDiscouraged(int npcID, Vector2 position, NPC npcInstance)
static void SetEventFlagCleared(bool eventFlag, int gameEventId)
Color GetNPCColorTintedByBuffs(Color npcColor)
void AI_123_Deerclops_TryMakingSpike(Point sourceTileCoords, int dir, int howMany, int whichOne, int xOffset)
static bool SpawnTileOrAboveHasAnyWallInSet(int x, int y, bool[] wallTypes)
void SetTargetTrackingValues(bool faceTarget, float realDist, int tankTarget)
NPC AI_113_WindyBalloon_GetSlaveNPC()
NetworkText GetGivenNetName()
static bool downedMechBoss1
void SimpleFlyMovement(Vector2 desiredVelocity, float moveSpeed)
Vector2? AI_007_TownEntities_Shimmer_ScanForBestSpotToLandOn()
void Collision_MoveWhileDry()
int WhoAmIToTargettingIndex
static int GetBrainOfCthuluCreepersCount()
bool IsABestiaryIconDummy
void AI_123_Deerclops_MakeSpikesBothSides(int AISLOT_PhaseCounter, NPCAimedTarget targetData)
static bool downedDeerclops
void Collision_MoveStardustCell(bool fall, Vector2 cPosition, int cWidth, int cHeight)
int statsAreScaledForThisManyPlayers
Color GetColor(Color newColor)
void AI_007_TryForcingSitting(int homeFloorX, int homeFloorY)
Point GoodRestingTileCacheOrigin
static bool unlockedSlimeCopperSpawn
bool HasLuckTextForWizard([Out] string specialEventText)
static bool SpawnNPC_CheckToSpawnRockGolem(int spawnTileX, int spawnTileY, int plr, int tileType)
static int fireFlyMultiple
static bool unlockedArmsDealerSpawn
void AddBuff(int type, int time, bool quiet=false)
static int GetAvailableAmountOfNPCsToSpawnUpToSlot(int amountWeWant, int highestNPCSlotIndexWeWillPick=100)
void ViolentlySpawnNerdySlime()
static void GetMeleeCollisionData(Rectangle victimHitbox, int enemyIndex, int specialHitSetter, float damageMultiplier, Rectangle npcRect)
void RequestBuffRemoval(int buffTypeToRemove)
static bool downedTowerNebula
static bool downedQueenSlime
LegacySoundStyle HitSound
static int[,,,] InitializeMoonLordAttacks()
void BeHurtByOtherNPC(int npcIndex, NPC thatNPC)
static void setNPCName(string newName, int npcType, bool resetExtras=false)
static void ClearFoundNPCTypesForBestiary()
void UpdateNPC_TeleportVisuals()
int golferScoreAccumulated
static void FindRecipes(bool canDelayCheck=false)
static bool ActiveAndWalkableTile(int i, int j)
static bool SolidTile(short tileSHeader, ushort tileType)
static void CheckAchievement_RealEstateAndTownSlimes()
static bool PlaceTile(int i, int j, int Type, bool mute=false, bool forced=false, int plr=-1, int style=0)
static UnifiedRandom genRand
static void QuickFindHome(int npc)
static bool SolidTileAllowBottomSlope(int i, int j)
static bool InWorld(int x, int y, int fluff=0)
void Intersects(Rectangle value, [Out] bool result)
NPCSpawnParams WithScale(float scaleOverride)