Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ RefreshInfoAccs()

void Terraria.Player.RefreshInfoAccs ( )
inline

Definition at line 11997 of file Player.cs.

11998 {
11999 bool flag = false;
12000 accWatch = 0;
12001 accCompass = 0;
12002 accDepthMeter = 0;
12003 accFishFinder = false;
12004 accWeatherRadio = false;
12005 accCalendar = false;
12006 accThirdEye = false;
12007 accJarOfSouls = false;
12008 accCritterGuide = false;
12009 accStopwatch = false;
12010 accOreFinder = false;
12011 accDreamCatcher = false;
12012 for (int i = 0; i < 58; i++)
12013 {
12014 int type = inventory[i].type;
12016 if (type == 4131)
12017 {
12018 flag = true;
12019 }
12020 }
12021 for (int j = 0; j < 10; j++)
12022 {
12023 int type2 = armor[j].type;
12025 }
12026 if (flag)
12027 {
12028 for (int k = 0; k < 40; k++)
12029 {
12030 int type3 = bank4.item[k].type;
12032 {
12034 }
12035 }
12036 }
12038 }
Item[] item
Definition Chest.cs:41
static bool[] WorksInVoidBag
Definition ItemID.cs:63
static readonly short Count
Definition ItemID.cs:12138
void RefreshInfoAccsFromItemType(int accType)
Definition Player.cs:12115
bool accCritterGuide
Definition Player.cs:2181
void RefreshInfoAccsFromTeamPlayers()
Definition Player.cs:12040
bool accFishFinder
Definition Player.cs:2161
bool accOreFinder
Definition Player.cs:2179
bool accStopwatch
Definition Player.cs:2177
bool accJarOfSouls
Definition Player.cs:2165
Item[] inventory
Definition Player.cs:1257
bool accDreamCatcher
Definition Player.cs:2187
bool accWeatherRadio
Definition Player.cs:2163

References Terraria.ID.ItemID.Count, Terraria.Chest.item, System.type, Terraria.Item.type, and Terraria.ID.ItemID.Sets.WorksInVoidBag.