terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
Terraria.Player Class Reference
+ Inheritance diagram for Terraria.Player:
+ Collaboration diagram for Terraria.Player:

Classes

class  BuilderAccToggleIDs
 
struct  ChannelCancelKey
 
struct  CompositeArmData
 
struct  DirectionalInputSyncCache
 
class  Hooks
 
struct  ItemCheckContext
 
struct  ItemSpaceStatus
 
struct  OverheadMessage
 
struct  RabbitOrderFrameHelper
 
class  RandomTeleportationAttemptSettings
 
class  SavedPlayerDataWithAnnoyingRules
 
class  SelectionRadial
 
struct  SetMatchRequest
 
class  Settings
 
class  SmartCursorSettings
 
struct  SpecialToolUsageSettings
 

Public Types

enum  CompositeArmStretchAmount { Full , None , Quarter , ThreeQuarters }
 
enum  eToHellAndBackStatus { NotStarted , SurfaceToHell , HellToSurface , Completed }
 

Public Member Functions

void RotateRelativePoint (ref float x, ref float y)
 
Microsoft.Xna.Framework.Vector2 RotatedRelativePointOld (Microsoft.Xna.Framework.Vector2 pos, bool rotateForward=true)
 
Microsoft.Xna.Framework.Vector2 RotatedRelativePoint (Microsoft.Xna.Framework.Vector2 pos, bool reverseRotation=false, bool addGfxOffY=true)
 
bool CanDemonHeartAccessoryBeShown ()
 
bool CanMasterModeAccessoryBeShown ()
 
int GetAmountOfExtraAccessorySlotsToShow ()
 
EntityShadowInfo GetAdvancedShadow (int shadowIndex)
 
void UpdateAdvancedShadows ()
 
void ResetAdvancedShadows ()
 
void SetCompositeArmFront (bool enabled, Player.CompositeArmStretchAmount stretch, float rotation)
 
void SetCompositeArmBack (bool enabled, Player.CompositeArmStretchAmount stretch, float rotation)
 
void SetTalkNPC (int npcIndex, bool fromNet=false)
 
void SetItemTime (int frames)
 
void ApplyItemTime (Item sItem)
 
void ApplyItemTime (Item sItem, float multiplier)
 
void SetDummyItemTime (int frames)
 
void SetItemAnimation (int frames)
 
void MatchItemTimeToItemAnimation ()
 
bool InOpposingTeam (Player otherPlayer)
 
bool TeamChangeAllowed ()
 
void HealEffect (int healAmount, bool broadcast=true)
 
void ManaEffect (int manaAmount)
 
void InterruptItemUsageIfOverTile (int tileTypeToBeOver)
 
Microsoft.Xna.Framework.Vector2 GetHairDrawOffset (int hairID, bool hatHair)
 
Microsoft.Xna.Framework.Vector2 GetHelmetDrawOffset ()
 
Microsoft.Xna.Framework.Vector2 GetBeardDrawOffsetFromHelmet ()
 
Microsoft.Xna.Framework.Vector2 GetFaceHeadOffsetFromHelmet ()
 
Microsoft.Xna.Framework.Vector2 GetHelmetOffsetAddonFromFaceHead (Microsoft.Xna.Framework.Vector2 headOffset)
 
Microsoft.Xna.Framework.Vector2 GetLegsDrawOffset ()
 
void AccumulateGolfingScore (int score)
 
void ToggleInv ()
 
void ToggleCreativeMenu ()
 
void dropItemCheck ()
 
void DropSelectedItem ()
 
void PlayDroppedItemAnimation (int time)
 
void DropSelectedItem_InterruptActionsThatUseAnimations ()
 
int FindBuffIndex (int type)
 
void AddBuff (int type, int timeToAdd, bool quiet=true, bool foodHack=false)
 
void DelBuff (int b)
 
void ClearBuff (int type)
 
int CountBuffs ()
 
void QuickHeal ()
 
Item QuickHeal_GetItemToUse ()
 
void QuickMana ()
 
Item QuickMana_GetItemToUse ()
 
void TrySwitchingLoadout (int loadoutIndex)
 
bool GetHasAvailableBuff (out bool canUse)
 
void QuickBuff ()
 
void QuickMount ()
 
bool CanFitSpace (int heightBoost)
 
bool UseQuickMineCartHook ()
 
bool UseQuickMineCartSnapHook ()
 
Item QuickMount_GetItemToUse ()
 
void ClearGrapplingBlacklist ()
 
bool IsBlacklistedForGrappling (Point p)
 
void UpdateBlacklistedTilesForGrappling ()
 
void QuickGrapple ()
 
Item QuickGrapple_GetItemToUse ()
 
void StatusToNPC (int type, int i)
 
void StatusToPlayerPvP (int type, int i)
 
void Ghost ()
 
void OnHit (float x, float y, Entity victim)
 
void OpenPresent (int itemType)
 
void OpenLegacyPresent (int itemType)
 
void QuickSpawnItem (IEntitySource source, int item, int stack=1)
 
void OpenBossBag (int type)
 
void OpenFishingCrate (int crateItemID)
 
int CountItem (int type, int stopCountingAt=0)
 
bool ConsumeItem (int type, bool reverseOrder=false, bool includeVoidBag=false)
 
void OpenShadowLockbox (int boxType)
 
void OpenLockBox (int lockboxItemType)
 
void OpenHerbBag (int bagType)
 
void OpenCanofWorms (int sourceItemType)
 
void OpenOyster (int sourceItemType)
 
void OpenGoodieBag (int itemType)
 
void UpdateDyes ()
 
int ArmorSetDye ()
 
IEntitySource GetProjectileSource_Buff (int buffIndex)
 
IEntitySource GetProjectileSource_Item (Item item)
 
IEntitySource GetItemSource_OpenItem (int itemType)
 
IEntitySource GetItemSource_Death ()
 
IEntitySource GetItemSource_Misc (int itemSourceId)
 
IEntitySource GetProjectileSource_Item_WithPotentialAmmo (Item item, int ammoItemId)
 
IEntitySource GetProjectileSource_SetBonus (int projectileSourceId)
 
IEntitySource GetProjectileSource_OnHit (Entity victim, int projectileSourceId)
 
IEntitySource GetProjectileSource_OnHurt (Entity attacker, int projectileSourceId)
 
IEntitySource GetProjectileSource_Accessory (Item item)
 
IEntitySource GetProjectileSource_Misc (int projectileSourceId)
 
IEntitySource GetProjectileSource_TileInteraction (int tileCoordsX, int tileCoordsY)
 
IEntitySource GetItemSource_TileInteraction (int tileCoordsX, int tileCoordsY)
 
IEntitySource GetNPCSource_TileInteraction (int tileCoordsX, int tileCoordsY)
 
IEntitySource GetItemSource_OnHit (Entity victim, int itemSourceId)
 
void UpdateBuffs (int i)
 
void TryToResetHungerToNeutral ()
 
void UpdateHungerBuffs ()
 
void UpdateStarvingState (bool withEmote)
 
void BuffHandle_SpawnPetIfNeededAndSetTime (int buffIndex, ref bool petBool, int petProjID, int buffTimeToGive=18000)
 
void BuffHandle_SpawnPetIfNeeded (ref bool petBool, int petProjID, int buffIndex)
 
void Counterweight (Microsoft.Xna.Framework.Vector2 hitPos, int dmg, float kb)
 
int beeType ()
 
int beeDamage (int dmg)
 
float beeKB (float KB)
 
void Yoraiz0rEye ()
 
bool IsItemSlotUnlockedAndUsable (int slot)
 
void RefreshInfoAccs ()
 
void RefreshInfoAccsFromTeamPlayers ()
 
void RefreshInfoAccsFromItemType (int accType)
 
void RefreshMechanicalAccsFromItemType (int accType)
 
void UpdatePermanentBoosters ()
 
void UpdateEquips (int i)
 
void DoBootsEffect (Utils.TileActionAttempt theEffectMethod)
 
bool DoBootsEffect_PlaceFlamesOnTile (int X, int Y)
 
bool DoBootsEffect_PlaceFlowersOnTile (int X, int Y)
 
WingStats GetWingStats (int wingID)
 
void UpdateArmorSets (int i)
 
void UpdateSocialShadow ()
 
void UpdateTeleportVisuals ()
 
void ForceUpdateBiomes ()
 
bool CanSeeShimmerEffects ()
 
void UpdateBiomes ()
 
void ManageSpecialBiomeVisuals (string biomeName, bool inZone, Microsoft.Xna.Framework.Vector2 activationSource=default(Microsoft.Xna.Framework.Vector2))
 
void GetHairSettings (out bool fullHair, out bool hatHair, out bool hideHair, out bool backHairDraw, out bool drawsBackHairWithoutHeadgear)
 
void UpdateDead ()
 
void UpdatePet (int i)
 
void CheckForPetAchievement (int buffID)
 
void UpdatePetLight (int i)
 
void TogglePet ()
 
void ToggleLight ()
 
bool IsWithinSnappngRangeToTile (int x, int y, int distanceInPixels)
 
void SmartInteractLookup ()
 
Item SmartItem ()
 
void SmartSelectLookup ()
 
void AddCoinLuck (Microsoft.Xna.Framework.Vector2 coinPosition, int coinAmount)
 
int RollLuck (int range)
 
void ResetEffects ()
 
void UpdateImmunity ()
 
void UpdateLifeRegen ()
 
void UpdateManaRegen ()
 
void UpdateJumpHeight ()
 
void FindPulley ()
 
void HorizontalMovement ()
 
void NoteRunning ()
 
void ApplyDamageToNPC (NPC npc, int damage, float knockback, int direction, bool crit)
 
void OnKillNPC (ref NPCKillAttempt attempt, object externalKillingBlowSource)
 
void GiveImmuneTimeForCollisionAttack (int time)
 
bool CanNPCBeHitByPlayerOrPlayerProjectile (NPC npc, Projectile projectile=null)
 
void IncreaseAirTime ()
 
void ResetAirTime ()
 
void JumpMovement ()
 
void DashMovement ()
 
void WallslideMovement ()
 
void CarpetMovement ()
 
void DoubleJumpVisuals ()
 
void WingMovement ()
 
void MoonLeechRope ()
 
void WOFTongue ()
 
void StatusFromNPC (NPC npc)
 
void GrappleMovement ()
 
void DoQueenSlimeHookTeleport (Microsoft.Xna.Framework.Vector2 targetPosition)
 
void StickyMovement ()
 
bool HasLockedInventory ()
 
bool IsStackingItems ()
 
List< int > GetNearbyContainerProjectilesList ()
 
void UpdateNearbyInteractibleProjectilesList ()
 
bool IsProjectileInteractibleAndInInteractionRange (Projectile proj, ref Microsoft.Xna.Framework.Vector2 compareSpot)
 
bool useVoidBag ()
 
void QuickStackAllChests ()
 
void CheckDrowning ()
 
void CheckCrackedBrickBreak ()
 
void CheckIceBreak ()
 
void SlopeDownMovement ()
 
void ShimmerCollision (bool fallThrough, bool ignorePlats, bool noCollision)
 
void HoneyCollision (bool fallThrough, bool ignorePlats)
 
