TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ RefreshInfoAccs()

void Terraria.Player.RefreshInfoAccs ( )
inline

Definition at line 10679 of file Player.cs.

10680 {
10681 bool flag = false;
10682 accWatch = 0;
10683 accCompass = 0;
10684 accDepthMeter = 0;
10685 accFishFinder = false;
10686 accWeatherRadio = false;
10687 accCalendar = false;
10688 accThirdEye = false;
10689 accJarOfSouls = false;
10690 accCritterGuide = false;
10691 accStopwatch = false;
10692 accOreFinder = false;
10693 accDreamCatcher = false;
10695 for (int i = 0; i < 58; i++)
10696 {
10697 int type4 = inventory[i].type;
10699 if (type4 == 4131)
10700 {
10701 flag = true;
10702 }
10703 }
10704 for (int j = 0; j < 10; j++)
10705 {
10706 _ = armor[j].type;
10708 }
10709 if (flag)
10710 {
10711 for (int k = 0; k < 40; k++)
10712 {
10713 int type3 = bank4.item[k].type;
10714 if (type3 < 0 || ItemID.Sets.WorksInVoidBag[type3])
10715 {
10717 }
10718 }
10719 }
10721 }
Item[] item
The items this chest contains. F:Terraria.Chest.maxItems elements long.
Definition Chest.cs:93
static bool[] WorksInVoidBag
If true for a given item type (F:Terraria.Item.type), then that item will have its in-inventory effec...
Definition ItemID.cs:135
int type
The Item ID of this item. The Item ID is a unique number assigned to each Item loaded into the game....
Definition Item.cs:345
static void ResetInfoAccessories(Player player)
This is where all ModPlayer hooks are gathered and called.
bool accCritterGuide
Definition Player.cs:2763
void RefreshInfoAccsFromTeamPlayers()
Definition Player.cs:10723
bool accFishFinder
Definition Player.cs:2743
bool accOreFinder
Definition Player.cs:2761
Item[] armor
The player's armor and accessories. Indexes 0-2 hold head, chest, and legs armor while 10-12 hold the...
Definition Player.cs:1651
bool accStopwatch
Definition Player.cs:2759
void RefreshInfoAccsFromItemType(Item item)
Definition Player.cs:10804
bool accJarOfSouls
Definition Player.cs:2747
Item[] inventory
The player's normal inventory. Indexes 0-9 hold the hotbar items, 10-49 the rest of the main inventor...
Definition Player.cs:1767
bool accDreamCatcher
Definition Player.cs:2769
bool accWeatherRadio
Definition Player.cs:2745

References Terraria.Player.accCalendar, Terraria.Player.accCompass, Terraria.Player.accCritterGuide, Terraria.Player.accDepthMeter, Terraria.Player.accDreamCatcher, Terraria.Player.accFishFinder, Terraria.Player.accJarOfSouls, Terraria.Player.accOreFinder, Terraria.Player.accStopwatch, Terraria.Player.accThirdEye, Terraria.Player.accWatch, Terraria.Player.accWeatherRadio, Terraria.Player.armor, Terraria.Player.bank4, Terraria.Player.inventory, Terraria.Chest.item, Terraria.Player.RefreshInfoAccsFromItemType(), Terraria.Player.RefreshInfoAccsFromTeamPlayers(), Terraria.ModLoader.PlayerLoader.ResetInfoAccessories(), Terraria.Item.type, and Terraria.ID.ItemID.Sets.WorksInVoidBag.

+ Here is the call graph for this function: