Definition at line 16406 of file Player.cs.
16407 {
16408
16409
16410
16411
16416 {
16418 }
16421 {
16423 }
16427 {
16429 {
16431 {
16433 }
16434 else
16435 {
16437 }
16438 }
16440 {
16442 {
16444 }
16445 else
16446 {
16448 }
16449 }
16451 {
16452 if (
WorldGen.oceanDepths((
int)
base.Center.X / 16, (
int)
base.Center.Y / 16))
16453 {
16455 }
16457 {
16459 }
16460 }
16462 {
16464 {
16466 }
16467 else
16468 {
16470 }
16471 }
16473 {
16475 {
16477 }
16478 else
16479 {
16481 }
16482 }
16484 {
16486 {
16488 }
16489 else
16490 {
16492 }
16493 }
16495 {
16497 }
16499 {
16501 {
16503 }
16504 else
16505 {
16507 }
16508 }
16510 {
16512 }
16514 {
16516 {
16518 }
16519 else
16520 {
16522 }
16523 }
16525 {
16527 }
16529 {
16531 {
16533 }
16535 {
16537 }
16538 }
16539 }
16542 {
16544 }
16545 else if (
num2 > 0
f)
16546 {
16548 }
16550 {
16552 }
16553 else if (
num >= 1
f)
16554 {
16556 }
16558 {
16560 }
16563 {
16565 }
16568 {
16570 }
16572 {
16575 {
16577 {
16579 break;
16580 }
16581 }
16583 {
16586 }
16587 }
16589 }
Vector2 position
The position of this Entity in world coordinates.
static bool[] Torch
Whether or not this tile behaves like a torch. If you are making a torch tile, then setting this to t...
static readonly short Count
int placeStyle
The style of the tile being placed. Used for tiles that have a different look depending on the item u...
This class represents a type of tile that can be added by a mod. Only one instance of this class will...
static ModTile GetTile(int type)
Gets the ModTile instance with the given type. If no ModTile with the given type exists,...
static void ModifyTorchLuck(Player player, ref float positiveLuck, ref float negativeLuck)
This serves as the central class from which tile-related functions are supported and carried out.
Vector2 _nextTorchLuckCheckCenter
int numberOfTorchAttacksMade
HashSet< int > NearbyModTorch
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._nextTorchLuckCheckCenter, Terraria.ID.TorchID.Count, Terraria.Player.dryCoralTorch, Terraria.ModLoader.TileLoader.GetTile(), Terraria.Player.happyFunTorchTime, Terraria.Player.inventory, Terraria.Player.luckyTorchCounter, Terraria.ModLoader.TileLoader.ModifyTorchLuck(), Terraria.Player.NearbyModTorch, Terraria.Player.nearbyTorch, Terraria.Player.nearbyTorches, Terraria.Player.numberOfTorchAttacksMade, Terraria.WorldGen.oceanDepths(), Terraria.Item.placeStyle, Terraria.Entity.position, Terraria.Player.selectedItem, Terraria.ID.TileID.Sets.Torch, Terraria.Player.torchLuck, Terraria.Main.worldSurface, Terraria.Player.ZoneCorrupt, Terraria.Player.ZoneCrimson, Terraria.Player.ZoneDesert, Terraria.Player.ZoneDungeon, Terraria.Player.ZoneGlowshroom, Terraria.Player.ZoneHallow, Terraria.Player.ZoneJungle, Terraria.Player.ZoneLihzhardTemple, and Terraria.Player.ZoneSnow.
Referenced by Terraria.Player.TryRecalculatingTorchLuck().