void WaterCollision (bool fallThrough, bool ignorePlats)
 
void DryCollision (bool fallThrough, bool ignorePlats)
 
void SlopingCollision (bool fallThrough, bool ignorePlats)
 
void FloorVisuals (bool Falling)
 
void ResetFloorFlags ()
 
void BordersMovement ()
 
void CollectTaxes ()
 
void GamepadEnableGrappleCooldown ()
 
void TryInterruptingItemUsage ()
 
void UpdateHairDyeDust ()
 
bool IsScopeActive ()
 
bool IsRightClickItemActive ()
 
bool CheckPulley ()
 
bool CheckCuteFishron ()
 
void Update (int i)
 
void ResetToHellAndBackIfNotCompleted ()
 
void UpdateLuck ()
 
void TryOpeningFullscreenMap ()
 
void UpdateLuckFactors ()
 
void RecalculateLuck ()
 
void UpdateMiscCounter ()
 
void WingFrame (bool wingFlap)
 
bool ShouldDrawWingsThatAreAlwaysAnimated ()
 
bool IsInInteractionRangeToMultiTileHitbox (int chestPointX, int chestPointY)
 
void ResetVisibleAccessories ()
 
void UpdateArmorLights ()
 
void Update_NPCCollision ()
 
bool CanParryAgainst (Rectangle blockingPlayerRect, Rectangle enemyRect, Microsoft.Xna.Framework.Vector2 enemyVelocity)
 
void ItemCheck_ManageRightClickFeatures ()
 
void ItemCheck_ManageRightClickFeatures_ShieldRaise (bool theGeneralCheck)
 
void TryTogglingShield (bool shouldGuard)
 
void UpdateChangeItem ()
 
void ScrollHotbar (int Offset)
 
List< int > GetListOfProjectilesToInteractWithHack ()
 
void LockGamepadTileInteractions ()
 
void LookForTileInteractions ()
 
bool InInteractionRange (int interactX, int interactY, TileReachCheckSettings settings)
 
bool IsInTileInteractionRange (int targetX, int targetY, TileReachCheckSettings settings)
 
void TileInteractionsCheck (int myX, int myY)
 
void PetAnimal (int animalNpcIndex)
 
bool CanSnapToPosition (Microsoft.Xna.Framework.Vector2 offset)
 
void StopVanityActions (bool multiplayerBroadcast=true)
 
void CloseSign ()
 
void RemoveAllGrapplingHooks ()
 
void RemoveAllFishingBobbers ()
 
Microsoft.Xna.Framework.Graphics.Color ChatColor ()
 
bool CanAcceptItemIntoInventory (Item item)
 
void Heal (int amount)
 
int GetItemGrabRange (Item item)
 
long SellItemAmount (Item item, int stack=-1)
 
bool SellItem (Item item, int stack=-1)
 
void RefreshItems (bool onlyIfVariantChanged=true)
 
void GetItemExpectedPrice (Item item, out long calcForSelling, out long calcForBuying)
 
bool CanAffordItem (long price, int customCurrency=-1)
 
bool BuyItem (long price, int customCurrency=-1)
 
void AdjTiles ()
 
bool IsTileTypeInInteractionRange (int targetTileType, TileReachCheckSettings settings)
 
void DisplayDollUpdate ()
 
bool IsColorfulDye (int dye)
 
bool ShouldDrawFootball ()
 
void PlayerFrame ()
 
void SetArmorEffectVisuals (Player drawPlayer)
 
void Teleport (Microsoft.Xna.Framework.Vector2 newPos, int Style=0, int extraInfo=0)
 
void DoPotionOfReturnTeleportationAndSetTheComebackPoint ()
 
void DoPotionOfReturnReturnToOriginalUsePosition ()
 
void AutoFinchStaff ()
 
void Spawn (PlayerSpawnContext context)
 
bool Spawn_GetPositionAtWorldSpawn (ref int floorX, ref int floorY)
 
void SetImmuneTimeForAllTypes (int time)
 
void ShadowDodge ()
 
void BrainOfConfusionDodge ()
 
void NinjaDodge ()
 
void ApplyArmorSoundAndDustChanges ()
 
double Hurt (PlayerDeathReason damageSource, int Damage, int hitDirection, bool pvp=false, bool quiet=false, bool Crit=false, int cooldownCounter=-1, bool dodgeable=true)
 
void KillMeForGood ()
 
void KillMe (PlayerDeathReason damageSource, double dmg, int hitDirection, bool pvp=false)
 
void DropTombstone (long coinsOwned, NetworkText deathText, int hitDirection)
 
bool CanPullItem (Item item, Player.ItemSpaceStatus status)
 
Player.ItemSpaceStatus ItemSpace (Item newItem)
 
void ItemSpace (Item newItem, ref Player.ItemSpaceStatus result)
 
bool ItemSpaceForCofveve (Item newItem)
 
bool CanItemSlotAccept (Item theSlot, Item theItemToAccept)
 
bool CanGoIntoAmmoOnPickup (Item theSlot, Item theItemToAccept)
 
bool DoCoins (int i)
 
bool CanFillAmmo (int plr, Item newItem)
 
Item FillAmmo (int plr, Item newItem, GetItemSettings settings)
 
bool CanStoreItem (int plr, Item newItem)
 
Item GetItem (int plr, Item newItem, GetItemSettings settings, bool disableMerge=false)
 
void PlaceThing (ref Player.ItemCheckContext context)
 
Item GetBestPickaxe ()
 
void PlaceThing_Tiles_PlaceIt_ConsumeFlexibleWandMaterial ()
 
int BiomeTorchPlaceStyle (int style)
 
int BiomeTorchHoldStyle (int style)
 
int BiomeCampfirePlaceStyle (int style)
 
int BiomeCampfireHoldStyle (int itemType)
 
Item FindPaintOrCoating ()
 
void ChangeDir (int dir)
 
Rectangle getRect ()
 
void HorsemansBlade_SpawnPumpkin (int npcIndex, int dmg, float kb)
 
void PutItemInInventoryFromItemUsage (int type, int theSelectedItem=-1)
 
bool SummonItemCheck (Item item)
 
PlayerFishingConditions GetFishingConditions ()
 
bool HasUnityPotion ()
 
void TakeUnityPotion ()
 
void UnityTeleport (Microsoft.Xna.Framework.Vector2 telePos)
 
void SporeSac (Item sourceItem)
 
void VolatileGelatin (Item sourceItem)
 
bool CanHit (Entity ent)
 
Rectangle GetItemDrawFrame (int type)
 
float GetAdjustedItemScale (Item item)
 
void ApplyMeleeScale (ref float scale)
 
Microsoft.Xna.Framework.Vector2 ApplyRangeCompensation (float rangeCompensation, Microsoft.Xna.Framework.Vector2 startPos, Microsoft.Xna.Framework.Vector2 targetPos)
 
void ItemCheck ()
 
bool HasNPCBannerBuff (int bannerType)
 
void ResetMeleeHitCooldowns ()
 
void UpdateMeleeHitCooldowns ()
 
bool CanHitNPCWithMeleeHit (int npcIndex)
 
void SetMeleeHitCooldown (int npcIndex, int timeInFrames)
 
void TakeDamageFromJellyfish (int npcIndex)
 
void ApplyAttackCooldown ()
 
void ApplyAttackCooldown (int frames)
 
bool[] GetTileCutIgnorance (bool allowRegrowth, bool fromTrap)
 
void LimitPointToPlayerReachableArea (ref Microsoft.Xna.Framework.Vector2 pointPoisition)
 
void PickWall (int x, int y, int damage)
 
bool IsTargetTileInItemRange (Item sItem)
 
void PlayGuitarChord (float range)
 
void PlayDrums (float range)
 
bool CanDoWireStuffHere (int x, int y)
 
Microsoft.Xna.Framework.Vector2 GetFarthestSpawnPositionOnLine (Microsoft.Xna.Framework.Vector2 startPos, float speedX, float speedY)
 
int SpawnMinionOnCursor (IEntitySource projectileSource, int ownerIndex, int minionProjectileId, int originalDamageNotScaledByMinionDamage, float KnockBack, Microsoft.Xna.Framework.Vector2 offsetFromCursor=default(Microsoft.Xna.Framework.Vector2), Microsoft.Xna.Framework.Vector2 velocityOnSpawn=default(Microsoft.Xna.Framework.Vector2))
 
bool TryPlacingAGolfBallNearANearbyTee (Microsoft.Xna.Framework.Vector2 placePosition)
 
void GetPreferredGolfBallToUse (out int projType)
 
bool CanVisuallyHoldItem (Item item)
 
Microsoft.Xna.Framework.Vector2 GetFrontHandPosition (Player.CompositeArmStretchAmount stretch, float rotation)
 
Microsoft.Xna.Framework.Vector2 GetBackHandPosition (Player.CompositeArmStretchAmount stretch, float rotation)
 
void ItemCheck_ApplyUseStyle (float mountOffset, Item sItem, Rectangle heldItemFrame)
 
void FlipItemLocationAndRotationForGravity ()
 
void StartChanneling ()
 
void StartChanneling (Item item)
 
void TryUpdateChannel (Projectile projectile)
 
void TryCancelChannel (Projectile projectile)
 
void FindSentryRestingSpot (int checkProj, out int worldX, out int worldY, out int pushYUp)
 
void UpdateMaxTurrets ()
 
float GetWeaponKnockback (Item sItem, float KnockBack)
 
int GetWeaponCrit (Item sItem)
 
int GetWeaponDamage (Item sItem)
 
bool HasAmmo (Item sItem, bool canUse)
 
void PickAmmo (Item sItem, ref int projToShoot, ref float speed, ref bool canShoot, ref int Damage, ref float KnockBack, out int usedAmmoItemId, bool dontConsume=false)
 
void GetOtherPlayersPickTile (int x, int y, int pickDamage)
 
void PickTile (int x, int y, int pickPower)
 
bool isNearFairy ()
 
bool isNearNPC (int type, float range=-1f)
 
bool HasEnoughPickPowerToHurtTile (int x, int y)
 
bool ItemFitsWeaponRack (Item i)
 
void PlaceWeapon (int x, int y)
 
bool ItemFitsItemFrame (Item i)
 
Microsoft.Xna.Framework.Graphics.Color GetImmuneAlpha (Microsoft.Xna.Framework.Graphics.Color newColor, float alphaReduction)
 
Microsoft.Xna.Framework.Graphics.Color GetImmuneAlphaPure (Microsoft.Xna.Framework.Graphics.Color newColor, float alphaReduction)
 
Microsoft.Xna.Framework.Graphics.Color GetDeathAlpha (Microsoft.Xna.Framework.Graphics.Color newColor)
 
void addDPS (int dmg)
 
void checkDPSTime ()
 
int getDPS ()
 
long DropCoins ()
 
void DropItems ()
 
void TryDroppingSingleItem (IEntitySource source, Item theItem)
 
object Clone ()
 
object clientClone (Player clonePlayer)
 
void CopyVisuals (Player other)
 
Player clientClone ()
 
void FindSpawn ()
 
void RemoveSpawn ()
 
void ChangeSpawn (int x, int y)
 
void SetPlayerDataToOutOfClassFields ()
 
