Definition at line 21284 of file Player.cs.
21285 {
21286
21287
21288
21289
21290
21291
21292
21294 if (
armor[0].type == 250 ||
armor[0].type == 4275)
21295 {
21297 }
21299 {
21300 try
21301 {
21305 {
21307 }
21309 if (Main.tile[
num,
num3] !=
null && Main.tile[
num,
num3].liquid < 128)
21310 {
21311 if (Main.tile[
num,
num3] ==
null)
21312 {
21314 }
21315 if (!Main.tile[
num,
num3].active() || !Main.tileSolid[Main.tile[
num,
num3].type] || Main.tileSolidTop[Main.tile[
num,
num3].type])
21316 {
21318 }
21319 }
21320 }
21321 catch
21322 {
21323 }
21324 }
21326 {
21327 flag = Main.getGoodWorld && !
flag;
21328 }
21330 {
21332 }
21334 {
21336 }
21337 if (Main.myPlayer ==
whoAmI)
21338 {
21340 {
21342 {
21344 }
21346 }
21348 {
21351 {
21355 {
21357 }
21359 {
21364 {
21367 }
21368 }
21369 }
21370 }
21371 else
21372 {
21375 {
21377 }
21379 }
21380 }
21382 {
21385 {
21387 }
21389 {
21391 }
21392 else
21393 {
21395 }
21396 }
21397 }
static SlotId PlaySound(in SoundStyle? style, Vector2? position=null, SoundUpdateCallback? updateCallback=null)
Attempts to play a sound style with the provided sound style (if it's not null), and returns a valid ...
static PlayerDeathReason ByOther(int type, int playerIndex=-1)
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
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.
float lifeRegenTime
How effective this player's natural life regeneration should be. Resets whenever the player is hurt,...
Item[] armor
The player's armor and accessories. Indexes 0-2 hold head, chest, and legs armor while 10-12 hold the...
int statLife
The current health of this player. Capped at F:Terraria.Player.statLifeMax2. If you increase this v...
void KillMe(PlayerDeathReason damageSource, double dmg, int hitDirection, bool pvp=false)
Mount mount
This player's T:Terraria.Mount. Do not overwrite this value. Instead, call M:Terraria....
Item[] inventory
The player's normal inventory. Indexes 0-9 hold the hotbar items, 10-49 the rest of the main inventor...
References Terraria.Player.accMerman, Terraria.Mount.Active, Terraria.Player.armor, Terraria.Player.breath, Terraria.Player.breathCD, Terraria.Player.breathCDMax, Terraria.Player.breathMax, Terraria.DataStructures.PlayerDeathReason.ByOther(), Terraria.Entity.direction, Terraria.Collision.DrownCollision(), Terraria.Player.gills, Terraria.Player.gravDir, Terraria.Entity.height, Terraria.Entity.honeyWet, Terraria.Player.inventory, Terraria.Player.itemAnimation, Terraria.Player.KillMe(), Terraria.Entity.lavaWet, Terraria.Player.lifeRegenTime, Terraria.Player.merman, Terraria.Player.mount, Terraria.Main.myPlayer, Terraria.Dust.NewDust(), Terraria.Audio.SoundEngine.PlaySound(), Terraria.Entity.position, Terraria.Main.rand, Terraria.Player.selectedItem, Terraria.Player.shimmering, Terraria.Player.statLife, Terraria.Main.tile, Terraria.Main.tileSolid, Terraria.Main.tileSolidTop, Terraria.Mount.Type, Terraria.Entity.whoAmI, and Terraria.Entity.width.
Referenced by Terraria.Player.Update().