280 public static int NewProjectile(
IEntitySource spawnSource,
float X,
float Y,
float SpeedX,
float SpeedY,
int Type,
int Damage,
float KnockBack,
int Owner = -1,
float ai0 = 0f,
float ai1 = 0f,
float ai2 = 0f)
364 bool flag = this.
melee;
564 float x =
ent.position.X;
565 float y =
ent.position.Y;
596 float y2 =
ent.position.Y;
831 bool flag = this.
trap;
890 float num = this.
light;
1199 bool inHoney =
fisher.inHoney;
1260 heightLevel =
fisher.heightLevel;
1261 if (heightLevel == 0)
1263 int rolledEnemySpawn =
fisher.rolledEnemySpawn;
1266 if (
fisher.CanFishInLava)
1268 bool crate =
fisher.crate;
1284 bool legendary =
fisher.legendary;
1348 bool uncommon =
fisher.uncommon;
1360 int questFish =
fisher.questFish;
1371 if (
fisher.fishingLevel == 0)
1374 int fishingLevel =
fisher.fishingLevel;
1375 int waterTilesCount =
fisher.waterTilesCount;
1376 float waterQuality =
fisher.waterQuality;
1377 if (waterTilesCount == 0)
1391 if (heightLevel == 0)
1418 private void FishingCheck_RollDropLevels(
int fishingLevel, [Out]
bool common, [Out]
bool uncommon, [Out]
bool rare, [Out]
bool veryrare, [Out]
bool legendary, [Out]
bool crate)
1497 byte liquid = tile.
liquid;
1524 byte liquid = tile.
liquid;
1613 int num = this.
owner;
1626 int num = this.
alpha;
1789 int num = this.
type;
1937 if (
theChest.item.position !=
null)
1958 bool bankChest =
theChest.bankChest;
2221 int num = this.
alpha;
2243 int num = this.
type;
2394 int num = this.
type;
2448 int num = this.
owner;
2455 if (num != 0 && num == 0 && num == 0 && num == 0)
2592 if (this.
frame == 0)
2600 int num = this.
type;
2728 int num = this.
type;
2739 if (this.
owner == 0)
2744 int num = this.
type;
2776 float y2 = lastVelocity.
Y;
2778 float y4 = lastVelocity.
Y;
2818 if (this.
owner == 0)
2849 int num = this.
type;
2870 int num = this.
type;
2932 int num = this.
alpha;
3093 int num = this.
type;
3170 int num = this.
type;
3223 int num = this.
type;
3327 Vector2 vector = point.ToVector2();
3441 int num = this.
type;
3482 int num = this.
type;
3706 int num = this.
type;
3762 int num = this.
type;
3771 int num = this.
type;
3920 int num =
proj.extraUpdates;
4001 int num = this.
type;
4012 int num = mount.
_type;
4016 float gravDir = master.
gravDir;
4043 if (ownerMinionAttackTargetNPC !=
null)
4089 int num = this.
type;
4204 int num = this.
type;
4225 if (this.
frame == 0)
4261 int num = this.
type;
4410 bool flag = tile.
active();
4425 bool flag = tile.
active();
4656 int num = this.
type;
4693 byte liquid = tile.
liquid;
4702 int num = this.
type;
4783 int num = this.
type;
4798 if (this.
alpha == 0)
4811 if (this.
frame == 0)
4889 int value = num4.m_value;
4920 int num = this.
type;
5007 int num = this.
type;
5049 int num = this.
type;
5067 int num = this.
type;
5130 int num = this.
type;
5142 int num = this.
type;
5167 float num = vector.
Length();
5174 int num = this.
type;
5233 int num = this.
type;
5307 bool flag = tile.
active();
5330 int num = this.
type;
5339 float num = this.
scale;
5374 int num = this.
type;
5510 int num = this.
type;
5566 int num = this.
type;
5594 int num = this.
type;
5597 if (this.
frame != 0)
5617 int num = this.
type;
5662 int num = this.
type;
5736 int num = this.
alpha;
5814 int num = this.
type;
5904 int num = this.
alpha;
5920 int num = this.
alpha;
6027 float x7 = this.velocity.
X;
6028 float y7 = this.velocity.
Y;
6047 int num = this.
type;
6061 int num = this.
type;
6091 byte liquid = tile.
liquid;
6122 int num = this.
type;
6145 int num = this.
type;
6232 int num = this.
type;
6261 if (ownerMinionAttackTargetNPC !=
null)
6341 int num = this.
type;
6418 int num = this.
alpha;
6434 if (this.
owner == 0)
6469 float num = this.
scale;
6507 if (this.
owner == 0)
6523 float y3 = this.velocity.
Y;
6528 float x4 = this.velocity.
X;
6558 float x5 = this.velocity.
X;
6559 float y5 = this.velocity.
Y;
6571 float x7 = this.velocity.
X;
6572 float y7 = this.velocity.
Y;
6575 float x8 = this.velocity.
X;
6576 float y8 = this.velocity.
Y;
6608 float x10 = this.velocity.
X;
6609 float y10 = this.velocity.
Y;
6628 float x12 = this.velocity.
X;
6629 float y12 = this.velocity.
Y;
6649 int num = this.
owner;
6735 Vector2 vector = ((float)num).ToRotationVector2();
6767 if (this.
owner != 0)
6787 if (this.
alpha == 0)
6830 float num = vector.
Length();
6926 int num = this.
owner;
6938 int num = this.
type;
6954 if (this.width == 0)
6981 if (direction5 == 0)
7022 if (ownerMinionAttackTargetNPC !=
null)
7053 if (ownerMinionAttackTargetNPC !=
null)
7083 int num = this.
alpha;
7121 float fadeIn = dust.
fadeIn;
7212 int num = this.
type;
7402 int value = num18.m_value;
7473 bool flag = tile.
active();
7744 bool flag = tile.
active();
7810 bool flag = tile.
active();
7830 int num = this.
type;
7844 int num = this.
owner;
7866 float fadeIn = dust.
fadeIn;
7954 bool flag = tile.
active();
7968 int num = this.
type;
7975 int num = this.
type;
7988 int num = this.
alpha;
8111 if ((
"type:" ==
null ||
"type:" !=
null) && (
text ==
null ||
text !=
null) && (
", name:" ==
null ||
", name:" !=
null))
8119 if ((
name ==
null ||
name !=
null) && (
", active:" ==
null ||
", active:" !=
null) && (text2 ==
null || text2 !=
null) && (
", whoAmI:" ==
null ||
", whoAmI:" !=
null) && (
text3 ==
null ||
text3 !=
null) && (
", identity:" ==
null ||
", identity:" !=
null) && (
text4 ==
null ||
text4 !=
null) && (
", ai0:" ==
null ||
", ai0:" !=
null) && (
text5 ==
null ||
text5 !=
null) && (
", uuid:" ==
null ||
", uuid:" !=
null) && (
text6 ==
null ||
text6 !=
null))
class f__AnonymousType0<< Count > j__TPar
static float Lerp(float value1, float value2, float amount)
static float WrapAngle(float angle)
static float Clamp(float value, float min, float max)
static int Sign(double value)
static byte Max(byte val1, byte val2)
static ActiveSound GetActiveSound(SlotId id)
void Track(Projectile proj)
static Dust CloneDust(int dustIndex)
static Color GetPortalColor(int colorIndex)
static LocalizedText GetProjectileName(int type)
static string GetTextValue(string key)
static bool anglerQuestFinished
static Microsoft.Xna.Framework.Vector2 screenPosition
static DroneCameraTracker DroneCameraTracker
static Microsoft.Xna.Framework.Graphics.Color hslToRgb(Microsoft.Xna.Framework.Vector3 hslVector)
static Microsoft.Xna.Framework.Vector2 MouseWorld
static Player LocalPlayer
static bool mapFullscreen
static Microsoft.Xna.Framework.Vector2 GetPlayerArmPosition(Projectile proj)
bool CanBeChasedBy([Optional] object attacker, bool ignoreDontTakeDamage=false)
static bool AnyNPCs(int Type)
Microsoft.Xna.Framework.Vector2 MountedCenter
NPCDistanceByIndexComparator()
int Compare(Tuple< int, float > npcIndex1, Tuple< int, float > npcIndex2)
float AI_061_FishingBobber_GetWaterLine(int X, int Y)
void AI_155_MysticSnakeCoil()
void ProjectileFixDesperation()
void FishingCheck_ProbeForQuestFish(FishingAttempt fisher)
void AI_193_Flamethrower()
void AI_159_PaperAirplanes()
void AI_173_HallowBossRainbowTrail()
void CreateImpactExplosion2_SleepyOctopod(Vector2 explosionOrigin, bool causedShockwaves)
void AI_061_FishingBobber_DoASplash()
int AI_134_Ballista_FindTarget(float shot_range, float deadBottomAngle, Vector2 shootingSpot)
Projectile FindStardustDragonHeadOfOwner()
void AI_187_ShadowHand_GetVariation([Out] int variation, [Out] float fakeCounter, [Out] float counterMax)
void AI_148_StarSpawner()
float ownerHitCheckDistance
void AI_067_FreakingPirates()
void UpdatePosition(Vector2 wetVelocity)
void AI_164_StormTigerGem()
void AI_186_PrincessWeapon()
static int GetBallistraShotDelay(Player player)
void AI_009_MagicMissiles_Old()
static void KillOldestJavelin(int protectedProjectileIndex, int projectileType, int targetNPCIndex, Point[] bufferForScan)
void DoRainbowCrystalStaffExplosion()
static List< Tuple< int, float > > _medusaHeadTargetList
Point GetScarabBombDigDirectionSnap8()
void AI_140_MonkStaffT1()
void HandleMovement(Vector2 wetVelocity, [Out] int overrideWidth, [Out] int overrideHeight)
void AI_007_GrapplingHooks()
int AI_130_FlameBurstTower_FindTarget(float shot_range, float angleRatioMax, Vector2 shootingSpot, bool canChangeDirection=true)
void ghostHeal(int dmg, Vector2 Position, Entity victim)
DictionaryIntArray playerImmune
static Conditions.NotNull _cachedConditions_notNull
void AI_177_IceWhipSlicer()
static List< int > _ai164_blacklistedTargets
static Point[] StardustCellMinionShotJavelins
bool AI_019_Spears_GetExtensionHitbox([Out] Rectangle extensionBox)
void AI_180_FairyQueenSunDance()
static void InitializeStaticThings()
static List< int > _ai156_blacklistedTargets
bool ShouldUseWindPhysics()
bool IsInRangeOfMeOrMyOwner(Entity entity, float maxDistance, [Out] float myDistance, [Out] float playerDistance, [Out] bool closerIsMe)
IEntitySource GetItemSource_OnHit(Entity victim, int itemSourceId)
void AI_161_RapierStabs()
IEntitySource GetProjectileSource_FromThis()
void CheckUsability(Player player, bool currentlyUsable)
bool stopsDealingDamageAfterPenetrateHits
int CountEnemiesWhoAreImmuneToMeRightNow(int cap)
bool CanExplodeTile(int x, int y)
int FindTargetWithLineOfSight(float maxRange=800f)
IEntitySource GetItemSource_DropAsItem()
Color GetFirstFractalColor()
void CreateGroundExplosion(float MAX_SPREAD, int fluff, int distFluff, int layerStart, int layerEnd, int layerJump)
void BombsHurtPlayers(Rectangle projRectangle, int j)
static void FillWhipControlPoints(Projectile proj, List< Vector2 > controlPoints)
void EmitEnchantmentVisualsAt(Vector2 boxPosition, int boxWidth, int boxHeight)
void ReduceRemainingChumsInPool()
bool CanHitWithOwnBody(Entity ent)
void AI_009_MagicMissiles()
void AI_145_BookStaffStorm()
NPC FindTargetWithinRange(float maxRange, bool checkCanHit=false)
IEntitySource GetProjectileSource_OnHit(Entity victim, int projectileSourceId)
void ExplodeCrackedTiles(Vector2 compareSpot, int radius, int minI, int maxI, int minJ, int maxJ)
void AI_155_SpawnRopeIn(int x, int y)
static float[] _CompanionCubeScreamCooldown
static Vector2 AI_158_GetHomeLocation(Player master, int stackedIndex)
void SetDefaults(int Type)
bool AI_067_TigerSpecialAttack()
static void GetFishingPondState(int x, int y, [Out] bool lava, [Out] bool honey, [Out] int numWaters, [Out] int chumCount)
void AI_156_Think(List< int > blacklist)
void TryGettingHitByOtherPlayersExplosives()
void AI_179_FairyQueenLance()
static IEntitySource GetNoneSource()
static Point[] BoneJavelinJavelins
void AI_GetMyGroupIndexAndFillBlackList(List< int > blackListedTargets, [Out] int index, [Out] int totalIndexesInGroup)
void AI_176_EdgyLightning()
void AI_142_MonkStaffT2And3()
override string ToString()
static Rectangle _lanceHitboxBounds
void AI_192_JuminoAnimation()
static Vector2 AI_164_GetHomeLocation(Player master, int stackedIndex, int totalIndexes)
void SummonSuperStarSlash(Vector2 target)
void vampireHeal(int dmg, Vector2 Position, Entity victim)
static Projectile.NPCDistanceByIndexComparator _medusaTargetComparer
void TryDoingOnHitEffects(Entity entity)
void AI_182_FinalFractal()
static void FindBannerToAssociateTo(IEntitySource spawnSource, Projectile next)
bool AutomaticallyChangesDirection()
bool usesIDStaticNPCImmunity
void AI_015_HandleMovementCollision_Old(Vector2 wetVelocity, Vector2 lastVelocity)
void CreateImpactExplosion(int dustAmountMultiplier, Vector2 explosionOrigin, Point scanAreaStart, Point scanAreaEnd, int explosionRange, [Out] bool causedShockwaves)
static Conditions.IsSolid _cachedConditions_solid
static Color GetGolfTrailColor(Projectile proj)
void MakeBoulderOfEarthExplosion()
static Point[] DaybreakJavelins
bool TurretShouldPersist()
void AI_120_StardustGuardian()
void BetsySharpnel(int npcIndex)
static List< int > ai92Projectiles
bool appliesImmunityTimeOnSingleHits
bool ShouldWallExplode(Vector2 compareSpot, int radius, int minI, int maxI, int minJ, int maxJ)
static void EmitBlackLightningParticles(NPC targetNPC)
int idStaticNPCHitCooldown
void AI_156_StartAttack()
static void UseGasTrapInChest(int chestIndex, Chest theChest, int gasTrapIndex, int gasOffsetX, int gasOffsetY)
static void GetFishingPondWidth(int x, int y, [Out] int minX, [Out] int maxX)
void AI_184_BadTorchLuck()
void AI_047_MagnetSphere()
void AI_168_FirstFractal()
void ghostHurt(int dmg, Vector2 Position, Entity victim)
Color GetFairyQueenWeaponsColor(float alphaChannelMultiplier=1f, float lerpToWhite=0f, [Optional] float? rawHueOverride)
void AI_191_TrueNightsEdge()
void Kill_DirtAndFluidProjectiles_RunDelegateMethodPushUpForHalfBricks(Point pt, float size, Utils.TileActionAttempt plot)
void AI_066_TryInterceptingTarget(Vector2 targetDir, Vector2 targetVelocity, float speed)
void AI_137_LightningAura()
void ResetLocalNPCHitImmunity()
void AI_178_FireExplosion()
void ExplodeTiles(Vector2 compareSpot, int radius, int minI, int maxI, int minJ, int maxJ, bool wallSplode)
void FishingCheck_RollDropLevels(int fishingLevel, [Out] bool common, [Out] bool uncommon, [Out] bool rare, [Out] bool veryrare, [Out] bool legendary, [Out] bool crate)
void AI_139_ExplosiveTrapExplosion()
Color GetAlpha(Color newColor)
void AI_141_MonkStaffT1Explosion()
DictionaryIntArray localNPCImmunity
bool CanHitWithMeleeWeapon(Entity ent)
bool Chester_IsAnyPlayerTrackingThisProjectile()
void AI_181_FairyQueenRangedItemShot()
bool usesLocalNPCImmunity
void AI_175_TitaniumStormShards()
static int GetByUUID(int owner, float uuid)
static int GetExplosiveTrapCooldown(Player player)
void AI_061_FishingBobber()
void AI_170_FairyGlowstick()
Projectile.HallowBossPelletStormInfo AI_172_GetPelletStormInfo(int stormIndex)
bool manualDirectionChange
void AI_172_HallowBossRainbowPelletStorm()
void Interrupt(Player player)
IEntitySource GetNPCSource_FromThis()
static bool IsNPCIndexImmuneToProjectileType(int projectileType, int npcIndex)
void AI_155_RemoveRope(Point start, Point end)
int AI_172_GetPelletStormsCount()
void Resize(int newWidth, int newHeight)
void AI_120_StardustGuardian_FindTarget(float lookupRange, int targetNPCIndex, float distanceToClosestTarget)
void Minion_FindTargetInRange(int startAttackRange, int attackTarget, bool skipIfCannotHitWithOwnBody, [Optional] Func< Entity, int, bool > customEliminationCheck)
void UpdateEnchantmentVisuals()
static void GetWhipSettings(Projectile proj, [Out] float timeToFlyOut, [Out] int segments, [Out] float rangeMultiplier)
void CopyLocalNPCImmunityTimes(Projectile p)
bool AI_067_CustomEliminationCheck_Pirates(Entity otherEntity, int currentTarget)
List< Vector2 > WhipPointsForCollision
static int[] npcCrystalDartList
bool Colliding(Rectangle myRect, Rectangle targetRect)
void AI_183_ZoologistStrike()
void AI_015_HandleMovementCollision(Vector2 wetVelocity, Vector2 lastVelocity)
int AI_156_TryAttackingNPCs(List< int > blackListedTargets, bool skipBodyCheck=false)
void AI_131_FlameBurstShot()
bool AI_007_GrapplingHooks_CanTileBeLatchedOnTo(Tile theTile)
void AI_015_Flails_Dust(bool doFastThrowDust)
void AI_047_MagnetSphere_TryAttacking()
void FishingCheck_RollEnemySpawns(FishingAttempt fisher)
void AI_121_StardustDragon()
static void AI_192_GetJuminoFall(Projectile proj, [Out] float timeSinceFall, [Out] float fall)
void AI_130_FlameBurstTower()
void AI_147_Celeb2Rocket()
void LightDisc_Bounce(Vector2 hitPoint, Vector2 normal)
IEntitySource GetItemSource_FromThis()
static int FindOldestProjectile()
static int NewProjectile(IEntitySource spawnSource, float X, float Y, float SpeedX, float SpeedY, int Type, int Damage, float KnockBack, int Owner=-1, float ai0=0f, float ai1=0f, float ai2=0f)
static List< int > _ai158_blacklistedTargets
void AI_194_HorsemanPumpkin()
void AI_143_MonkStaffT2Ghast()
NPC OwnerMinionAttackTargetNPC
bool TryGetContainerIndex([Out] int containerIndex)
Color GetFloatingDaggerMinionGlowColor()
float GetLastPrismHue(float laserIndex, float laserLuminance, float laserAlphaMultiplier)
void AI_174_MultisegmentPet()
void CutTilesAt(Vector2 boxPosition, int boxWidth, int boxHeight)
void AI_138_ExplosiveTrap()
void AI_150_GolfClubHelper()
static void RandomizeInsanityShadowFor(Entity targetEntity, bool isHostile, [Out] Vector2 spawnposition, [Out] Vector2 spawnvelocity, [Out] float ai0, [Out] float ai1)
static bool GasTrapCheck(int x, int y, Player user)
bool AI_137_CanHit(Vector2 targetPosition)
bool IsAttachedTo(NPC npc)
void CreateImpactExplosion2_FlailTileCollision(Vector2 explosionOrigin, bool causedShockwaves, Vector2 velocityBeforeCollision)
bool originatedFromActivableTile
void FishingCheck_RollItemDrop(FishingAttempt fisher)
void AI_156_GetIdlePosition(int stackedIndex, int totalIndexes, [Out] Vector2 idleSpot, [Out] float idleRotation)
static int GetByUUID(int owner, int uuid)
bool IsInterruptible(Player player)
void AI_167_SparkleGuitar()
bool noEnchantmentVisuals
void AI_136_BetsyBreath()
static IEntitySource InheritSource(Projectile projectile)
Rectangle Damage_GetHitbox()
bool decidesManualFallThrough
void AI_162_TigerPounce()
void AI_061_FishingBobber_GiveItemToPlayer(Player thePlayer, int itemType)
static void ResetImmunity()
void AI_171_HallowBossRainbowStreak()
void AI_152_SuperStarSlash()
static int NewProjectile(IEntitySource spawnSource, Vector2 position, Vector2 velocity, int Type, int Damage, float KnockBack, int Owner=-1, float ai0=0f, float ai1=0f, float ai2=0f)
static readonly uint[] perIDStaticNPCImmunity
static void StarFall(float positionX)
static float GetLerpValue(float from, float to, float t, bool clamped=false)
static bool SolidTile(short tileSHeader, ushort tileType)
static void KillTile(int i, int j, bool fail=false, bool effectOnly=false, bool noItem=false)
static bool InWorld(int x, int y, int fluff=0)
void Intersects(Rectangle value, [Out] bool result)
static SlotId FromFloat(float value)
static FinalFractalHelper.FinalFractalProfile GetFinalFractalProfile(int usedSwordId)
float BulletsProgressInStormStartNormalized
Vector2 GetBulletPosition(int bulletIndex, Vector2 centerPoint)
Rectangle GetBulletHitbox(int bulletIndex, Vector2 centerPoint)
bool IsValid(int bulletIndex)
float GetBulletProgress(int bulletIndex)
float BulletsProgressInStormBonusByIndexNormalized