void FixLoadedData ()
 
Microsoft.Xna.Framework.Graphics.Color GetHairColor (bool useLighting=true)
 
bool HasItem (int type)
 
bool HasItem (int type, Item[] collection)
 
bool HasItemInInventoryOrOpenVoidBag (int type)
 
bool HasItemInAnyInventory (int type)
 
int FindItem (int netid)
 
int FindItem (List< int > netids)
 
int FindItem (bool[] validtypes)
 
int FindItem (int type, Item[] collection)
 
int FindItemInInventoryOrOpenVoidBag (int type, out bool inVoidBag)
 
 Player ()
 
void MagicConch ()
 
void Shellphone_Spawn ()
 
void DemonConch ()
 
void TeleportationPotion ()
 
Microsoft.Xna.Framework.Vector2 CheckForGoodTeleportationSpot (ref bool canSpawn, int teleportStartX, int teleportRangeX, int teleportStartY, int teleportRangeY, Player.RandomTeleportationAttemptSettings settings)
 
void GetAnglerReward (NPC angler, int questItemType)
 
bool DropAnglerAccByMissing (List< int > itemIdsOfAccsWeWant, float totalChance, out bool botheredRollingForADrop, out int itemIdToDrop)
 
void GetDyeTraderReward (NPC dyeTrader)
 
bool CheckMana (int amount, bool pay=false, bool blockQuickMana=false)
 
void TryPortalJumping ()
 
bool ConsumeSolarFlare ()
 
void KeyDoubleTap (int keyDir)
 
void UpdateForbiddenSetLock ()
 
void CommandForbiddenStorm ()
 
void KeyHoldDown (int keyDir, int holdTime)
 
void MinionNPCTargetAim (bool doNotDisableIfTheTargetIsTheSame)
 
void MinionRestTargetAim ()
 
void UpdateMinionTarget ()
 
void NebulaLevelup (int type)
 
void UpdateTouchingTiles ()
 
delegate void DashStartAction (int dashDirection)
 
float AngleTo (Vector2 Destination)
 
float AngleFrom (Vector2 Source)
 
float Distance (Vector2 Other)
 
float DistanceSQ (Vector2 Other)
 
Vector2 DirectionTo (Vector2 Destination)
 
Vector2 DirectionFrom (Vector2 Source)
 
bool WithinRange (Vector2 Target, float MaxRange)
 

Static Public Member Functions

static byte FindClosest (Microsoft.Xna.Framework.Vector2 Position, int Width, int Height)
 
static float GetClosestPlayersLuck (Point Position)
 
static float GetClosestPlayersLuck (Microsoft.Xna.Framework.Vector2 Position)
 
static float GetClosestRollLuck (Microsoft.Xna.Framework.Vector2 position, int range)
 
static float GetClosestRollLuck (int x, int y, int range)
 
static Tile GetFloorTile (int x, int y)
 
static int GetFloorTileType (int x, int y)
 
static int GetMouseScrollDelta ()
 
static int SetMatch (Player.SetMatchRequest request, ref bool somethingSpecial)
 
static bool CanPlayerSmashWall (int X, int Y)
 
static bool WouldSpotOverlapWithSentry (int worldX, int worldY, bool lightningAura)
 
static bool CheckSpawn (int x, int y)
 
static void UpdateOldMobilePath (PlayerFileData playerFile)
 
static void SavePlayer (PlayerFileData playerFile, bool skipMapSave=false, bool forceSave=false)
 
static void ClearPlayerTempInfo ()
 
static void InternalSaveMap (bool isCloudSave, bool forceSave=false)
 
static PlayerFileData LoadTutorialPlayer ()
 
static PlayerFileData LoadPlayer (string playerPath, bool cloudSave)
 
static void FixLoadedData_EliminiateDuplicateAccessories (Item[] armorArray)
 
static PlayerFileData GetFileData (string file, bool cloudSave)
 
static float GetAnglerRewardRarityMultiplier (int questsDone)
 

Public Attributes

int emoteTime
 
CreativeUnlocksTracker creativeTracker
 
Player.OverheadMessage chatOverhead
 
Player.SelectionRadial DpadRadial
 
Player.SelectionRadial CircularRadial
 
Player.SelectionRadial QuicksRadial
 
bool alchemyTable
 
int HotbarOffset
 
bool GoingDownWithGrapple
 
byte spelunkerTimer
 
bool[] hideInfo
 
int[] builderAccStatus
 
long lostCoins
 
string lostCoinString
 
int soulDrain
 
float drainBoost
 
bool dd2Accessory
 
string name
 
int taxMoney
 
int taxTimer
 
int numberOfDeathsPVE
 
int numberOfDeathsPVP
 
float basiliskCharge
 
Microsoft.Xna.Framework.Vector2 lastDeathPostion
 
DateTime lastDeathTime
 
bool showLastDeath
 
bool usedAegisCrystal
 
bool usedAegisFruit
 
bool usedArcaneCrystal
 
bool usedGalaxyPearl
 
bool usedGummyWorm
 
bool usedAmbrosia
 
int extraAccessorySlots
 
int extraAccessorySlotsUse
 
bool extraAccessory
 
int tankPet
 
bool tankPetReset
 
int stringColor
 
int counterWeight
 
bool yoyoString
 
bool yoyoGlove
 
int beetleOrbs
 
float beetleCounter
 
int beetleCountdown
 
bool beetleDefense
 
bool beetleOffense
 
bool beetleBuff
 
int solarShields
 
int solarCounter
 
Microsoft.Xna.Framework.Vector2[] solarShieldPos
 
Microsoft.Xna.Framework.Vector2[] solarShieldVel
 
bool solarDashing
 
bool solarDashConsumedFlare
 
int nebulaLevelLife
 
int nebulaLevelMana
 
int nebulaManaCounter
 
int nebulaLevelDamage
 
bool manaMagnet
 
bool lifeMagnet
 
bool treasureMagnet
 
bool chiselSpeed
 
bool lifeForce
 
bool calmed
 
bool inferno
 
float flameRingRot
 
float flameRingScale
 
byte flameRingFrame
 
byte flameRingAlpha
 
int netManaTime
 
int netLifeTime
 
bool netMana
 
bool netLife
 
Microsoft.Xna.Framework.Vector2[] beetlePos
 
Microsoft.Xna.Framework.Vector2[] beetleVel
 
int beetleFrame
 
int beetleFrameCounter
 
float manaSickReduction
 
bool manaSick
 
int afkCounter
 
bool stairFall
 
int loadStatus
 
Microsoft.Xna.Framework.Vector2[] itemFlamePos
 
int itemFlameCount
 
bool outOfRange
 
float lifeSteal
 
float ghostDmg
 
bool teleporting
 
float teleportTime
 
int teleportStyle
 
bool sloping
 
bool chilled
 
bool dazed
 
bool frozen
 
bool stoned
 
bool lastStoned
 
bool ichor
 
bool webbed
 
bool tipsy
 
bool noBuilding
 
int ropeCount
 
int manaRegenBonus
 
float manaRegenDelayBonus
 
int dashType
 
int dash
 
int dashTime
 
int timeSinceLastDashStarted
 
int dashDelay
 
int eocDash
 
int eocHit
 
float accRunSpeed
 
bool cordage
 
int gem
 
int gemCount
 
BitsByte ownedLargeGems
 
byte meleeEnchant
 
byte pulleyDir
 
bool pulley
 
int pulleyFrame
 
float pulleyFrameCounter
 
bool blackBelt
 
bool sliding
 
int slideDir
 
int snowBallLauncherInteractionCooldown
 
bool iceSkate
 
bool carpet
 
int spikedBoots
 
int carpetFrame
 
float carpetFrameCounter
 
bool canCarpet
 
int carpetTime
 
int miscCounter
 
int infernoCounter
 
int insanityShadowCooldown
 
int starCloakCooldown
 
bool sandStorm
 
bool crimsonRegen
 
bool ghostHeal
 
bool ghostHurt
 
bool sticky
 
bool slippy
 
bool slippy2
 
bool powerrun
 
bool runningOnSand
 
bool flapSound
 
bool iceBarrier
 
bool dangerSense
 
byte luckPotion
 
byte oldLuckPotion
 
float endurance
 
float whipRangeMultiplier
 
float whipUseTimeMultiplier
 
bool loveStruck
 
bool stinky
 
bool resistCold
 
bool electrified
 
bool dryadWard
 
bool panic
 
Item brainOfConfusionItem
 
int brainOfConfusionDodgeAnimationCounter
 
byte iceBarrierFrame
 
byte iceBarrierFrameCounter
 
bool shadowDodge
 
float shadowDodgeCount
 
bool palladiumRegen
 
bool onHitDodge
 
bool onHitRegen
 
bool onHitPetal
 
bool onHitTitaniumStorm
 
int titaniumStormCooldown
 
bool hasTitaniumStormBuff
 
int petalTimer
 
int shadowDodgeTimer
 
int boneGloveTimer
 
int phantomPhoneixCounter
 
int fishingSkill
 
bool cratePotion
 
bool sonarPotion
 
bool accFishingLine
 
bool accFishingBobber
 
bool accTackleBox
 
bool accLavaFishing
 
int maxMinions
 
int numMinions
 
float slotsMinions
 
bool pygmy
 
bool raven
 
bool slime
 
bool hornetMinion
 
bool impMinion
 
bool twinsMinion
 
bool spiderMinion
 
int nextCycledSpiderMinionType
 
bool pirateMinion
 
bool sharknadoMinion
 
bool UFOMinion
 
bool DeadlySphereMinion
 
bool stardustMinion
 
bool stardustGuardian
 
bool stardustDragon
 
bool batsOfLight
 
bool babyBird
 
bool vampireFrog
 
bool stormTiger
 
int highestStormTigerGemOriginalDamage
 
bool smolstar
 
bool empressBlade
 
bool flinxMinion
 
bool abigailMinion
 
int highestAbigailCounterOriginalDamage
 
float wingTime
 
int wings
 
int wingsLogic
 
int wingTimeMax
 
int wingFrame
 
int wingFrameCounter
 
int skinVariant
 
bool ghost
 
int ghostFrame
 
int ghostFrameCounter
 
int miscTimer
 
int environmentBuffImmunityTimer
 
int _framesLeftEligibleForDeadmansChestDeathAchievement
 
bool pvpDeath
 
BitsByte zone1
 
BitsByte zone2
 
BitsByte zone3
 
BitsByte zone4
 
BitsByte zone5
 
bool boneArmor
 
bool frostArmor
 
bool honey
 
bool crystalLeaf
 
int crystalLeafCooldown
 
PortableStoolUsage portableStoolInfo
 
bool preventAllItemPickups
 
bool dontHurtCritters
 
bool hasLucyTheAxe
 
bool dontHurtNature
 
int[] doubleTapCardinalTimer
 
int[] holdDownCardinalTimer
 
bool defendedByPaladin
 
bool hasPaladinShield
 
float[] speedSlice
 
float townNPCs
 
double headFrameCounter
 
double bodyFrameCounter
 
double legFrameCounter
 
int netSkip
 
int oldSelectItem
 
bool immune
 
bool immuneNoBlink
 
int immuneTime
 
int immuneAlphaDirection
 
