Definition at line 13941 of file Player.cs.
13942 {
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13980 {
13983 }
13985 {
13988 }
13990 {
13993 }
13995 {
13998 }
14000 {
14003 }
14005 {
14008 }
14010 {
14013 }
14015 {
14018 }
14020 {
14023 }
14025 {
14028 }
14030 {
14033 }
14035 {
14043 {
14045 }
14050 {
14052 }
14054 {
14057 }
14059 {
14062 }
14064 {
14067 }
14069 {
14071 }
14073 {
14075 }
14077 {
14079 {
14081 {
14083 }
14084 }
14085 }
14086 }
14088 {
14094 {
14096 {
14098 {
14100 {
14102 }
14103 }
14104 }
14106 {
14109 }
14110 else
14111 {
14113 }
14114 }
14115 }
14117 {
14119 }
14120 else
14121 {
14124 {
14128 {
14130 }
14131 }
14133 {
14136 }
14138 {
14141 beetleVel[
m].X += (float)Main.rand.Next(-100, 101) * 0.005f;
14142 beetleVel[
m].Y += (float)Main.rand.Next(-100, 101) * 0.005f;
14145 float num14 = (float)
Math.Sqrt(x * x + y * y);
14147 {
14154 }
14156 {
14163 }
14166 num14 = (float)
Math.Sqrt(x * x + y * y);
14168 {
14171 }
14174 }
14175 }
14177 {
14180 }
14182 {
14185 }
14187 {
14190 }
14192 {
14195 }
14197 {
14201 }
14203 {
14206 }
14208 {
14211 }
14213 {
14218 }
14220 {
14223 }
14225 {
14229 }
14231 {
14235 }
14237 {
14240 }
14242 {
14245 }
14247 {
14251 }
14253 {
14256 }
14258 {
14260 {
14262 {
14264 }
14265 }
14266 }
14268 {
14271 }
14273 {
14276 }
14278 {
14283 }
14285 {
14287 {
14290 }
14291 else if (
head == 30)
14292 {
14295 }
14296 else if (
head == 31)
14297 {
14300 }
14301 }
14303 {
14305 {
14308 }
14309 else if (
head == 33)
14310 {
14313 }
14314 else if (
head == 34)
14315 {
14318 }
14319 }
14321 {
14323 {
14326 }
14327 else if (
head == 36)
14328 {
14332 }
14333 else if (
head == 37)
14334 {
14337 }
14338 }
14340 {
14343 }
14345 {
14348 }
14350 {
14353 {
14356 }
14357 else if (
head == 89)
14358 {
14361 }
14362 else if (
head == 90)
14363 {
14366 }
14368 {
14370 }
14371 }
14373 {
14375 {
14378 }
14379 else
14380 {
14382 }
14384 }
14386 {
14391 }
14393 {
14397 }
14399 {
14402 }
14404 {
14408 {
14410 }
14411 }
14413 {
14416 }
14418 {
14425 {
14427 {
14429 {
14431 {
14433 }
14434 }
14435 }
14437 {
14440 {
14442 obj.noGravity = true;
14443 obj.scale = 1.7f;
14444 obj.fadeIn = 0.5f;
14445 obj.velocity *= 5
f;
14447 }
14449 }
14450 else
14451 {
14453 }
14454 }
14456 {
14458 }
14460 {
14466 {
14468 }
14470 }
14472 {
14475 }
14478 {
14480 }
14481 }
14482 else
14483 {
14485 }
14487 {
14490 }
14491 else
14492 {
14494 }
14496 {
14498 {
14500 }
14503 }
14505 {
14508 if (
whoAmI == Main.myPlayer)
14509 {
14511 {
14513 }
14515 {
14519 Main.projectile[
num8].originalDamage =
num7;
14520 }
14521 }
14522 }
14524 {
14526 }
14528 {
14532 Lighting.AddLight(
base.Center, 0.8f, 0.7f, 0.2f);
14533 }
14535 {
14539 }
14541 {
14545 }
14547 {
14551 }
14553 {
14557 }
14559 {
14564 }
14566 {
14571 }
14573 {
14578 }
14580 {
14585 }
14587 {
14591 float num9 = 1.15f;
14593 }
14596 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Vector2 position
The position of this Entity in world coordinates.
int width
The width of this Entity's hitbox, in pixels.
int height
The height of this Entity's hitbox, in pixels.
static void HandleSpecialEvent(Player player, int eventID)
static ArmorShaderDataSet Armor
static string GetTextValue(string key)
Retrieves the text value for a specified localization key. The text returned will be for the currentl...
Contains methods to access or retrieve localization values. The Localization Guideteaches more about ...
static void UpdateArmorSet(Player player, Item head, Item body, Item legs)
If the head's ModItem.IsArmorSet returns true, calls the head's ModItem.UpdateArmorSet....
This serves as the central class from which item-related functions are carried out....
float moveSpeed
The multiplier on this player's F:Terraria.Player.maxRunSpeed and F:Terraria.Player....
bool[] buffImmune
Indexed by T:Terraria.ID.BuffID. If true for a given T:Terraria.ID.BuffID, then this player cannot be...
int dashType
The current vanilla dash that the player is using. The following values correspond to vanilla dashes...
float whipRangeMultiplier
ref StatModifier meleeDamage
int statManaMax2
The maximum mana this player can have, adjusted by buffs and equipment.
ref float summonerWeaponSpeedBonus
void ApplyArmorSoundAndDustChanges()
Item[] armor
The player's armor and accessories. Indexes 0-2 hold head, chest, and legs armor while 10-12 hold the...
ref StatModifier rangedDamage
IEntitySource GetProjectileSource_SetBonus(int projectileSourceId)
string setBonus
The text that is shown on armor (F:Terraria.Item.wornArmor) with an active set bonus.
bool anglerSetSpawnReduction
int FindBuffIndex(int type)
ref StatModifier magicDamage
DefenseStat statDefense
The defense value of this player. The Defense wiki pageteaches how player defense affects incoming d...
int maxMinions
The maximum value of minions this player can have summoned at once. A minion's value is stored as F...
Mount mount
This player's T:Terraria.Mount. Do not overwrite this value. Instead, call M:Terraria....
void UpdateForbiddenSetLock()
bool solarDashConsumedFlare
ref StatModifier minionDamage
int[] buffType
The T:Terraria.ID.BuffIDs of all buffs this player has active. A value of 0 means that buff slot is...
ref StatModifier allDamage
void AddBuff(int type, int timeToAdd, bool quiet=true, bool foodHack=false)
Gives the player the provided buff. This accounts for if the player is immune to the buff....
float endurance
The percent of damage this player should resist. Has a soft cap of 1f. Cannot reduce taken damage b...
int dashDelay
The amount of time that has to pass, in ticks, before a new dash input will be registered....
float manaCost
The percent of mana actually used when mana is consumed. Cannot reduce an item's mana cost below 0.
void DelBuff(int b)
Removes the buff at the provided index in F:Terraria.Player.buffType and F:Terraria....
int[] ownedProjectileCounts
Provides efficient access to the number of projectiles of the specified type owned by this player cur...
Item[] inventory
The player's normal inventory. Indexes 0-9 hold the hotbar items, 10-49 the rest of the main inventor...
References Terraria.Mount.Active, Terraria.Player.AddBuff(), Terraria.Lighting.AddLight(), Terraria.Player.allCrit, Terraria.Player.allDamage, Terraria.Player.ammoCost75, Terraria.Player.ammoCost80, Terraria.Player.anglerSetSpawnReduction, Terraria.Player.ApplyArmorSoundAndDustChanges(), Terraria.Graphics.Shaders.GameShaders.Armor, Terraria.Player.armor, Terraria.Player.ArmorSetDye(), Terraria.Player.ashWoodBonus, Terraria.Player.beetleCountdown, Terraria.Player.beetleCounter, Terraria.Player.beetleDefense, Terraria.Player.beetleFrame, Terraria.Player.beetleFrameCounter, Terraria.Player.beetleOffense, Terraria.Player.beetleOrbs, Terraria.Player.beetlePos, Terraria.Player.beetleVel, Terraria.Player.body, Terraria.Player.buffImmune, Terraria.Player.buffType, Terraria.Player.cactusThorns, Terraria.Player.crimsonRegen, Terraria.Player.crystalLeaf, Terraria.Player.dashDelay, Terraria.Player.dashType, Terraria.Player.DelBuff(), Terraria.Entity.direction, Terraria.Main.dust, Terraria.Player.endurance, Terraria.Player.FindBuffIndex(), Terraria.Player.frostBurn, Terraria.Player.GetProjectileSource_SetBonus(), Terraria.Localization.Language.GetTextValue(), Terraria.Player.ghostHeal, Terraria.Player.ghostHurt, Terraria.GameContent.Achievements.AchievementsHelper.HandleSpecialEvent(), Terraria.Player.head, Terraria.Entity.height, Terraria.Player.inventory, Terraria.Player.itemAnimation, Terraria.Player.legs, Terraria.Player.magicCrit, Terraria.Player.magicDamage, Terraria.Player.manaCost, Terraria.Player.maxBuffs, Terraria.Player.maxMinions, Terraria.Player.maxTurrets, Terraria.Player.meleeCrit, Terraria.Player.meleeDamage, Terraria.Player.meleeSpeed, Terraria.Player.minionDamage, Terraria.Player.miscCounter, Terraria.Player.mount, Terraria.Player.moveSpeed, Terraria.Main.myPlayer, Terraria.Player.nebulaCD, Terraria.Dust.NewDust(), Terraria.Projectile.NewProjectile(), Terraria.Player.noKnockback, Terraria.Player.onHitDodge, Terraria.Player.onHitPetal, Terraria.Player.onHitRegen, Terraria.Player.onHitTitaniumStorm, Terraria.Player.ownedProjectileCounts, Terraria.Player.pickSpeed, Terraria.Entity.position, Terraria.Main.projectile, Terraria.Main.rand, Terraria.Player.rangedCrit, Terraria.Player.rangedDamage, Terraria.Main.ReversedUpDownArmorSetBonuses, Terraria.Player.selectedItem, Terraria.Player.setApprenticeT2, Terraria.Player.setApprenticeT3, Terraria.Player.setBonus, Terraria.Player.setForbidden, Terraria.Player.setHuntressT2, Terraria.Player.setHuntressT3, Terraria.Player.setMonkT2, Terraria.Player.setMonkT3, Terraria.Player.setNebula, Terraria.Player.setSolar, Terraria.Player.setSquireT2, Terraria.Player.setSquireT3, Terraria.Player.setStardust, Terraria.Player.setVortex, Terraria.Player.shadowArmor, Terraria.Player.shroomiteStealth, Terraria.Player.solarCounter, Terraria.Player.solarDashConsumedFlare, Terraria.Player.solarDashing, Terraria.Player.solarShieldPos, Terraria.Player.solarShields, Terraria.Player.solarShieldVel, Terraria.Player.spaceGun, Terraria.Player.statDefense, Terraria.Player.statManaMax2, Terraria.Player.summonerWeaponSpeedBonus, Terraria.Player.thorns, Terraria.Player.turtleThorns, Terraria.Mount.Type, Terraria.ModLoader.ItemLoader.UpdateArmorSet(), Terraria.Player.UpdateForbiddenSetLock(), Terraria.Entity.velocity, Terraria.Player.vortexStealthActive, Terraria.Player.whipRangeMultiplier, Terraria.Entity.whoAmI, and Terraria.Entity.width.
Referenced by Terraria.Player.Update().