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

◆ RefreshInfoAccsFromItemType()

void Terraria.Player.RefreshInfoAccsFromItemType ( int accType)
inline

Definition at line 12115 of file Player.cs.

12116 {
12117 if ((accType == 15 || accType == 707) && accWatch < 1)
12118 {
12119 accWatch = 1;
12120 }
12121 if ((accType == 16 || accType == 708) && accWatch < 2)
12122 {
12123 accWatch = 2;
12124 }
12125 if ((accType == 17 || accType == 709) && accWatch < 3)
12126 {
12127 accWatch = 3;
12128 }
12129 if (accType == 393)
12130 {
12131 accCompass = 1;
12132 }
12133 if (accType == 18)
12134 {
12135 accDepthMeter = 1;
12136 }
12137 if (accType == 395 || accType == 3123 || accType == 3124 || accType == 5358 || accType == 5359 || accType == 5360 || accType == 5361)
12138 {
12139 accWatch = 3;
12140 accDepthMeter = 1;
12141 accCompass = 1;
12142 }
12143 if (accType == 3120 || accType == 3036 || accType == 3123 || accType == 3124 || accType == 5358 || accType == 5359 || accType == 5360 || accType == 5361)
12144 {
12145 accFishFinder = true;
12146 }
12147 if (accType == 3037 || accType == 3036 || accType == 3123 || accType == 3124 || accType == 5358 || accType == 5359 || accType == 5360 || accType == 5361)
12148 {
12149 accWeatherRadio = true;
12150 }
12151 if (accType == 3096 || accType == 3036 || accType == 3123 || accType == 3124 || accType == 5358 || accType == 5359 || accType == 5360 || accType == 5361)
12152 {
12153 accCalendar = true;
12154 }
12155 if (accType == 3084 || accType == 3122 || accType == 3123 || accType == 3124 || accType == 5358 || accType == 5359 || accType == 5360 || accType == 5361)
12156 {
12157 accThirdEye = true;
12158 }
12159 if (accType == 3095 || accType == 3122 || accType == 3123 || accType == 3124 || accType == 5358 || accType == 5359 || accType == 5360 || accType == 5361)
12160 {
12161 accJarOfSouls = true;
12162 }
12163 if (accType == 3118 || accType == 3122 || accType == 3123 || accType == 3124 || accType == 5358 || accType == 5359 || accType == 5360 || accType == 5361)
12164 {
12165 accCritterGuide = true;
12166 }
12167 if (accType == 3099 || accType == 3121 || accType == 3123 || accType == 3124 || accType == 5358 || accType == 5359 || accType == 5360 || accType == 5361)
12168 {
12169 accStopwatch = true;
12170 }
12171 if (accType == 3102 || accType == 3121 || accType == 3123 || accType == 3124 || accType == 5358 || accType == 5359 || accType == 5360 || accType == 5361)
12172 {
12173 accOreFinder = true;
12174 }
12175 if (accType == 3119 || accType == 3121 || accType == 3123 || accType == 3124 || accType == 5358 || accType == 5359 || accType == 5360 || accType == 5361)
12176 {
12177 accDreamCatcher = true;
12178 }
12179 }
bool accCritterGuide
Definition Player.cs:2181
bool accFishFinder
Definition Player.cs:2161
bool accOreFinder
Definition Player.cs:2179
bool accStopwatch
Definition Player.cs:2177
bool accJarOfSouls
Definition Player.cs:2165
bool accDreamCatcher
Definition Player.cs:2187
bool accWeatherRadio
Definition Player.cs:2163