int immuneAlpha
 
int team
 
bool hbLocked
 
float maxRegenDelay
 
int sign
 
bool editedChestName
 
int reuseDelay
 
int aggro
 
float nearbyActiveNPCs
 
bool creativeInterface
 
bool mouseInterface
 
bool lastMouseInterface
 
int noThrow
 
int changeItem
 
int lastHotbarItem
 
int selectedItem
 
Item[] armor
 
Item[] dye
 
Item[] miscEquips
 
Item[] miscDyes
 
Item trashItem
 
float itemRotation
 
int itemWidth
 
int itemHeight
 
Microsoft.Xna.Framework.Vector2 itemLocation
 
bool poundRelease
 
float ghostFade
 
float ghostDir
 
int[] buffType
 
int[] buffTime
 
bool[] buffImmune
 
int heldProj
 
int breathCD
 
int breathMax
 
int breath
 
int lavaCD
 
int lavaMax
 
int lavaTime
 
bool ignoreWater
 
bool armorEffectDrawShadow
 
bool armorEffectDrawShadowSubtle
 
bool armorEffectDrawOutlines
 
bool armorEffectDrawShadowLokis
 
bool armorEffectDrawShadowBasilisk
 
bool armorEffectDrawOutlinesForbidden
 
bool armorEffectDrawShadowEOCShield
 
bool socialShadowRocketBoots
 
bool socialGhost
 
bool shroomiteStealth
 
bool ashWoodBonus
 
bool socialIgnoreLight
 
int stealthTimer
 
float stealth
 
int beardGrowthTimer
 
bool isDisplayDollOrInanimate
 
bool isFullbright
 
bool isHatRackDoll
 
bool isFirstFractalAfterImage
 
float firstFractalAfterImageOpacity
 
string setBonus
 
Item[] inventory
 
bool[] inventoryChestStack
 
Item lastVisualizedSelectedItem
 
Chest bank
 
Chest bank2
 
Chest bank3
 
Chest bank4
 
BitsByte voidVaultInfo
 
float headRotation
 
float bodyRotation
 
float legRotation
 
Microsoft.Xna.Framework.Vector2 headPosition
 
Microsoft.Xna.Framework.Vector2 bodyPosition
 
Microsoft.Xna.Framework.Vector2 legPosition
 
Microsoft.Xna.Framework.Vector2 headVelocity
 
Microsoft.Xna.Framework.Vector2 bodyVelocity
 
Microsoft.Xna.Framework.Vector2 legVelocity
 
float fullRotation
 
Microsoft.Xna.Framework.Vector2 fullRotationOrigin
 
int fartKartCloudDelay
 
int nonTorch
 
float gfxOffY
 
float stepSpeed
 
bool dead
 
int respawnTimer
 
long lastTimePlayerWasSaved
 
int attackCD
 
int potionDelay
 
byte difficulty
 
byte wetSlime
 
HitTile hitTile
 
HitTile hitReplace
 
float startJumpY
 
bool jumping
 
int jump
 
int head
 
int body
 
int legs
 
sbyte handon
 
sbyte handoff
 
sbyte back
 
sbyte front
 
sbyte shoe
 
sbyte waist
 
sbyte shield
 
sbyte neck
 
sbyte face
 
sbyte balloon
 
sbyte backpack
 
sbyte tail
 
sbyte faceHead
 
sbyte faceFlower
 
sbyte balloonFront
 
sbyte beard
 
bool[] hideVisibleAccessory
 
BitsByte hideMisc
 
Rectangle headFrame
 
Rectangle bodyFrame
 
Rectangle legFrame
 
Rectangle hairFrame
 
Player.DirectionalInputSyncCache LocalInputCache
 
bool blockUseItem
 
bool holdUpJump
 
short InitialItemUsing
 
bool disableUseUntilRelease
 
bool controlLeft
 
bool controlRight
 
bool controlUp
 
bool controlDown
 
bool controlJump
 
bool controlUseItem
 
bool controlUseTile
 
bool controlThrow
 
bool controlInv
 
bool controlHook
 
bool controlTorch
 
bool controlMap
 
bool controlSmart
 
bool controlMount
 
bool releaseJump
 
bool releaseUp
 
bool releaseUseItem
 
bool releaseUseTile
 
bool releaseInventory
 
bool releaseHook
 
bool releaseThrow
 
bool releaseQuickMana
 
bool releaseQuickHeal
 
bool releaseLeft
 
bool releaseRight
 
bool releaseSmart
 
bool releaseMount
 
bool releaseDown
 
bool controlQuickMana
 
bool controlQuickHeal
 
bool controlCreativeMenu
 
bool releaseCreativeMenu
 
bool controlQuickBuff
 
bool controlFireRelease
 
bool controlFire
 
bool controlInteractionRelease
 
bool controlInteraction
 
bool controlLayout1
 
bool controlLayout2
 
bool controlLayout3
 
bool controlLayoutCycle
 
int lockInteractionForFrame
 
PlatformUser UserData
 
LocalUser LocalUser
 
bool tileInteractionHappened
 
bool tileInteractAttempted
 
bool controlDownHold
 
bool isOperatingAnotherEntity
 
bool autoReuseAllWeapons
 
bool isControlledByFilm
 
bool tryKeepingHoveringDown
 
bool tryKeepingHoveringUp
 
int altFunctionUse
 
bool mapZoomIn
 
bool mapZoomOut
 
bool mapAlphaUp
 
bool mapAlphaDown
 
bool mapFullScreen
 
bool mapStyle
 
bool releaseMapFullscreen
 
bool releaseMapStyle
 
int leftTimer
 
int rightTimer
 
bool delayUseItem
 
bool cursorItemIconEnabled
 
bool cursorItemIconReversed
 
int cursorItemIconID
 
int cursorItemIconPush
 
int cursorChestItemIconID
 
string cursorItemIconText
 
int runSoundDelay
 
float opacityForAnimation
 
Microsoft.Xna.Framework.Vector2[] shadowPos
 
float[] shadowRotation
 
Microsoft.Xna.Framework.Vector2[] shadowOrigin
 
int[] shadowDirection
 
int shadowCount
 
float manaCost
 
bool fireWalk
 
bool channel
 
int step
 
bool skipAnimatingValuesInPlayerFrame
 
Player.RabbitOrderFrameHelper rabbitOrderFrame
 
bool creativeGodMode
 
int availableAdvancedShadowsCount
 
Player.CompositeArmData compositeFrontArm
 
Player.CompositeArmData compositeBackArm
 
int anglerQuestsFinished
 
int golferScoreAccumulated
 
int bartenderQuestLog
 
bool downedDD2EventAnyDifficulty
 
int armorPenetration
 
int statDefense
 
int statLifeMax
 
int statLifeMax2
 
int statLife
 
int statMana
 
int statManaMax
 
int statManaMax2
 
int lifeRegen
 
int lifeRegenCount
 
float lifeRegenTime
 
int manaRegen
 
int manaRegenCount
 
float manaRegenDelay
 
bool manaRegenBuff
 
bool noKnockback
 
bool spaceGun
 
float gravDir
 
bool chloroAmmoCost80
 
bool huntressAmmoCost90
 
bool ammoCost80
 
bool ammoCost75
 
int stickyBreak
 
bool magicQuiver
 
bool magmaStone
 
bool lavaRose
 
bool hasMoltenQuiver
 
int phantasmTime
 
bool ammoBox
 
bool ammoPotion
 
bool chaosState
 
bool strongBees
 
bool sporeSac
 
bool shinyStone
 
bool empressBrooch
 
bool volatileGelatin
 
int volatileGelatinCounter
 
bool hasMagiluminescence
 
bool shadowArmor
 
bool dontStarveShader
 
bool eyebrellaCloud
 
int yoraiz0rEye
 
bool yoraiz0rDarkness
 
bool hasUnicornHorn
 
bool hasAngelHalo
 
bool hasRainbowCursor
 
bool leinforsHair
 
bool stardustMonolithShader
 
bool nebulaMonolithShader
 
bool vortexMonolithShader
 
bool solarMonolithShader
 
bool moonLordMonolithShader
 
bool bloodMoonMonolithShader
 
bool shimmerMonolithShader
 
int overrideFishingBobber
 
bool unlockedBiomeTorches
 
bool ateArtisanBread
 
bool unlockedSuperCart
 
bool enabledSuperCart
 
bool suspiciouslookingTentacle
 
bool crimsonHeart
 
bool lightOrb
 
bool blueFairy
 
bool redFairy
 
bool greenFairy
 
bool bunny
 
bool turtle
 
bool eater
 
bool penguin
 
bool HasGardenGnomeNearby
 
bool magicLantern
 
bool rabid
 
bool sunflower
 
bool wellFed
 
bool puppy
 
bool grinch
 
bool miniMinotaur
 
bool flowerBoots
 
bool fairyBoots
 
bool hellfireTreads
 
bool moonLordLegs
 
bool arcticDivingGear
 
bool coolWhipBuff
 
bool wearsRobe
 
bool minecartLeft
 
bool onWrongGround
 
bool onTrack
 
int cartRampTime
 
bool cartFlip
 
float trackBoost
 
Microsoft.Xna.Framework.Vector2 lastBoost
 
Mount mount
 
bool blackCat
 
bool spider
 
bool squashling
 
bool petFlagDD2Gato
 
bool petFlagDD2Ghost
 
bool petFlagDD2Dragon
 
bool petFlagUpbeatStar
 
bool petFlagSugarGlider
 
bool petFlagBabyShark
 
bool petFlagLilHarpy
 
bool petFlagFennecFox
 
bool petFlagGlitteryButterfly
 
bool petFlagBabyImp
 
bool petFlagBabyRedPanda
 
bool petFlagPlantero
 
bool petFlagDynamiteKitten
 
bool petFlagBabyWerewolf
 
bool petFlagShadowMimic
 
bool petFlagVoltBunny
 
bool petFlagKingSlimePet
 
bool petFlagEyeOfCthulhuPet
 
bool petFlagEaterOfWorldsPet
 
bool petFlagBrainOfCthulhuPet
 
bool petFlagSkeletronPet
 
bool petFlagQueenBeePet
 
bool petFlagDestroyerPet
 
bool petFlagTwinsPet
 
bool petFlagSkeletronPrimePet
 
bool petFlagPlanteraPet
 
bool petFlagGolemPet
 
bool petFlagDukeFishronPet
 
bool petFlagLunaticCultistPet
 
bool petFlagMoonLordPet
 
bool petFlagFairyQueenPet
 
bool petFlagPumpkingPet
 
bool petFlagEverscreamPet
 
bool petFlagIceQueenPet
 
bool petFlagMartianPet
 
bool petFlagDD2OgrePet
 
bool petFlagDD2BetsyPet
 
bool petFlagQueenSlimePet
 
bool petFlagBerniePet
 
bool petFlagGlommerPet
 
bool petFlagDeerclopsPet
 
bool petFlagPigPet
 
bool petFlagChesterPet
 
bool petFlagJunimoPet
 
bool petFlagBlueChickenPet
 
bool petFlagSpiffo
 
bool petFlagCaveling
 
bool petFlagDirtiestBlock
 
bool companionCube
 
bool babyFaceMonster
 
