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

◆ RefreshInfoAccsFromItemType() [1/2]

void Terraria.Player.RefreshInfoAccsFromItemType ( int accType)
inlineprivate

Definition at line 10810 of file Player.cs.

10811 {
10812 if ((accType == 15 || accType == 707) && accWatch < 1)
10813 {
10814 accWatch = 1;
10815 }
10816 if ((accType == 16 || accType == 708) && accWatch < 2)
10817 {
10818 accWatch = 2;
10819 }
10820 if ((accType == 17 || accType == 709) && accWatch < 3)
10821 {
10822 accWatch = 3;
10823 }
10824 if (accType == 393)
10825 {
10826 accCompass = 1;
10827 }
10828 if (accType == 18)
10829 {
10830 accDepthMeter = 1;
10831 }
10832 if (accType == 395 || accType == 3123 || accType == 3124 || accType == 5358 || accType == 5359 || accType == 5360 || accType == 5361)
10833 {
10834 accWatch = 3;
10835 accDepthMeter = 1;
10836 accCompass = 1;
10837 }
10838 if (accType == 3120 || accType == 3036 || accType == 3123 || accType == 3124 || accType == 5358 || accType == 5359 || accType == 5360 || accType == 5361)
10839 {
10840 accFishFinder = true;
10841 }
10842 if (accType == 3037 || accType == 3036 || accType == 3123 || accType == 3124 || accType == 5358 || accType == 5359 || accType == 5360 || accType == 5361)
10843 {
10844 accWeatherRadio = true;
10845 }
10846 if (accType == 3096 || accType == 3036 || accType == 3123 || accType == 3124 || accType == 5358 || accType == 5359 || accType == 5360 || accType == 5361)
10847 {
10848 accCalendar = true;
10849 }
10850 if (accType == 3084 || accType == 3122 || accType == 3123 || accType == 3124 || accType == 5358 || accType == 5359 || accType == 5360 || accType == 5361)
10851 {
10852 accThirdEye = true;
10853 }
10854 if (accType == 3095 || accType == 3122 || accType == 3123 || accType == 3124 || accType == 5358 || accType == 5359 || accType == 5360 || accType == 5361)
10855 {
10856 accJarOfSouls = true;
10857 }
10858 if (accType == 3118 || accType == 3122 || accType == 3123 || accType == 3124 || accType == 5358 || accType == 5359 || accType == 5360 || accType == 5361)
10859 {
10860 accCritterGuide = true;
10861 }
10862 if (accType == 3099 || accType == 3121 || accType == 3123 || accType == 3124 || accType == 5358 || accType == 5359 || accType == 5360 || accType == 5361)
10863 {
10864 accStopwatch = true;
10865 }
10866 if (accType == 3102 || accType == 3121 || accType == 3123 || accType == 3124 || accType == 5358 || accType == 5359 || accType == 5360 || accType == 5361)
10867 {
10868 accOreFinder = true;
10869 }
10870 if (accType == 3119 || accType == 3121 || accType == 3123 || accType == 3124 || accType == 5358 || accType == 5359 || accType == 5360 || accType == 5361)
10871 {
10872 accDreamCatcher = true;
10873 }
10874 }
bool accCritterGuide
Definition Player.cs:2763
bool accFishFinder
Definition Player.cs:2743
bool accOreFinder
Definition Player.cs:2761
bool accStopwatch
Definition Player.cs:2759
bool accJarOfSouls
Definition Player.cs:2747
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, and Terraria.Player.accWeatherRadio.