bool magicCuffs
 
bool coldDash
 
bool sailDash
 
bool desertDash
 
bool desertBoots
 
bool eyeSpring
 
bool snowman
 
bool scope
 
bool dino
 
bool skeletron
 
bool hornet
 
bool zephyrfish
 
bool tiki
 
bool parrot
 
bool truffle
 
bool sapling
 
bool cSapling
 
bool wisp
 
bool lizard
 
bool archery
 
bool poisoned
 
bool venom
 
bool blind
 
bool blackout
 
bool headcovered
 
bool frostBurn
 
bool onFrostBurn
 
bool onFrostBurn2
 
bool burned
 
bool shimmering
 
int timeShimmering
 
float shimmerTransparency
 
ShimmerUnstuckHelper shimmerUnstuckHelper
 
bool suffocating
 
byte suffocateDelay
 
bool dripping
 
bool drippingSlime
 
bool drippingSparkleSlime
 
bool onFire
 
bool onFire2
 
bool onFire3
 
bool noItems
 
bool cursed
 
bool hungry
 
bool starving
 
bool heartyMeal
 
bool windPushed
 
bool wereWolf
 
bool wolfAcc
 
bool hideMerman
 
bool hideWolf
 
bool forceMerman
 
bool forceWerewolf
 
bool rulerGrid
 
bool rulerLine
 
bool bleed
 
bool confused
 
bool accMerman
 
bool merman
 
bool trident
 
bool brokenArmor
 
bool silence
 
bool slow
 
bool gross
 
bool tongued
 
bool kbGlove
 
bool autoReuseGlove
 
bool meleeScaleGlove
 
bool kbBuff
 
bool remoteVisionForDrone
 
Item starCloakItem
 
Item starCloakItem_manaCloakOverrideItem
 
Item starCloakItem_starVeilOverrideItem
 
Item starCloakItem_beeCloakOverrideItem
 
bool longInvince
 
bool pStone
 
bool manaFlower
 
bool moonLeech
 
bool vortexDebuff
 
bool trapDebuffSource
 
bool witheredArmor
 
bool witheredWeapon
 
bool slowOgreSpit
 
bool parryDamageBuff
 
bool ballistaPanic
 
bool JustDroppedAnItem
 
int meleeCrit
 
int magicCrit
 
int rangedCrit
 
float meleeDamage
 
float magicDamage
 
float rangedDamage
 
float rangedMultDamage
 
float arrowDamageAdditiveStack
 
float arrowDamage
 
float bulletDamage
 
float rocketDamage
 
float minionDamage
 
float minionKB
 
float meleeSpeed
 
float summonerWeaponSpeedBonus
 
float moveSpeed
 
float pickSpeed
 
float wallSpeed
 
float tileSpeed
 
bool autoPaint
 
bool autoActuator
 
int SpawnX
 
int SpawnY
 
Microsoft.Xna.Framework.? Vector2 PotionOfReturnOriginalUsePosition
 
Microsoft.Xna.Framework.? Vector2 PotionOfReturnHomePosition
 
int[] spX
 
int[] spY
 
string[] spN
 
int[] spI
 
int lastTileRangeX
 
int lastTileRangeY
 
float gravity
 
float maxFallSpeed
 
float maxRunSpeed
 
float runAcceleration
 
float runSlowdown
 
int TotalRunTime
 
bool adjWater
 
bool adjHoney
 
bool adjLava
 
bool oldAdjWater
 
bool oldAdjHoney
 
bool oldAdjLava
 
bool[] adjTile
 
bool[] oldAdjTile
 
byte hairDye
 
Microsoft.Xna.Framework.Graphics.Color hairDyeColor
 
float hairDyeVar
 
int skinDyePacked
 
Microsoft.Xna.Framework.Graphics.Color hairColor
 
Microsoft.Xna.Framework.Graphics.Color skinColor
 
Microsoft.Xna.Framework.Graphics.Color eyeColor
 
Microsoft.Xna.Framework.Graphics.Color shirtColor
 
Microsoft.Xna.Framework.Graphics.Color underShirtColor
 
Microsoft.Xna.Framework.Graphics.Color pantsColor
 
Microsoft.Xna.Framework.Graphics.Color shoeColor
 
int hair
 
bool hostile
 
SoundPlaySet hermesStepSound
 
Microsoft.Xna.Framework.Vector2 instantMovementAccumulatedThisFrame
 
int accCompass
 
int accWatch
 
int accDepthMeter
 
bool accFishFinder
 
bool accWeatherRadio
 
bool accJarOfSouls
 
bool accCalendar
 
int lastCreatureHit
 
bool accThirdEye
 
byte accThirdEyeCounter
 
byte accThirdEyeNumber
 
bool accStopwatch
 
bool accOreFinder
 
bool accCritterGuide
 
byte accCritterGuideCounter
 
byte accCritterGuideNumber
 
bool accDreamCatcher
 
bool hasFootball
 
bool drawingFootball
 
bool ActuationRodLock
 
bool ActuationRodLockSetting
 
bool InfoAccMechShowWires
 
DateTime dpsStart
 
DateTime dpsEnd
 
DateTime dpsLastHit
 
int dpsDamage
 
bool dpsStarted
 
string displayedFishingInfo
 
bool discountEquipped
 
bool discountAvailable
 
bool hasLuckyCoin
 
Item boneGloveItem
 
bool goldRing
 
bool accDivingHelm
 
bool accFlipper
 
bool hasLuck_LuckyCoin
 
bool hasLuck_LuckyHorseshoe
 
int doubleJumpsConsumed
 
bool hasJumpOption_Cloud
 
bool canJumpAgain_Cloud
 
bool isPerformingJump_Cloud
 
bool hasJumpOption_Sandstorm
 
bool canJumpAgain_Sandstorm
 
bool isPerformingJump_Sandstorm
 
bool hasJumpOption_Blizzard
 
bool canJumpAgain_Blizzard
 
bool isPerformingJump_Blizzard
 
bool hasJumpOption_Fart
 
bool canJumpAgain_Fart
 
bool isPerformingJump_Fart
 
bool hasJumpOption_Sail
 
bool canJumpAgain_Sail
 
bool isPerformingJump_Sail
 
bool hasJumpOption_Unicorn
 
bool canJumpAgain_Unicorn
 
bool isPerformingJump_Unicorn
 
bool hasJumpOption_Santank
 
bool canJumpAgain_Santank
 
bool isPerformingJump_Santank
 
bool hasJumpOption_WallOfFleshGoat
 
bool canJumpAgain_WallOfFleshGoat
 
bool isPerformingJump_WallOfFleshGoat
 
bool hasJumpOption_Basilisk
 
bool canJumpAgain_Basilisk
 
bool isPerformingJump_Basilisk
 
bool isPerformingPogostickTricks
 
bool autoJump
 
bool justJumped
 
float jumpSpeedBoost
 
int extraFall
 
bool canFloatInWater
 
bool hasFloatingTube
 
bool frogLegJumpBoost
 
bool skyStoneEffects
 
bool spawnMax
 
int blockRange
 
int[] grappling
 
int grapCount
 
int rocketTime
 
int rocketTimeMax
 
int rocketDelay
 
int rocketDelay2
 
int rocketSoundDelay
 
bool rocketRelease
 
bool rocketFrame
 
int rocketBoots
 
int vanityRocketBoots
 
bool canRocket
 
bool jumpBoost
 
bool noFallDmg
 
int swimTime
 
bool killGuide
 
bool killClothier
 
float equipmentBasedLuckBonus
 
float lastEquipmentBasedLuckBonus
 
bool hasCreditsSceneMusicBox
 
bool lavaImmune
 
bool gills
 
bool slowFall
 
bool findTreasure
 
bool biomeSight
 
bool invis
 
bool detectCreature
 
bool nightVision
 
bool enemySpawns
 
float thorns
 
bool turtleArmor
 
bool turtleThorns
 
bool cactusThorns
 
bool spiderArmor
 
bool anglerSetSpawnReduction
 
bool CanSeeInvisibleBlocks
 
bool setSolar
 
bool setVortex
 
bool setNebula
 
int nebulaCD
 
bool setStardust
 
bool setForbidden
 
bool setForbiddenCooldownLocked
 
bool setSquireT3
 
bool setHuntressT3
 
bool setApprenticeT3
 
bool setMonkT3
 
bool setSquireT2
 
bool setHuntressT2
 
bool setApprenticeT2
 
bool setMonkT2
 
int maxTurrets
 
int maxTurretsOld
 
bool vortexStealthActive
 
bool waterWalk
 
bool waterWalk2
 
int forcedGravity
 
bool gravControl
 
bool gravControl2
 
Item honeyCombItem
 
int wireOperationsCooldown
 
int lastChest
 
TrackedProjectileReference piggyBankProjTracker
 
List< int > interactableProjectiles
 
TrackedProjectileReference voidLensChest
 
int chest
 
int chestX
 
int chestY
 
Player.eToHellAndBackStatus ToHellAndBackStatus
 
int talkNPC
 
int fallStart
 
int fallStart2
 
int potionDelayTime
 
int restorationDelayTime
 
int mushroomDelayTime
 
bool isPettingAnimal
 
bool isTheAnimalBeingPetSmall
 
PlayerSittingHelper sitting
 
PlayerSleepingHelper sleeping
 
PlayerEyeHelper eyeHelper
 
PlayerInteractionAnchor tileEntityAnchor
 
DoorOpeningHelper doorHelper
 
ShoppingSettings currentShoppingSettings
 
int cHead
 
int cBody
 
int cLegs
 
int cHandOn
 
int cHandOff
 
int cBack
 
int cFront
 
int cShoe
 
int cWaist
 
int cShield
 
int cNeck
 
int cFace
 
int cFaceHead
 
int cFaceFlower
 
int cBalloon
 
int cBalloonFront
 
int cWings
 
int cCarpet
 
int cFloatingTube
 
int cBackpack
 
int cTail
 
int cShieldFallback
 
int cGrapple
 
int cMount
 
int cMinecart
 
int cPet
 
int cLight
 
int cYorai
 
int cPortableStool
 
int cUnicornHorn
 
int cAngelHalo
 
int cBeard
 
int cMinion
 
int cLeinShampoo
 
int cFlameWaker
 
int[] ownedProjectileCounts
 
bool[] npcTypeNoAggro
 
int lastPortalColorIndex
 
int _portalPhysicsTime
 
bool portalPhysicsFlag
 
int lastTeleportPylonStyleUsed
 
float MountFishronSpecialCounter
 
Microsoft.Xna.Framework.Vector2 MinionRestTargetPoint
 
int MinionAttackTargetNPC
 
List< PointTouchedTiles
 
int itemAnimation
 
int itemAnimationMax
 
int itemTime
 
int itemTimeMax
 
int toolTime
 
bool equippedAnyTileRangeAcc
 
bool equippedAnyTileSpeedAcc
 
bool equippedAnyWallSpeedAcc
 
bool behindBackWall
 
int _funkytownAchievementCheckCooldown
 
float torchLuck
 
bool happyFunTorchTime
 
int ladyBugLuckTimeLeft
 
float luck
 
float luckMinimumCap
 
float luckMaximumCap
 
float coinLuck
 
bool luckNeedsSync
 
int disableVoidBag
 
PlayerMovementAccsCache movementAbilitiesCache
 
float wingAccRunSpeed
 
float wingRunAccelerationMult
 
bool hasRaisableShield
 
bool shieldRaised
 
int shieldParryTimeLeft
 
int shield_parry_cooldown
 
int[] hurtCooldowns
 
int[] meleeNPCHitCooldown
 
float musicDist
 
EquipmentLoadout[] Loadouts
 
int CurrentLoadoutIndex
 
Player.SavedPlayerDataWithAnnoyingRules savedPerPlayerFieldsThatArentInThePlayerClass
 
int whoAmI
 
bool active
 
Vector2 position
 
Vector2 velocity
 
Vector2 oldPosition
 
Vector2 oldVelocity
 
int oldDirection
 
int direction
 
int width
 
int height
 
bool wet
 
bool shimmerWet
 
bool honeyWet
 
byte wetCount
 
bool lavaWet
 

Static Public Attributes

static int taxRate
 
const int crystalLeafDamage = 100
 
const int crystalLeafKB = 10
 
const int manaSickTime = 300
 
const int manaSickTimeMax = 600
 
const float manaSickLessDmg = 0.25f
 
const int nameLen = 20
 
static bool deadForGood
 
const float defaultGravity = 0.4f
 
const int defaultItemGrabRange = 42
 
static bool requestedSignInfo
 
static int lastRequestSignX
 
static int lastRequestSignY
 
static Player EmptyPlayer
 
const int maxSolarShields = 3
 
const int nebulaMaxLevel = 3
 
const int SupportedSlotsArmor = 3
 
const int SupportedSlotsAccs = 7
 
const int SupportedSlotSets = 10
 
const int InitialAccSlotCount = 5
 
const int miscSlotPet = 0
 
const int miscSlotLight = 1
 
const int miscSlotCart = 2
 
const int miscSlotMount = 3
 
const int miscSlotHook = 4
 
const int SupportedMiscSlotCount = 5
 
static readonly int maxBuffs
 
const int fartKartCloudDelayMax = 20
 
const int respawnTimerMax = 3600
 
const int defaultWidth = 20
 
const int defaultHeight = 42
 
const int shadowMax = 3
 
static readonly float PhilosopherStoneDurationMultiplier
 
const int SafeItemAnimationTimeForPreventingExploits = 20
 
static float airLightDecay
 
static float solidLightDecay
 
static int[] PetBuffs
 
const int ChairSittingMaxDistance = 40
 
const int SHIELD_PARRY_DURATION = 20
 
const int SHIELD_PARRY_DURATION_DRAWING_TWEAKER = 20
 
const int SHIELD_PARRY_DAMAGE_BUFF_MULTIPLIER = 5
 
static int FlexibleWandRandomSeed
 
static int FlexibleWandCycleOffset
 
static Point FlexibleWandLastPosition
 

Package Attributes

long entityId
 

Properties

static int tileRangeX [get, set]
 
static int tileRangeY [get, set]
 
static int tileTargetX [get, set]
 
static int tileTargetY [get, set]
 
static int jumpHeight [get, set]
 
static float jumpSpeed [get, set]
 
static int BlockInteractionWithProjectiles [get, set]
 
static bool lastPound [get, set]
 
static int musicNotes [get, set]
 
Microsoft.Xna.Framework.Vector2 BlehOldPositionFixer [get, set]
 
float HeightOffsetVisual [get, set]
 
float HeightOffsetHitboxCenter [get, set]
 
float MountXOffset [get, set]
 
int HeightOffsetBoost [get, set]
 
int HeightMapOffset [get, set]
 
Rectangle HitboxForBestiaryNearbyCheck [get, set]
 
bool IsStandingStillForSpecialEffects [get, set]
 
Microsoft.Xna.Framework.Vector2 MountedCenter [get, set]
 
bool TileReplacementEnabled [get, set]
 
override Microsoft.Xna.Framework.Vector2 VisualPosition [get, set]
 
bool CCed [get, set]
 
float miscCounterNormalized [get, set]
 
bool Male [get, set]
 
bool ZoneDungeon [get, set]
 
bool ZoneCorrupt [get, set]
 
bool ZoneHallow [get, set]
 
bool ZoneMeteor [get, set]
 
bool ZoneJungle [get, set]
 
bool ZoneSnow [get, set]
 
bool ZoneCrimson [get, set]
 
bool ZoneWaterCandle [get, set]
 
bool ZonePeaceCandle [get, set]
 
bool ZoneTowerSolar [get, set]
 
bool ZoneTowerVortex [get, set]
 
bool ZoneTowerNebula [get, set]
 
bool ZoneTowerStardust [get, set]
 
bool ZoneDesert [get, set]
 
bool ZoneGlowshroom [get, set]
 
bool ZoneUndergroundDesert [get, set]
 
bool ZoneSkyHeight [get, set]
 
bool ZoneOverworldHeight [get, set]
 
bool ZoneDirtLayerHeight [get, set]
 
bool ZoneRockLayerHeight [get, set]
 
bool ZoneUnderworldHeight [get, set]
 
bool ZoneBeach [get, set]
 
bool ZoneRain [get, set]
 
bool ZoneSandstorm [get, set]
 
bool ZoneOldOneArmy [get, set]
 
bool ZoneGranite [get, set]
 
bool ZoneMarble [get, set]
 
bool ZoneHive [get, set]
 
bool ZoneGemCave [get, set]
 
bool ZoneLihzhardTemple [get, set]
 
bool ZoneGraveyard [get, set]
 
bool ZoneShadowCandle [get, set]
 
bool ZoneShimmer [get, set]
 
bool ShoppingZone_AnyBiome [get, set]
 
bool ShoppingZone_BelowSurface [get, set]
 
bool ShoppingZone_Forest [get, set]
 
Microsoft.Xna.Framework.Vector2 Directions [get, set]
 
Item HeldItem [get, set]
 
int breathCDMax [get, set]
 
bool ShouldFloatInWater [get, set]
 
bool CanBeTalkedTo [get, set]
 
bool IsVoidVaultEnabled [get, set]
 
bool DeadOrGhost [get, set]
 
bool TryingToHoverUp [get, set]
 
bool TryingToHoverDown [get, set]
 
Microsoft.Xna.Framework.Vector2 DefaultSize [get, set]
 
bool UsingBiomeTorches [get, set]
 
bool UsingSuperCart [get, set]
 
float bowEffectiveDamage [get, set]
 
float gunEffectiveDamage [get, set]
 
float specialistEffectiveDamage [get, set]
 
bool ShouldNotDraw [get, set]
 
bool isLockedToATile [get, set]
 
bool PortalPhysicsEnabled [get, set]
 
bool MountFishronSpecial [get, set]
 
bool HasMinionRestTarget [get, set]
 
bool HasMinionAttackTargetNPC [get, set]
 
bool ItemTimeIsZero [get, set]
 
bool ItemAnimationJustStarted [get, set]
 
float NormalizedLuck [get, set]
 
bool SlimeDontHyperJump [get, set]
 
Microsoft.Xna.Framework.? Vector2 MouthPosition [get, set]
 
Microsoft.Xna.Framework.? Vector2 HandPosition [get, set]
 
Vector2 Center [get, set]
 
Vector2 Left [get, set]
 
Vector2 Right [get, set]
 
Vector2 Top [get, set]
 
Vector2 TopLeft [get, set]
 
Vector2 TopRight [get, set]
 
Vector2 Bottom [get, set]
 
Vector2 BottomLeft [get, set]
 
Vector2 BottomRight [get, set]
 
Vector2 Size [get, set]
 
Rectangle Hitbox [get, set]
 

Private Member Functions

void ApplyItemAnimation (Item sItem)
 
bool AddBuff_ActuallyTryToAddTheBuff (int type, int time)
 
void AddBuff_RemoveOldMeleeBuffsOfMatchingType (int type)
 
void AddBuff_RemoveOldPetBuffsOfMatchingType (int type)
 
bool AddBuff_TryUpdatingExistingBuffTime (int type, int time)
 
int AddBuff_DetermineBuffTimeToAdd (int type, int time1)
 
Item QuickBuff_PickBestFoodItem ()
 
int QuickBuff_FindFoodPriority (int buffType)
 
bool QuickBuff_ShouldBotherUsingThisBuff (int attemptedType)
 
void QuickMinecart ()
 
bool QuickMinecartSnap ()
 
void FireGrapple (Item grappleItem)
 
void TrySyncingInput ()
 
void TryGettingDevArmor (IEntitySource source)
 
void UpdateItemDye (bool isNotInVanitySlot, bool isSetToHidden, Item armorItem, Item dyeItem)
 
void UpdateProjectileCaches (int i)
 
void ResetProjectileCaches ()
 
void UpdateAbigailStatus ()
 
void UpdateStormTigerStatus ()
 
int GetDesiredStormTigerMinionRank ()
 
bool UpdateEquips_CanItemGrantBenefits (int itemSlot, Item item)
 
void GrantArmorBenefits (Item armorPiece)
 
void GrantPrefixBenefits (Item item)
 
void SpawnHallucination (Item item)
 
void ApplyEquipVanity (int itemSlot, Item currentItem)
 
void DoEyebrellaRainEffect ()
 
void ApplyEquipFunctional (int itemSlot, Item currentItem)
 
void ApplyWilsonBeard (Item currentItem)
 
void ApplyMusicBox (Item currentItem)
 
string GetArmourSetId (string id, string formatId=null)
 
void UpdateGraveyard (bool now=false)
 
void TrySpawningFaelings ()
 
void TryOpeningInGameOptionsBasedOnInput ()
 
void SmartInteractLookup_PrepareCommonlyUsedInfo (out Microsoft.Xna.Framework.Vector2 mousevec, out int LX, out int HX, out int LY, out int HY)
 
void SmartSelectLookup_GetTargetTile (out int tX, out int tY)
 
void SmartSelect_PickToolForStrategy (int tX, int tY, int toolStrategy, bool wetTile)
 
void SmartSelect_SelectItem (int t)
 
void SmartSelect_GetToolStrategy (int tX, int tY, out int toolStrategy, out bool wetTile)
 
void SmartSelect_GetAvailableToolRanges (out int pickRange, out int axeRange, out int hammerRange, out int cannonRange, out int extractItemRange, out int paintScraperRange)
 
void EndOngoingTorchGodEvent ()
 
void TryRecalculatingTorchLuck ()
 
void RelightTorches ()
 
void TorchAttack ()
 
void UpdateTorchLuck_ConsumeCountersAndCalculate ()
 
void UpdateCoinLuck ()
 
float CalculateCoinLuck ()
 
float GetLadyBugLuck ()
 
void UpdateLadyBugLuckTime ()
 
void TryToPoop ()
 
void TryUsingDiggerCart ()
 
void SpawnFastRunParticles ()
 
void MowTheLawn ()
 
void MowGrassTile (Microsoft.Xna.Framework.Vector2 thePos)
 
int CollideWithNPCs (Rectangle myRect, float Damage, float Knockback, int NPCImmuneTime, int PlayerImmuneTime)
 
void SolarDashStart (int dashDirection)
 
void DoCommonDashHandle (out int dir, out bool dashing, Player.DashStartAction dashStartAction=null)
 
void GetGrapplingForces (Microsoft.Xna.Framework.Vector2 fromPosition, out int? preferredPlayerDirectionToSet, out float preferedPlayerVelocityX, out float preferedPlayerVelocityY)
 
void RefreshMovementAbilities (bool doubleJumps=true)
 
void RefreshDoubleJumps ()
 
void TryFloatingInFluid ()
 
bool TouchBlockSurfaceCenter (int x, int y, Tile tile, out int exitNormalX, out int exitNormalY, out Microsoft.Xna.Framework.Vector2 surfaceCenter)
 
void MakeFloorDust (bool Falling, int type, int paintColor)
 
bool CanMoveForwardOnRope (int dir, int x, int y)
 
bool CanUseItem ()
 
void TryToShimmerUnstuck ()
 
void ShimmerUnstuck ()
 
Microsoft.Xna.Framework.? Vector2 TryFindingShimmerFreeSpot ()
 
void AdjustRemainingPotionSickness ()
 
Collision.HurtTile GetHurtTile ()
 
void ApplyTouchDamage (int tileId, int x, int y)
 
void CapAttackSpeeds ()
 
float TurnAttackSpeedToUseTimeMultiplier (float speed)
 
void ResetControls ()
 
void UpdateControlHolds ()
 
void UpdatePortableStoolUsage ()
 
void ResizeHitbox ()
 
void UpdateReleaseUseTile ()
 
void GetMinecartDamage (float currentSpeed, out int damage, out float knockback)
 
void WingAirLogicTweaks ()
 
void RocketBootVisuals ()
 
void WingAirVisuals ()
 
void HandleBeingInChestRange ()
 
void PurgeDD2EnergyCrystals ()
 
void HandleHotbar ()
 
void ItemCheckWrapped (int i)
 
void ForceForwardCursor (bool state)
 
void ForceSmartSelectCursor (bool state)
 
void TryInteractingWithMinecartTrackInNearbyArea (int selectedTargetX, int selectedTargetY)
 
void TileInteractionsCheckLongDistance (int myX, int myY)
 
void TileInteractionsUse (int myX, int myY)
 
void GetPettingInfo (int animalNpcIndex, out int targetDirection, out Microsoft.Xna.Framework.Vector2 playerPositionWhenPetting, out bool isPetSmall)
 
void TryAllowingSnappingToPosition (ref bool canSnapToPosition, Microsoft.Xna.Framework.Vector2 pos1, Microsoft.Xna.Framework.Vector2 pos2)
 
void StopPettingAnimal ()
 
void UpdatePettingAnimal ()
 
void OpenChest (int x, int y, int newChest)
 
void LaunchMinecartHook (int myX, int myY)
 
void TileInteractionsMouseOver (int myX, int myY)
 
void TileInteractionsMouseOver_Containers (int myX, int myY)
 
void TryLandingOnDetonator ()
 
void TryBouncingBlocks (bool Falling)
 
void GrabItems (int i)
 
void PullItem_ToVoidVault (Item itemToPickUp)
 
void PullItem_Common (Item itemToPickUp, float xPullSpeed)
 
void PullItem_Pickup (Item itemToPickUp, float speed, int acc)
 
Item PickupItem (int playerIndex, int worldItemArrayIndex, Item itemToPickUp)
 
void RefreshItems (Item[] array, bool onlyIfVariantChanged)
 
void CancelAllJumpVisualEffects ()
 
void CancelAllBootRunVisualEffects ()
 
void UpdateFishingBobber (Item item)
 
void UpdateBootVisualEffects (Item item)
 
void UpdateVisibleAccessories ()
 
bool ItemIsVisuallyIncompatible (Item item)
 
bool IsVisibleCapeBad (int accFrontSlot)
 
void UpdateVisibleAccessory (int itemSlot, Item item)
 
void Spawn_SetPositionAtWorldSpawn ()
 
bool Spawn_IsAreaAValidWorldSpawn (int floorX, int floorY)
 
void Spawn_SetPosition (int floorX, int floorY)
 
void PutHallowedArmorSetBonusOnCooldown ()
 
int GetRespawnTime (bool pvp)
 
bool GetItem_VoidVault (int plr, Item[] inventory, Item newItem, GetItemSettings settings, Item returnItem)
 
bool CanVoidVaultAccept (Item item)
 
bool GetItem_FillIntoOccupiedSlot_VoidBag (int plr, Item[] inv, Item newItem, GetItemSettings settings, Item returnItem, int i)
 
bool GetItem_FillIntoOccupiedSlot (int plr, Item newItem, GetItemSettings settings, Item returnItem, int i)
 
bool GetItem_FillEmptyInventorySlot_VoidBag (int plr, Item[] inv, Item newItem, GetItemSettings settings, Item returnItem, int i)
 
bool GetItem_FillEmptyInventorySlot (int plr, Item newItem, GetItemSettings settings, Item returnItem, int i, bool disableMerge)
 
void PlaceThing_Walls ()
 
void PlaceThing_Walls_FillEmptySpace ()
 
void PlaceThing_Tiles ()
 
bool ModifyFlexibleWandPlacementInfo (ref int tileType, ref int tileStyle, ref int? forcedRandom)
 
bool PlaceThing_TryReplacingWalls (bool canUse)
 
bool PlaceThing_ValidWallForReplacement ()
 
bool PlaceThing_TryReplacingTiles (bool canUse)
 
bool PlaceThing_ValidTileForReplacement ()
 
bool PlaceThing_CheckSpecificValidtyCaseForBlockSwap (int tileTypeBeingPlaced, int tileTypeCurrentlyPlaced)
 
TileObject PlaceThing_Tiles_PlaceIt (bool newObjectType, TileObject data, int tileToCreate)
 
int[,] PlaceThing_Tiles_GetAutoAccessoryCache ()
 
int PlaceThing_Tiles_PlaceIt_GetLegacyTileStyle (int style)
 
void PlaceThing_Tiles_PlaceIt_UnslopeForSolids ()
 
void PlaceThing_Tiles_PlaceIt_KillGrassForSolids ()
 
void PlaceThing_Tiles_PlaceIt_AutoPaintAndActuate (int[,] typeCaches, int tileToCreate)
 
void PlaceThing_Tiles_PlaceIt_SpinSmartPlatform ()
 
void PlaceThing_Tiles_PlaceIt_TriggerLogicLamp ()
 
void PlaceThing_Tiles_PlaceIt_SpinBedsAndBaths ()
 
void PlaceThing_Tiles_PlaceIt_SpinChairs ()
 
void PlaceThing_Tiles_PlaceIt_SpinTraps ()
 
void PlaceThing_Tiles_PlaceIt_AdjustPlants ()
 
bool PlaceThing_Tiles_PlaceIt_StaffOfRegrowthCheck (bool placed)
 
bool PlaceThing_Tiles_BlockPlacementForAssortedThings (bool canPlace)
 
bool PlaceThing_Tiles_CheckLavaBlocking ()
 
bool PlaceThing_Tiles_CheckRopeUsability (bool canUse)
 
bool PlaceThing_Tiles_CheckFlexibleWand (bool canUse)
 
bool PlaceThing_Tiles_CheckWandUsability (bool canUse)
 
bool PlaceThing_Tiles_CheckGamepadTorchUsability (bool canUse)
 
void PlaceThing_LockChest ()
 
void PlaceThing_ItemInExtractinator (ref Player.ItemCheckContext context)
 
void PlaceThing_XMasTreeTops ()
 
void PlaceThing_CannonBall ()
 
void PlaceThing_PaintScrapper ()
 
void PlaceThing_PaintScrapper_LongMoss (int x, int y)
 
void PlaceThing_PaintScrapper_TryScrapping (int x, int y)
 
void PlaceThing_PaintRoller ()
 
void PlaceThing_Paintbrush ()
 
void TryPainting (int x, int y, bool paintingAWall=false, bool applyItemAnimation=true)
 
void ApplyCoating (int x, int y, bool paintingAWall, bool applyItemAnimation, Item targetItem)
 
void ApplyPaint (int x, int y, bool paintingAWall, bool applyItemAnimation, Item targetItem)
 
void ShootFromCannon (int x, int y)
 
void ExtractinatorUse (int extractType, int extractinatorBlockType)
 
void DropItemFromExtractinator (int itemType, int stack)
 
void Fishing_GetBait (out int baitPower, out int baitType)
 
void Fishing_GetBestFishingPole (out int fishingPolePower, out int fishingPoleType)
 
void PayDD2CrystalsBeforeUse (Item item)
 
bool CheckDD2CrystalPaymentLock (Item item)
 
int GetRequiredDD2CrystalsToUse (Item item)
 
void UpdatePlacementPreview (Item sItem)
 
void FigureOutWhatToPlace (Tile targetTile, Item sItem, out int tileToCreate, out int previewPlaceStyle, out bool? overrideCanPlace, out int? forcedRandom)
 
void ItemCheck_OwnerOnlyCode (ref Player.ItemCheckContext context, Item sItem, int weaponDamage, Rectangle heldItemFrame)
 
void ItemCheck_EmitFoodParticles (Item sItem)
 
void ItemCheck_EmitDrinkParticles (Item sItem)
 
void ItemCheck_UseBossSpawners (int onWhichPlayer, Item sItem)
 
void ItemCheck_UseEventItems (Item sItem)
 
void ItemCheck_ReleaseCritter (Item sItem)
 
void ItemCheck_MeleeHitPVP (Item sItem, Rectangle itemRectangle, int damage, float knockBack)
 
void Volcano_TrySpawningVolcano (NPC npc, Item sItem, float damage, float knockBack, Rectangle itemRectangle)
 
void TentacleSpike_TrySpiking (NPC npc, Item sItem, float damage, float knockBack)
 
void BloodButcherer_TryButchering (NPC npc, Item sItem, float damage, float knockBack)
 
void BatBat_TryLifeLeeching (Entity entity)
 
void ItemCheck_MeleeHitNPCs (Item sItem, Rectangle itemRectangle, int originalDamage, float knockBack)
 
void ProcessHitAgainstNPC (Item sItem, Rectangle itemRectangle, int originalDamage, float knockBack, int npcIndex)
 
void ApplyNPCOnHitEffects (Item sItem, Rectangle itemRectangle, int damage, float knockBack, int npcIndex, int dmgRandomized, int dmgDone)
 
void ItemCheck_EmitHammushProjectiles (int i, Item sItem, Rectangle itemRectangle, int damage)
 
bool[] ItemCheck_GetTileCutIgnoreList (Item sItem)
 
void ItemCheck_CutTiles (Item sItem, Rectangle itemRectangle, bool[] shouldIgnore)
 
Rectangle ItemCheck_CatchCritters (Item sItem, Rectangle itemRectangle)
 
void GetPointOnSwungItemPath (float spriteWidth, float spriteHeight, float normalizedPointOnPath, float itemScale, out Microsoft.Xna.Framework.Vector2 location, out Microsoft.Xna.Framework.Vector2 outwardDirection)
 
Rectangle ItemCheck_EmitUseVisuals (Item sItem, Rectangle itemRectangle)
 
void ItemCheck_GetMeleeHitbox (Item sItem, Rectangle heldItemFrame, out bool dontAttack, out Rectangle itemRectangle)
 
void ItemCheck_UseDemonHeart (Item sItem)
 
void ItemCheck_UseMinecartPowerUp (Item sItem)
 
void ItemCheck_UseArtisanLoaf (Item sItem)
 
void ItemCheck_UseTorchGodsFavor (Item sItem)
 
void ItemCheck_TryDestroyingDrones (Item sItem)
 
void ItemCheck_UseManaCrystal (Item sItem)
 
void ItemCheck_UseLifeFruit (Item sItem)
 
void ItemCheck_UseLifeCrystal (Item sItem)
 
void ItemCheck_UseCombatBook (Item sItem)
 
void ItemCheck_UsePetLicenses (Item sItem)
 
void ItemCheck_UsePeddlersSatchel (Item sItem)
 
void ItemCheck_UseShimmerPermanentItems (Item sItem)
 
void LicenseOrExchangePet (Item sItem, ref bool petBoughtFlag, int npcType, string textKeyForLicense, int netMessageData)
 
void ItemCheck_UseTeleportRod (Item sItem)
 
bool IsTilePoundable (Tile targetTile)
 
void UseShovel (Player user, Item item, int sX, int sY)
 
void DamageTileWithShovel (Player user, Item item, int x, int y)
 
void ItemCheck_UseMiningTools (Item sItem)
 
void ItemCheck_UseMiningTools_ActuallyUseMiningTool (Item sItem, out bool canHitWalls, int x, int y)
 
bool IsBottomOfTreeTrunkNoRoots (int x, int y)
 
void TryReplantingTree ()
 
void ItemCheck_UseMiningTools_TryHittingWall (Item sItem, int wX, int wY)
 
void ItemCheck_UseMiningTools_TryPoundingTile (Item sItem, int tileHitId, ref bool hitWall, int x, int y)
 
void ItemCheck_UseBuckets (Item sItem)
 
void ItemCheck_PlayInstruments (Item sItem)
 
bool GetSparkleGuitarTarget (out List< NPC > validTargets)
 
bool GetZenithTarget (Microsoft.Xna.Framework.Vector2 searchCenter, float maxDistance, out int npcTargetIndex)
 
void ItemCheck_UseWiringTools (Item sItem)
 
void ItemCheck_UseLawnMower (Item sItem)
 
void DestroyOldestProximityMinesOverMinesCap (int minesCap)
 
void ItemCheck_Shoot (int i, Item sItem, int weaponDamage)
 
Point FindSharpTearsSpot (Microsoft.Xna.Framework.Vector2 targetSpot)
 
bool FindSharpTearsOpening (int x, int y, bool acceptLeft, bool acceptRight, bool acceptUp, bool acceptDown)
 
void ItemCheck_MinionAltFeatureUse (Item sItem, bool cShoot)
 
void ItemCheck_TurretAltFeatureUse (Item sItem, bool cShoot)
 
void EmitMaxManaEffect ()
 
void ItemCheck_EmitHeldItemLight (Item sItem)
 
void ItemCheck_ApplyHoldStyle (float mountOffset, Item sItem, Rectangle heldItemFrame)
 
void ItemCheck_ApplyManaRegenDelay (Item sItem)
 
void ItemCheck_StartActualUse (Item sItem)
 
void FreeUpPetsAndMinions (Item sItem)
 
void ApplyPotionDelay (Item sItem)
 
void ApplyLifeAndOrMana (Item item)
 
bool ItemCheck_CheckCanUse (Item sItem)
 
bool ItemCheck_CheckUsabilityOfProjectiles (bool canUse)
 
bool ItemCheck_CheckFishingBobbers (bool canUse)
 
void ItemCheck_CheckFishingBobber_PullBobber (Projectile bobber, int baitTypeUsed)
 
void ItemCheck_CheckFishingBobber_PickAndConsumeBait (Projectile bobber, out bool pullTheBobber, out int baitTypeUsed)
 
bool ItemCheck_PayMana (Item sItem, bool canUse)
 
void ItemCheck_TryPlacingWearablesOnMannequins (Item sItem)
 
void ApplyReuseDelay ()
 
void ItemCheck_HackHoldStyles (Item sItem)
 
void ItemCheck_HandleMPItemAnimation (Item sItem)
 
void TryAllowingItemReuse (Item sItem)
 
void ItemCheck_HandleMount ()
 
void ItemCheck_ApplyPetBuffs (Item sItem)
 
bool PickAmmo_TryFindingSpecificMatches (int launcher, int ammo, out int pickedProjectileId)
 
void ClearMiningCacheAt (int x, int y, int hitTileCacheType)
 
int GetPickaxeDamage (int x, int y, int pickPower, int hitBufferIndex, Tile tileTarget)
 
bool DoesPickTargetTransformOnKill (HitTile hitCounter, int damage, int x, int y, int pickPower, int bufferIndex, Tile tileTarget)
 
void CloneLoadouts (Player clonePlayer)
 
void SaveTemporaryItemSlotContents (BinaryWriter writer)
 
void LoadTemporaryItemSlotContents (BinaryReader reader)
 
void FixLoadedData_Items (Item[] items)
 
void GetAnglerReward_MainReward (IEntitySource source, int questsDone, float rarityReduction, int questItemType, ref GetItemSettings anglerRewardSettings)
 
void GetAnglerReward_Decoration (IEntitySource source, int questsDone, float rarityReduction, ref GetItemSettings anglerRewardSettings)
 
void GetAnglerReward_Bait (IEntitySource source, int questsDone, float rarityReduction, ref GetItemSettings anglerRewardSettings)
 
void GetAnglerReward_Money (IEntitySource source, int questsDone, float rarityReduction, ref GetItemSettings anglerRewardSettings)
 
void RemoveAnglerAccOptionsFromRewardPool (List< int > itemIdsOfAccsWeWant, Item itemToTestAgainst)
 

Static Private Member Functions

static void OpenInventory ()
 
static int ClampHotbarOffset (int Offset)
 
static bool IsHoveringOverABottomSideOfABed (int myX, int myY)
 
static bool TryPurchasing (long price, List< Item[]> inv, List< Point > slotCoins, List< Point > slotsEmpty, List< Point > slotEmptyBank, List< Point > slotEmptyBank2, List< Point > slotEmptyBank3, List< Point > slotEmptyBank4)
 
static int Spawn_DescendFromDefaultSpace (int x, int y)
 
static void Spawn_ForceClearArea (int floorX, int floorY)
 
static bool AllowShimmerDodge (PlayerDeathReason damageSource, int cooldownCounter, bool dodgeable)
 
static void PlaceThing_Tiles_BlockPlacementForRepeatedPumpkins (ref bool canPlace, ref TileObject data)
 
static void PlaceThing_Tiles_BlockPlacementForRepeatedCoralAndBeachPiles (ref bool canPlace, ref TileObject data)
 
static void PlaceThing_Tiles_BlockPlacementForRepeatedPigronatas (ref bool canPlace, ref TileObject data)
 
static void PlaceThing_Tiles_BlockPlacementIfOverPlayers (ref bool canPlace, ref TileObject data)
 
static ItemTrader TryGettingItemTraderFromBlock (Tile targetBlock)
 
static float Fishing_GetPowerMultiplier ()
 
static void ItemCheck_UseMiningTools_TryFindingWallToHammer (out int wX, out int wY)
 
static bool ItemCheck_IsValidDirtRodTarget (Tile t)
 
static bool CheckSpawn_Internal (int x, int y)
 
static void InternalSavePlayerFile (PlayerFileData playerFile)
 
static void AdjustRespawnTimerForWorldJoining (Player newPlayer)
 
static void LoadPlayer_LastMinuteFixes (Player newPlayer)
 
static Player ()
 

Private Attributes

bool dontConsumeWand
 
bool _wasInShimmerZone
 
int _timeSinceLastImmuneGet
 
int _immuneStrikes
 
bool rewsing
 
Player.ChannelCancelKey _channelShotCache
 
EntityShadowInfo[] _advancedShadows
 
int _lastAddedAvancedShadow
 
bool shimmerImmune
 
float FractionalDistanceTraveled
 
bool _batbatCanHeal
 
bool _spawnTentacleSpikes
 
bool _spawnBloodButcherer
 
bool _spawnVolcanoExplosion
 
bool _spawnMuramasaCut
 
HashSet< Point_blackListedTileCoordsForGrappling
 
bool makeStrongBee
 
float _stormShaderObstruction
 
float _shaderObstructionInternalValue
 
int graveImmediateTime
 
float _deerclopsBlizzardSmoothedEffect
 
int _lastSmartCursorToolStrategy
 
bool[] nearbyTorch
 
bool dryCoralTorch
 
int luckyTorchCounter
 
int nearbyTorches
 
Microsoft.Xna.Framework.Vector2 _nextTorchLuckCheckCenter
 
int torchFunTimer
 
int torchGodCooldown
 
int numberOfTorchAttacksMade
 
int[] unlitTorchX
 
int[] unlitTorchY
 
int _quickGrappleCooldown
 
bool wasScopeActionActive
 
bool _forceForwardCursor
 
Point _inputMouseCoordsForward
 
Point _mainMouseCoordsForward
 
bool _forceSmartSelectCursor
 
Point _inputMouseCoordsSmartSelect
 
Point _mainMouseCoordsSmartSelect
 
Point _tileTargetSmartSelect
 
bool botherWithUnaimedMinecartTracks
 
List< int > _projectilesToInteractWith
 
int _lockTileInteractionsTimer
 
Item[] _temporaryItemSlots
 

Static Private Attributes

static float _blizzardSoundVolume
 
static SlotId _strongBlizzardSound
 
static SlotId _insideBlizzardSound
 
static GameCulture lastArmourCulture
 
static string lastId
 
static string lastFormatId
 
static string lastResult
 
static SmartInteractSystem _smartInteractSys
 
static int[] _torchAttackPosX
 
static int[] _torchAttackPosY
 
static List< Projectile_oldestProjCheckList
 
static byte[] ENCRYPTION_KEY
 
static bool disabledBlizzardGraphic
 
static bool disabledBlizzardSound
 
const int MaxAdvancedShadows = 60
 
static float itemGrabSpeed
 
static float itemGrabSpeedMax
 
const float PixelsPerMeter = 26.24672f
 
static Item defaultItem
 
static List< PointQuickMinecartPts
 
static List< NPC_hallucinationCandidates
 
static int maxTorchAttacks
 
static bool[] ItemUsesRightFire
 
static Item[] costInventory
 
static Item[] costBankInventory
 
static Item[] costBank2Inventory
 
static Item[] costBank3Inventory
 
static Item[] costBank4Inventory
 
static Point[] _tentacleSpikesMax5
 
static Point[] _bloodButchererMax5
 
const int SaveSlotIndex_MouseItem = 0
 
const int SaveSlotIndex_CreativeSacrifice = 1
 
const int SaveSlotIndex_GuideItem = 2
 
const int SaveSlotIndex_TinkererItem = 3
 
const int SaveSlotIndexCount = 4
 

Detailed Description

Definition at line 62 of file Player.cs.


The documentation for this class was generated from the following file: