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

◆ GetAlpha()

Color Terraria.Projectile.GetAlpha ( Color newColor)
inline

Definition at line 91881 of file Projectile.cs.

91882 {
91883 //IL_0001: Unknown result type (might be due to invalid IL or missing references)
91884 //IL_0014: Unknown result type (might be due to invalid IL or missing references)
91885 //IL_0019: Unknown result type (might be due to invalid IL or missing references)
91886 //IL_001a: Unknown result type (might be due to invalid IL or missing references)
91887 //IL_0036: Unknown result type (might be due to invalid IL or missing references)
91888 //IL_0037: Unknown result type (might be due to invalid IL or missing references)
91889 //IL_0041: Unknown result type (might be due to invalid IL or missing references)
91890 //IL_004c: Unknown result type (might be due to invalid IL or missing references)
91891 //IL_006f: Unknown result type (might be due to invalid IL or missing references)
91892 //IL_00d6: Unknown result type (might be due to invalid IL or missing references)
91893 //IL_00d9: Unknown result type (might be due to invalid IL or missing references)
91894 //IL_00de: Unknown result type (might be due to invalid IL or missing references)
91895 //IL_013b: Unknown result type (might be due to invalid IL or missing references)
91896 //IL_014e: Unknown result type (might be due to invalid IL or missing references)
91897 //IL_0161: Unknown result type (might be due to invalid IL or missing references)
91898 //IL_0171: Unknown result type (might be due to invalid IL or missing references)
91899 //IL_0172: Unknown result type (might be due to invalid IL or missing references)
91900 //IL_017c: Unknown result type (might be due to invalid IL or missing references)
91901 //IL_0187: Unknown result type (might be due to invalid IL or missing references)
91902 //IL_0207: Unknown result type (might be due to invalid IL or missing references)
91903 //IL_0212: Unknown result type (might be due to invalid IL or missing references)
91904 //IL_0225: Unknown result type (might be due to invalid IL or missing references)
91905 //IL_0232: Unknown result type (might be due to invalid IL or missing references)
91906 //IL_023c: Unknown result type (might be due to invalid IL or missing references)
91907 //IL_0241: Unknown result type (might be due to invalid IL or missing references)
91908 //IL_025d: Unknown result type (might be due to invalid IL or missing references)
91909 //IL_0268: Unknown result type (might be due to invalid IL or missing references)
91910 //IL_026d: Unknown result type (might be due to invalid IL or missing references)
91911 //IL_01e9: Unknown result type (might be due to invalid IL or missing references)
91912 //IL_01f4: Unknown result type (might be due to invalid IL or missing references)
91913 //IL_02ab: Unknown result type (might be due to invalid IL or missing references)
91914 //IL_0301: Unknown result type (might be due to invalid IL or missing references)
91915 //IL_0302: Unknown result type (might be due to invalid IL or missing references)
91916 //IL_030c: Unknown result type (might be due to invalid IL or missing references)
91917 //IL_02e1: Unknown result type (might be due to invalid IL or missing references)
91918 //IL_02c7: Unknown result type (might be due to invalid IL or missing references)
91919 //IL_03e3: Unknown result type (might be due to invalid IL or missing references)
91920 //IL_039e: Unknown result type (might be due to invalid IL or missing references)
91921 //IL_039f: Unknown result type (might be due to invalid IL or missing references)
91922 //IL_03a9: Unknown result type (might be due to invalid IL or missing references)
91923 //IL_0378: Unknown result type (might be due to invalid IL or missing references)
91924 //IL_0379: Unknown result type (might be due to invalid IL or missing references)
91925 //IL_037d: Unknown result type (might be due to invalid IL or missing references)
91926 //IL_0382: Unknown result type (might be due to invalid IL or missing references)
91927 //IL_0384: Unknown result type (might be due to invalid IL or missing references)
91928 //IL_0385: Unknown result type (might be due to invalid IL or missing references)
91929 //IL_038a: Unknown result type (might be due to invalid IL or missing references)
91930 //IL_038e: Unknown result type (might be due to invalid IL or missing references)
91931 //IL_0398: Unknown result type (might be due to invalid IL or missing references)
91932 //IL_0427: Unknown result type (might be due to invalid IL or missing references)
91933 //IL_0432: Unknown result type (might be due to invalid IL or missing references)
91934 //IL_0452: Unknown result type (might be due to invalid IL or missing references)
91935 //IL_0453: Unknown result type (might be due to invalid IL or missing references)
91936 //IL_045d: Unknown result type (might be due to invalid IL or missing references)
91937 //IL_0470: Unknown result type (might be due to invalid IL or missing references)
91938 //IL_047b: Unknown result type (might be due to invalid IL or missing references)
91939 //IL_04af: Unknown result type (might be due to invalid IL or missing references)
91940 //IL_04e9: Unknown result type (might be due to invalid IL or missing references)
91941 //IL_04ea: Unknown result type (might be due to invalid IL or missing references)
91942 //IL_04f4: Unknown result type (might be due to invalid IL or missing references)
91943 //IL_0515: Unknown result type (might be due to invalid IL or missing references)
91944 //IL_051a: Unknown result type (might be due to invalid IL or missing references)
91945 //IL_051f: Unknown result type (might be due to invalid IL or missing references)
91946 //IL_0521: Unknown result type (might be due to invalid IL or missing references)
91947 //IL_0528: Unknown result type (might be due to invalid IL or missing references)
91948 //IL_055e: Unknown result type (might be due to invalid IL or missing references)
91949 //IL_055f: Unknown result type (might be due to invalid IL or missing references)
91950 //IL_0569: Unknown result type (might be due to invalid IL or missing references)
91951 //IL_0537: Unknown result type (might be due to invalid IL or missing references)
91952 //IL_053e: Unknown result type (might be due to invalid IL or missing references)
91953 //IL_054d: Unknown result type (might be due to invalid IL or missing references)
91954 //IL_054e: Unknown result type (might be due to invalid IL or missing references)
91955 //IL_0558: Unknown result type (might be due to invalid IL or missing references)
91956 //IL_05a3: Unknown result type (might be due to invalid IL or missing references)
91957 //IL_05a4: Unknown result type (might be due to invalid IL or missing references)
91958 //IL_05ae: Unknown result type (might be due to invalid IL or missing references)
91959 //IL_063c: Unknown result type (might be due to invalid IL or missing references)
91960 //IL_0681: Unknown result type (might be due to invalid IL or missing references)
91961 //IL_0694: Unknown result type (might be due to invalid IL or missing references)
91962 //IL_0695: Unknown result type (might be due to invalid IL or missing references)
91963 //IL_069f: Unknown result type (might be due to invalid IL or missing references)
91964 //IL_06aa: Unknown result type (might be due to invalid IL or missing references)
91965 //IL_06ec: Unknown result type (might be due to invalid IL or missing references)
91966 //IL_266b: Unknown result type (might be due to invalid IL or missing references)
91967 //IL_0747: Unknown result type (might be due to invalid IL or missing references)
91968 //IL_077b: Unknown result type (might be due to invalid IL or missing references)
91969 //IL_07e5: Unknown result type (might be due to invalid IL or missing references)
91970 //IL_0834: Unknown result type (might be due to invalid IL or missing references)
91971 //IL_085b: Unknown result type (might be due to invalid IL or missing references)
91972 //IL_08ad: Unknown result type (might be due to invalid IL or missing references)
91973 //IL_08de: Unknown result type (might be due to invalid IL or missing references)
91974 //IL_0902: Unknown result type (might be due to invalid IL or missing references)
91975 //IL_090d: Unknown result type (might be due to invalid IL or missing references)
91976 //IL_094d: Unknown result type (might be due to invalid IL or missing references)
91977 //IL_0974: Unknown result type (might be due to invalid IL or missing references)
91978 //IL_0996: Unknown result type (might be due to invalid IL or missing references)
91979 //IL_09b8: Unknown result type (might be due to invalid IL or missing references)
91980 //IL_09bd: Unknown result type (might be due to invalid IL or missing references)
91981 //IL_09cb: Unknown result type (might be due to invalid IL or missing references)
91982 //IL_09e4: Unknown result type (might be due to invalid IL or missing references)
91983 //IL_09e5: Unknown result type (might be due to invalid IL or missing references)
91984 //IL_09ef: Unknown result type (might be due to invalid IL or missing references)
91985 //IL_09f4: Unknown result type (might be due to invalid IL or missing references)
91986 //IL_09ff: Unknown result type (might be due to invalid IL or missing references)
91987 //IL_0a17: Unknown result type (might be due to invalid IL or missing references)
91988 //IL_0a18: Unknown result type (might be due to invalid IL or missing references)
91989 //IL_0a22: Unknown result type (might be due to invalid IL or missing references)
91990 //IL_0a27: Unknown result type (might be due to invalid IL or missing references)
91991 //IL_0a32: Unknown result type (might be due to invalid IL or missing references)
91992 //IL_0a3c: Unknown result type (might be due to invalid IL or missing references)
91993 //IL_0a41: Unknown result type (might be due to invalid IL or missing references)
91994 //IL_0a43: Unknown result type (might be due to invalid IL or missing references)
91995 //IL_0ad0: Unknown result type (might be due to invalid IL or missing references)
91996 //IL_0ae3: Unknown result type (might be due to invalid IL or missing references)
91997 //IL_0b70: Unknown result type (might be due to invalid IL or missing references)
91998 //IL_0b97: Unknown result type (might be due to invalid IL or missing references)
91999 //IL_0bbe: Unknown result type (might be due to invalid IL or missing references)
92000 //IL_0bf6: Unknown result type (might be due to invalid IL or missing references)
92001 //IL_0c17: Unknown result type (might be due to invalid IL or missing references)
92002 //IL_0c5a: Unknown result type (might be due to invalid IL or missing references)
92003 //IL_0ca6: Unknown result type (might be due to invalid IL or missing references)
92004 //IL_0cd3: Unknown result type (might be due to invalid IL or missing references)
92005 //IL_0cd4: Unknown result type (might be due to invalid IL or missing references)
92006 //IL_0cde: Unknown result type (might be due to invalid IL or missing references)
92007 //IL_0ce3: Unknown result type (might be due to invalid IL or missing references)
92008 //IL_0cf1: Unknown result type (might be due to invalid IL or missing references)
92009 //IL_0d06: Unknown result type (might be due to invalid IL or missing references)
92010 //IL_0d55: Unknown result type (might be due to invalid IL or missing references)
92011 //IL_0d97: Unknown result type (might be due to invalid IL or missing references)
92012 //IL_0de7: Unknown result type (might be due to invalid IL or missing references)
92013 //IL_0e0e: Unknown result type (might be due to invalid IL or missing references)
92014 //IL_0e35: Unknown result type (might be due to invalid IL or missing references)
92015 //IL_0e69: Unknown result type (might be due to invalid IL or missing references)
92016 //IL_0e90: Unknown result type (might be due to invalid IL or missing references)
92017 //IL_0ee3: Unknown result type (might be due to invalid IL or missing references)
92018 //IL_0ed9: Unknown result type (might be due to invalid IL or missing references)
92019 //IL_0f0a: Unknown result type (might be due to invalid IL or missing references)
92020 //IL_0f4e: Unknown result type (might be due to invalid IL or missing references)
92021 //IL_0faf: Unknown result type (might be due to invalid IL or missing references)
92022 //IL_0fba: Unknown result type (might be due to invalid IL or missing references)
92023 //IL_0fda: Unknown result type (might be due to invalid IL or missing references)
92024 //IL_0ffa: Unknown result type (might be due to invalid IL or missing references)
92025 //IL_107e: Unknown result type (might be due to invalid IL or missing references)
92026 //IL_10a1: Unknown result type (might be due to invalid IL or missing references)
92027 //IL_10b9: Unknown result type (might be due to invalid IL or missing references)
92028 //IL_10cc: Unknown result type (might be due to invalid IL or missing references)
92029 //IL_10cd: Unknown result type (might be due to invalid IL or missing references)
92030 //IL_10d7: Unknown result type (might be due to invalid IL or missing references)
92031 //IL_10ef: Unknown result type (might be due to invalid IL or missing references)
92032 //IL_10f4: Unknown result type (might be due to invalid IL or missing references)
92033 //IL_10f9: Unknown result type (might be due to invalid IL or missing references)
92034 //IL_1103: Unknown result type (might be due to invalid IL or missing references)
92035 //IL_1108: Unknown result type (might be due to invalid IL or missing references)
92036 //IL_1127: Unknown result type (might be due to invalid IL or missing references)
92037 //IL_112b: Unknown result type (might be due to invalid IL or missing references)
92038 //IL_1152: Unknown result type (might be due to invalid IL or missing references)
92039 //IL_116a: Unknown result type (might be due to invalid IL or missing references)
92040 //IL_11a8: Unknown result type (might be due to invalid IL or missing references)
92041 //IL_11c0: Unknown result type (might be due to invalid IL or missing references)
92042 //IL_11f1: Unknown result type (might be due to invalid IL or missing references)
92043 //IL_11fc: Unknown result type (might be due to invalid IL or missing references)
92044 //IL_1223: Unknown result type (might be due to invalid IL or missing references)
92045 //IL_122e: Unknown result type (might be due to invalid IL or missing references)
92046 //IL_125b: Unknown result type (might be due to invalid IL or missing references)
92047 //IL_125c: Unknown result type (might be due to invalid IL or missing references)
92048 //IL_1266: Unknown result type (might be due to invalid IL or missing references)
92049 //IL_126b: Unknown result type (might be due to invalid IL or missing references)
92050 //IL_1287: Unknown result type (might be due to invalid IL or missing references)
92051 //IL_1292: Unknown result type (might be due to invalid IL or missing references)
92052 //IL_12b9: Unknown result type (might be due to invalid IL or missing references)
92053 //IL_12d1: Unknown result type (might be due to invalid IL or missing references)
92054 //IL_12f8: Unknown result type (might be due to invalid IL or missing references)
92055 //IL_1310: Unknown result type (might be due to invalid IL or missing references)
92056 //IL_1344: Unknown result type (might be due to invalid IL or missing references)
92057 //IL_135c: Unknown result type (might be due to invalid IL or missing references)
92058 //IL_1383: Unknown result type (might be due to invalid IL or missing references)
92059 //IL_139b: Unknown result type (might be due to invalid IL or missing references)
92060 //IL_13c9: Unknown result type (might be due to invalid IL or missing references)
92061 //IL_13fd: Unknown result type (might be due to invalid IL or missing references)
92062 //IL_1424: Unknown result type (might be due to invalid IL or missing references)
92063 //IL_1437: Unknown result type (might be due to invalid IL or missing references)
92064 //IL_1438: Unknown result type (might be due to invalid IL or missing references)
92065 //IL_1442: Unknown result type (might be due to invalid IL or missing references)
92066 //IL_145a: Unknown result type (might be due to invalid IL or missing references)
92067 //IL_1487: Unknown result type (might be due to invalid IL or missing references)
92068 //IL_1488: Unknown result type (might be due to invalid IL or missing references)
92069 //IL_1492: Unknown result type (might be due to invalid IL or missing references)
92070 //IL_14aa: Unknown result type (might be due to invalid IL or missing references)
92071 //IL_1514: Unknown result type (might be due to invalid IL or missing references)
92072 //IL_152c: Unknown result type (might be due to invalid IL or missing references)
92073 //IL_14ca: Unknown result type (might be due to invalid IL or missing references)
92074 //IL_14cb: Unknown result type (might be due to invalid IL or missing references)
92075 //IL_14d5: Unknown result type (might be due to invalid IL or missing references)
92076 //IL_14ed: Unknown result type (might be due to invalid IL or missing references)
92077 //IL_1592: Unknown result type (might be due to invalid IL or missing references)
92078 //IL_15a6: Unknown result type (might be due to invalid IL or missing references)
92079 //IL_15f4: Unknown result type (might be due to invalid IL or missing references)
92080 //IL_160c: Unknown result type (might be due to invalid IL or missing references)
92081 //IL_161f: Unknown result type (might be due to invalid IL or missing references)
92082 //IL_1626: Unknown result type (might be due to invalid IL or missing references)
92083 //IL_164d: Unknown result type (might be due to invalid IL or missing references)
92084 //IL_1665: Unknown result type (might be due to invalid IL or missing references)
92085 //IL_168c: Unknown result type (might be due to invalid IL or missing references)
92086 //IL_16a4: Unknown result type (might be due to invalid IL or missing references)
92087 //IL_16d4: Unknown result type (might be due to invalid IL or missing references)
92088 //IL_16ec: Unknown result type (might be due to invalid IL or missing references)
92089 //IL_1720: Unknown result type (might be due to invalid IL or missing references)
92090 //IL_172b: Unknown result type (might be due to invalid IL or missing references)
92091 //IL_1752: Unknown result type (might be due to invalid IL or missing references)
92092 //IL_176a: Unknown result type (might be due to invalid IL or missing references)
92093 //IL_177d: Unknown result type (might be due to invalid IL or missing references)
92094 //IL_177e: Unknown result type (might be due to invalid IL or missing references)
92095 //IL_1788: Unknown result type (might be due to invalid IL or missing references)
92096 //IL_178d: Unknown result type (might be due to invalid IL or missing references)
92097 //IL_17c9: Unknown result type (might be due to invalid IL or missing references)
92098 //IL_17f6: Unknown result type (might be due to invalid IL or missing references)
92099 //IL_17f7: Unknown result type (might be due to invalid IL or missing references)
92100 //IL_1801: Unknown result type (might be due to invalid IL or missing references)
92101 //IL_1806: Unknown result type (might be due to invalid IL or missing references)
92102 //IL_181f: Unknown result type (might be due to invalid IL or missing references)
92103 //IL_1832: Unknown result type (might be due to invalid IL or missing references)
92104 //IL_1833: Unknown result type (might be due to invalid IL or missing references)
92105 //IL_183d: Unknown result type (might be due to invalid IL or missing references)
92106 //IL_1842: Unknown result type (might be due to invalid IL or missing references)
92107 //IL_185b: Unknown result type (might be due to invalid IL or missing references)
92108 //IL_186e: Unknown result type (might be due to invalid IL or missing references)
92109 //IL_186f: Unknown result type (might be due to invalid IL or missing references)
92110 //IL_1879: Unknown result type (might be due to invalid IL or missing references)
92111 //IL_187e: Unknown result type (might be due to invalid IL or missing references)
92112 //IL_1897: Unknown result type (might be due to invalid IL or missing references)
92113 //IL_18be: Unknown result type (might be due to invalid IL or missing references)
92114 //IL_18f3: Unknown result type (might be due to invalid IL or missing references)
92115 //IL_191a: Unknown result type (might be due to invalid IL or missing references)
92116 //IL_19d2: Unknown result type (might be due to invalid IL or missing references)
92117 //IL_1a2b: Unknown result type (might be due to invalid IL or missing references)
92118 //IL_1997: Unknown result type (might be due to invalid IL or missing references)
92119 //IL_1a52: Unknown result type (might be due to invalid IL or missing references)
92120 //IL_1a76: Unknown result type (might be due to invalid IL or missing references)
92121 //IL_1a96: Unknown result type (might be due to invalid IL or missing references)
92122 //IL_1ab6: Unknown result type (might be due to invalid IL or missing references)
92123 //IL_1b10: Unknown result type (might be due to invalid IL or missing references)
92124 //IL_1b33: Unknown result type (might be due to invalid IL or missing references)
92125 //IL_1af0: Unknown result type (might be due to invalid IL or missing references)
92126 //IL_1b67: Unknown result type (might be due to invalid IL or missing references)
92127 //IL_1b8b: Unknown result type (might be due to invalid IL or missing references)
92128 //IL_1bdb: Unknown result type (might be due to invalid IL or missing references)
92129 //IL_1bc1: Unknown result type (might be due to invalid IL or missing references)
92130 //IL_1c53: Unknown result type (might be due to invalid IL or missing references)
92131 //IL_1c34: Unknown result type (might be due to invalid IL or missing references)
92132 //IL_1c1d: Unknown result type (might be due to invalid IL or missing references)
92133 //IL_1c77: Unknown result type (might be due to invalid IL or missing references)
92134 //IL_1cbf: Unknown result type (might be due to invalid IL or missing references)
92135 //IL_1cc0: Unknown result type (might be due to invalid IL or missing references)
92136 //IL_1cca: Unknown result type (might be due to invalid IL or missing references)
92137 //IL_1cd5: Unknown result type (might be due to invalid IL or missing references)
92138 //IL_1cac: Unknown result type (might be due to invalid IL or missing references)
92139 //IL_1c99: Unknown result type (might be due to invalid IL or missing references)
92140 //IL_1d20: Unknown result type (might be due to invalid IL or missing references)
92141 //IL_1d95: Unknown result type (might be due to invalid IL or missing references)
92142 //IL_1dce: Unknown result type (might be due to invalid IL or missing references)
92143 //IL_1daa: Unknown result type (might be due to invalid IL or missing references)
92144 //IL_1e34: Unknown result type (might be due to invalid IL or missing references)
92145 //IL_1e73: Unknown result type (might be due to invalid IL or missing references)
92146 //IL_1e5d: Unknown result type (might be due to invalid IL or missing references)
92147 //IL_1ebe: Unknown result type (might be due to invalid IL or missing references)
92148 //IL_1e93: Unknown result type (might be due to invalid IL or missing references)
92149 //IL_1f09: Unknown result type (might be due to invalid IL or missing references)
92150 //IL_1ede: Unknown result type (might be due to invalid IL or missing references)
92151 //IL_1f6c: Unknown result type (might be due to invalid IL or missing references)
92152 //IL_1f59: Unknown result type (might be due to invalid IL or missing references)
92153 //IL_1faa: Unknown result type (might be due to invalid IL or missing references)
92154 //IL_1fe2: Unknown result type (might be due to invalid IL or missing references)
92155 //IL_2005: Unknown result type (might be due to invalid IL or missing references)
92156 //IL_2029: Unknown result type (might be due to invalid IL or missing references)
92157 //IL_206a: Unknown result type (might be due to invalid IL or missing references)
92158 //IL_20a1: Unknown result type (might be due to invalid IL or missing references)
92159 //IL_2097: Unknown result type (might be due to invalid IL or missing references)
92160 //IL_2135: Unknown result type (might be due to invalid IL or missing references)
92161 //IL_2140: Unknown result type (might be due to invalid IL or missing references)
92162 //IL_2111: Unknown result type (might be due to invalid IL or missing references)
92163 //IL_210b: Unknown result type (might be due to invalid IL or missing references)
92164 //IL_2163: Unknown result type (might be due to invalid IL or missing references)
92165 //IL_216e: Unknown result type (might be due to invalid IL or missing references)
92166 //IL_21d6: Unknown result type (might be due to invalid IL or missing references)
92167 //IL_21fd: Unknown result type (might be due to invalid IL or missing references)
92168 //IL_235f: Unknown result type (might be due to invalid IL or missing references)
92169 //IL_228f: Unknown result type (might be due to invalid IL or missing references)
92170 //IL_2398: Unknown result type (might be due to invalid IL or missing references)
92171 //IL_2374: Unknown result type (might be due to invalid IL or missing references)
92172 //IL_2321: Unknown result type (might be due to invalid IL or missing references)
92173 //IL_2446: Unknown result type (might be due to invalid IL or missing references)
92174 //IL_2440: Unknown result type (might be due to invalid IL or missing references)
92175 //IL_2488: Unknown result type (might be due to invalid IL or missing references)
92176 //IL_24ac: Unknown result type (might be due to invalid IL or missing references)
92177 //IL_24b2: Unknown result type (might be due to invalid IL or missing references)
92178 //IL_256c: Unknown result type (might be due to invalid IL or missing references)
92179 //IL_25fc: Unknown result type (might be due to invalid IL or missing references)
92180 Color? val = ProjectileLoader.GetAlpha(this, newColor);
92181 if (val.HasValue)
92182 {
92183 return val.GetValueOrDefault();
92184 }
92185 if (type == 920 || type == 921)
92186 {
92187 return Color.Lerp(newColor, Color.White, 0.4f) * Opacity;
92188 }
92189 if (type == 47 && Main.player[owner].wet)
92190 {
92191 return Color.White;
92192 }
92193 if (type == 937)
92194 {
92195 ((Color)(ref newColor)).A = (byte)((float)(int)((Color)(ref newColor)).A * 0.75f);
92196 }
92197 if (type == 880 || type == 929)
92198 {
92199 ((Color)(ref newColor)).A = (byte)(((Color)(ref newColor)).A / 2);
92200 }
92201 if (type == 963)
92202 {
92203 float num = 0.85f;
92204 newColor *= num;
92205 ((Color)(ref newColor)).A = (byte)((float)(int)((Color)(ref newColor)).A * num);
92206 if (ai[0] >= 2f)
92207 {
92208 ((Color)(ref newColor)).G = (byte)((float)(int)((Color)(ref newColor)).G * 0.7f);
92209 ((Color)(ref newColor)).B = (byte)((float)(int)((Color)(ref newColor)).B * 0.7f);
92210 }
92211 }
92212 if (type == 1021)
92213 {
92214 return Color.White;
92215 }
92216 if (type == 1006)
92217 {
92218 return Color.White;
92219 }
92220 if (type == 981)
92221 {
92222 return Color.White;
92223 }
92224 if (type == 75)
92225 {
92226 return Color.Lerp(newColor, Color.White, 0.66f) * Opacity;
92227 }
92228 int r;
92229 int g;
92230 int b;
92231 if (type == 969)
92232 {
92233 int num4 = 210;
92234 r = (g = (b = num4));
92235 if (((Color)(ref newColor)).R < num4)
92236 {
92237 r = ((Color)(ref newColor)).R;
92238 }
92239 if (((Color)(ref newColor)).G < num4)
92240 {
92241 g = ((Color)(ref newColor)).G;
92242 }
92243 if (((Color)(ref newColor)).B < num4)
92244 {
92245 b = ((Color)(ref newColor)).B;
92246 }
92247 return new Color(r, g, b, 185) * Opacity;
92248 }
92249 if (type == 967)
92250 {
92251 return Color.White * Opacity;
92252 }
92253 if (type == 855)
92254 {
92255 newColor = Color.Lerp(newColor, new Color(255, 200, 60), 0.5f);
92256 }
92257 if (type == 933 || type == 1001)
92258 {
92259 newColor = Color.White * Opacity;
92260 }
92261 if (type == 270)
92262 {
92263 return new Color(255, 255, 255, (int)Utils.WrappedLerp(0f, 255f, (float)(timeLeft % 40) / 40f));
92264 }
92265 if (type == 837)
92266 {
92267 if (alpha > 0)
92268 {
92269 return Color.Transparent;
92270 }
92271 return new Color(255, 255, 255, 200);
92272 }
92273 if (type == 180 || type == 345)
92274 {
92275 return Color.Lerp(newColor, Color.White, 0.75f);
92276 }
92277 if (type == 586)
92278 {
92279 if (ai[2] == 1f)
92280 {
92281 Color value = default(Color);
92282 ((Color)(ref value))._002Ector(((Color)(ref newColor)).R / 2, 0, (int)((Color)(ref newColor)).G);
92283 float amount = (float)Math.Sin(ai[0] % 120f * ((float)Math.PI * 2f) / 120f) * 0.5f + 0.5f;
92284 newColor = Color.Lerp(newColor, value, amount);
92285 return Color.Lerp(newColor, Color.Lerp(Color.White, value, amount), 0.75f);
92286 }
92287 return Color.Lerp(newColor, Color.White, 0.75f);
92288 }
92289 if (type == 764 || type == 856 || type == 857 || type == 864)
92290 {
92291 return Color.White;
92292 }
92293 if (type == 873 || type == 872 || type == 931 || type == 913 || type == 34)
92294 {
92295 return Color.White * Opacity;
92296 }
92297 if (type == 756 || type == 961)
92298 {
92299 return Color.Lerp(newColor, Color.Black, 0.25f);
92300 }
92301 if (type == 895)
92302 {
92303 return Color.White * Opacity;
92304 }
92305 if (type == 893 || type == 907)
92306 {
92307 return new Color(255, 255, 255, 150);
92308 }
92309 if (type == 833 || type == 834 || type == 835 || type == 912)
92310 {
92311 return Color.Lerp(newColor, Color.White, 0.25f);
92312 }
92313 if (type == 351 || type == 350)
92314 {
92315 Point point = base.Center.ToTileCoordinates();
92316 if (WorldGen.InWorld(point.X, point.Y) && !WorldGen.SolidTile(point.X, point.Y))
92317 {
92318 return Color.Lerp(newColor, Color.White, 0.15f);
92319 }
92320 return Color.Lerp(newColor, Color.White, 0.05f);
92321 }
92322 if (type == 346 || type == 347 || type == 325 || type == 755)
92323 {
92324 return Color.Lerp(newColor, Color.White, 0.75f);
92325 }
92326 if (type == 650)
92327 {
92328 r = (int)((double)(int)((Color)(ref newColor)).R * 1.5);
92329 g = (int)((double)(int)((Color)(ref newColor)).G * 1.5);
92330 b = (int)((double)(int)((Color)(ref newColor)).B * 1.5);
92331 if (r > 255)
92332 {
92333 r = 255;
92334 }
92335 if (g > 255)
92336 {
92337 g = 255;
92338 }
92339 if (b > 255)
92340 {
92341 b = 255;
92342 }
92343 }
92344 else
92345 {
92346 if (type == 948)
92347 {
92348 return Color.White;
92349 }
92350 if (type == 604 || type == 631)
92351 {
92352 return new Color(255 - alpha, 255 - alpha, 255 - alpha, 0);
92353 }
92354 if (type == 342)
92355 {
92356 return Color.Lerp(newColor, Color.White, 0.75f) * Opacity;
92357 }
92358 if (type == 636)
92359 {
92360 return new Color(255 - alpha, 255 - alpha, 255 - alpha, 64 - alpha / 4);
92361 }
92362 if (type == 673 || type == 706)
92363 {
92364 return new Color(255 - alpha, 255 - alpha, 255 - alpha, 180 - alpha / 2 - alpha / 4);
92365 }
92366 if (type == 603 || type == 633)
92367 {
92368 return new Color(255, 255, 255, 200);
92369 }
92370 if (type == 623 || (type >= 625 && type <= 628) || type == 710)
92371 {
92372 return new Color(255 - alpha, 255 - alpha, 255 - alpha, 255 - alpha);
92373 }
92374 if (type == 645 || type == 643)
92375 {
92376 return new Color(255 - alpha, 255 - alpha, 255 - alpha, 127 - alpha / 2);
92377 }
92378 if (type == 611)
92379 {
92380 return new Color(255, 255, 255, 200);
92381 }
92382 if (type == 640 || type == 644 || type == 658)
92383 {
92384 return new Color(255 - alpha, 255 - alpha, 255 - alpha, 0);
92385 }
92386 if (type == 612 || type == 953)
92387 {
92388 return new Color(255, 255, 255, 127);
92389 }
92390 if (type == 978)
92391 {
92392 return new Color(255, 255, 255, 127) * Opacity;
92393 }
92394 if (aiStyle == 105)
92395 {
92396 return new Color(255 - alpha, 255 - alpha, 255 - alpha, 255 - alpha);
92397 }
92398 if (type == 554)
92399 {
92400 return new Color(200, 200, 200, 200);
92401 }
92402 if (type == 601)
92403 {
92404 return PortalHelper.GetPortalColor(owner, (int)ai[0]);
92405 }
92406 if (type == 602)
92407 {
92409 ((Color)(ref portalColor)).A = 227;
92410 return portalColor;
92411 }
92412 if (type == 585)
92413 {
92414 byte a = ((Color)(ref newColor)).A;
92415 newColor = Color.Lerp(newColor, Color.White, 0.5f);
92416 ((Color)(ref newColor)).A = a;
92417 return newColor;
92418 }
92419 if (type == 714)
92420 {
92421 byte a2 = ((Color)(ref newColor)).A;
92422 newColor = Color.Lerp(newColor, Color.White, 0.8f);
92423 ((Color)(ref newColor)).A = a2;
92424 newColor *= (float)(int)a2 / 255f;
92425 return newColor;
92426 }
92427 if (type == 573 || type == 578 || type == 579 || type == 617 || type == 641 || type == 707 || type == 813)
92428 {
92429 return new Color(255 - alpha, 255 - alpha, 255 - alpha, 255 - alpha);
92430 }
92431 if (type == 490)
92432 {
92433 return Color.White;
92434 }
92435 if (type == 575 || type == 596 || type == 659)
92436 {
92437 if (timeLeft < 30)
92438 {
92439 float num5 = (float)timeLeft / 30f;
92440 alpha = (int)(255f - 255f * num5);
92441 }
92442 return new Color(255 - alpha, 255 - alpha, 255 - alpha, 128 - alpha / 2);
92443 }
92444 if (type == 546)
92445 {
92446 return new Color(255, 200, 255, 200);
92447 }
92448 if (type == 553)
92449 {
92450 return new Color(255, 255, 200, 200);
92451 }
92452 if (type == 540)
92453 {
92454 return new Color(255 - alpha, 255 - alpha, 255 - alpha, 0);
92455 }
92456 if (type == 498)
92457 {
92458 return new Color(255, 100, 20, 200);
92459 }
92460 if (type == 538)
92461 {
92462 return new Color(255 - alpha, 255 - alpha, 255 - alpha, 255 - alpha);
92463 }
92464 if (type == 518)
92465 {
92466 float num6 = 1f - (float)alpha / 255f;
92467 return new Color((int)(200f * num6), (int)(200f * num6), (int)(200f * num6), (int)(100f * num6));
92468 }
92469 if (type == 518 || type == 595 || type == 735)
92470 {
92471 Color color = Color.Lerp(newColor, Color.White, 0.85f);
92472 ((Color)(ref color)).A = 128;
92473 return color * (1f - (float)alpha / 255f);
92474 }
92475 if (type == 536 || type == 607)
92476 {
92477 return new Color(255 - alpha, 255 - alpha, 255 - alpha, 63 - alpha / 4);
92478 }
92479 if (type == 591)
92480 {
92481 return new Color(255 - alpha, 255 - alpha, 255 - alpha, 63 - alpha / 4);
92482 }
92483 if (type == 493 || type == 494)
92484 {
92485 return new Color(255 - alpha, 255 - alpha, 255 - alpha, 255 - alpha);
92486 }
92487 if (type == 492)
92488 {
92489 return new Color(255, 255, 255, 255);
92490 }
92491 if (type == 491)
92492 {
92493 return new Color(255, 255, 255, 255);
92494 }
92495 if (type == 485 || type == 502)
92496 {
92497 return new Color(255, 255, 255, 200);
92498 }
92499 if (type == 488)
92500 {
92501 return new Color(255, 255, 255, 255);
92502 }
92503 if (type == 477 || type == 478 || type == 479)
92504 {
92505 if (alpha == 0)
92506 {
92507 return new Color(255, 255, 255, 200);
92508 }
92509 return new Color(0, 0, 0, 0);
92510 }
92511 if (type == 473)
92512 {
92513 return new Color(255, 255, 255, 255);
92514 }
92515 if (type == 50 || type == 53 || type == 515 || type == 870)
92516 {
92517 return new Color(255, 255, 255, 0);
92518 }
92519 if (type == 723 || type == 724 || type == 725 || type == 726 || type == 728 || type == 9)
92520 {
92521 return new Color(255, 255, 255, 0) * Opacity;
92522 }
92523 if (type == 92)
92524 {
92525 return new Color(255, 255, 255, 0);
92526 }
92527 if (type == 91)
92528 {
92529 return new Color(200, 200, 200, 0);
92530 }
92531 if (type == 34 || type == 15 || type == 93 || type == 94 || type == 95 || type == 96 || type == 253 || type == 258 || (type == 102 && alpha < 255))
92532 {
92533 return new Color(200, 200, 200, 25);
92534 }
92535 if (type == 465)
92536 {
92537 return new Color(255, 255, 255, 0) * (1f - (float)alpha / 255f);
92538 }
92539 if (type == 503)
92540 {
92541 Color val2 = Color.Lerp(newColor, Color.White, 0.5f) * (1f - (float)alpha / 255f);
92542 Color value2 = Color.Lerp(Color.Purple, Color.White, 0.33f);
92543 float amount2 = 0.25f + (float)Math.Cos(localAI[0]) * 0.25f;
92544 return Color.Lerp(val2, value2, amount2);
92545 }
92546 if (type == 467)
92547 {
92548 return new Color(255, 255, 255, 255) * (1f - (float)alpha / 255f);
92549 }
92550 if (type == 694 || type == 695 || type == 696)
92551 {
92552 return new Color(255, 255, 255, 127) * (1f - (float)alpha / 255f);
92553 }
92554 if (type == 634 || type == 635)
92555 {
92556 return new Color(255, 255, 255, 127) * Opacity;
92557 }
92558 if (type == 671)
92559 {
92560 return new Color(255, 255, 255, 255) * Opacity;
92561 }
92562 if (type == 664 || type == 666 || type == 668)
92563 {
92564 newColor = Color.Lerp(newColor, Color.White, 0.5f);
92565 return new Color((int)((Color)(ref newColor)).R, (int)((Color)(ref newColor)).G, (int)((Color)(ref newColor)).B, 200) * Opacity;
92566 }
92567 if (type == 451)
92568 {
92569 return new Color(255, 255, 255, 200) * ((255f - (float)alpha) / 255f);
92570 }
92571 if (type == 684)
92572 {
92573 return new Color(255, 255, 255, 200) * ((255f - (float)alpha) / 255f);
92574 }
92575 if (type == 454 || type == 452)
92576 {
92577 return new Color(255, 255, 255, 255) * (1f - (float)alpha / 255f);
92578 }
92579 if (type == 464)
92580 {
92581 return new Color(255, 255, 255, 255) * ((255f - (float)alpha) / 255f);
92582 }
92583 if (type == 450)
92584 {
92585 return new Color(200, 200, 200, 255 - alpha);
92586 }
92587 if (type == 459 || type == 709)
92588 {
92589 return new Color(255, 255, 255, 200);
92590 }
92591 if (type == 447)
92592 {
92593 return new Color(255, 255, 255, 200);
92594 }
92595 if (type == 446)
92596 {
92597 return Color.Lerp(newColor, Color.White, 0.8f) * (1f - (float)alpha / 255f);
92598 }
92599 if (type == 691 || type == 692 || type == 693)
92600 {
92601 return Color.Lerp(newColor, Color.White, 0.4f) * (1f - (float)alpha / 255f);
92602 }
92603 if (type >= 646 && type <= 649)
92604 {
92605 return Color.Lerp(newColor, Color.White, 0.8f) * (1f - (float)alpha / 255f);
92606 }
92607 if (type == 445)
92608 {
92609 return new Color(255, 255, 255, 128) * (1f - (float)alpha / 255f);
92610 }
92611 if (type == 440 || type == 449 || type == 606)
92612 {
92613 r = 255 - alpha;
92614 g = 255 - alpha;
92615 b = 255 - alpha;
92616 }
92617 else
92618 {
92619 if (type == 444)
92620 {
92621 return newColor * (1f - (float)alpha / 255f);
92622 }
92623 if (type == 443 || type == 675 || type == 686 || type == 711)
92624 {
92625 return new Color(255, 255, 255, 128) * (1f - (float)alpha / 255f);
92626 }
92627 if (type == 676)
92628 {
92629 return newColor * Opacity;
92630 }
92631 if (type == 438)
92632 {
92633 return new Color(255, 255, 255, 128) * (1f - (float)alpha / 255f);
92634 }
92635 if (type == 592)
92636 {
92637 return new Color(255, 255, 255, 128) * (1f - (float)alpha / 255f);
92638 }
92639 if (type == 437 || type == 700)
92640 {
92641 return new Color(255, 255, 255, 0) * (1f - (float)alpha / 255f);
92642 }
92643 if (type == 964 || type == 965)
92644 {
92645 return new Color(255, 255, 255, 255) * Opacity;
92646 }
92647 if (type == 462)
92648 {
92649 return new Color(255, 255, 255, 128) * (1f - (float)alpha / 255f);
92650 }
92651 if (type == 352)
92652 {
92653 Color color2 = Color.Lerp(newColor, Color.White, 0.5f);
92654 ((Color)(ref color2)).A = (byte)((float)(int)((Color)(ref color2)).A * ((float)alpha / 255f));
92655 return new Color((int)((Color)(ref color2)).R, (int)((Color)(ref color2)).G, (int)((Color)(ref color2)).B, (int)((Color)(ref color2)).A);
92656 }
92657 if (type == 435 || type == 732 || type == 731)
92658 {
92659 newColor = Color.Lerp(newColor, Color.White, 0.8f);
92660 return new Color((int)((Color)(ref newColor)).R, (int)((Color)(ref newColor)).G, (int)((Color)(ref newColor)).B, 25);
92661 }
92662 if (type == 682)
92663 {
92664 newColor = Color.Lerp(newColor, Color.White, 0.8f);
92665 return new Color((int)((Color)(ref newColor)).R, (int)((Color)(ref newColor)).G, (int)((Color)(ref newColor)).B, 127);
92666 }
92667 if (type == 436)
92668 {
92669 newColor = Color.Lerp(newColor, Color.White, 0.8f);
92670 return new Color((int)((Color)(ref newColor)).R, (int)((Color)(ref newColor)).G, (int)((Color)(ref newColor)).B, 25);
92671 }
92672 if (type == 409)
92673 {
92674 return new Color(250, 250, 250, 200);
92675 }
92676 if (type == 348 || type == 349)
92677 {
92678 return new Color(200, 200, 200, alpha);
92679 }
92680 if (type == 337)
92681 {
92682 return new Color(250, 250, 250, 150);
92683 }
92684 if (type >= 424 && type <= 426)
92685 {
92686 byte b2 = 150;
92687 if (((Color)(ref newColor)).R < b2)
92688 {
92689 ((Color)(ref newColor)).R = b2;
92690 }
92691 if (((Color)(ref newColor)).G < b2)
92692 {
92693 ((Color)(ref newColor)).G = b2;
92694 }
92695 if (((Color)(ref newColor)).B < b2)
92696 {
92697 ((Color)(ref newColor)).B = b2;
92698 }
92699 return new Color((int)((Color)(ref newColor)).R, (int)((Color)(ref newColor)).G, (int)((Color)(ref newColor)).B, 255);
92700 }
92701 if (type == 431 || type == 432)
92702 {
92703 return new Color(250, 250, 250, 255 - alpha);
92704 }
92705 if (type == 343 || type == 344)
92706 {
92707 float num7 = 1f - (float)alpha / 255f;
92708 return new Color((int)(250f * num7), (int)(250f * num7), (int)(250f * num7), (int)(100f * num7));
92709 }
92710 if (type == 332)
92711 {
92712 return new Color(255, 255, 255, 255);
92713 }
92714 if (type == 329)
92715 {
92716 return new Color(200, 200, 200, 50);
92717 }
92718 if (type >= 326 && type <= 328)
92719 {
92720 return Color.Transparent;
92721 }
92722 if (type >= 400 && type <= 402)
92723 {
92724 return Color.Transparent;
92725 }
92726 if (type == 324 && frame >= 6 && frame <= 9)
92727 {
92728 return new Color(255, 255, 255, 255);
92729 }
92730 if (type == 16)
92731 {
92732 return new Color(255, 255, 255, 0);
92733 }
92734 if (type == 321)
92735 {
92736 return new Color(200, 200, 200, 0);
92737 }
92738 if (type == 76 || type == 77 || type == 78)
92739 {
92740 return new Color(255, 255, 255, 0);
92741 }
92742 if (type == 308)
92743 {
92744 return new Color(200, 200, 255, 125);
92745 }
92746 if (type == 263)
92747 {
92748 if (timeLeft < 255)
92749 {
92750 return new Color(255, 255, 255, (int)(byte)timeLeft);
92751 }
92752 return new Color(255, 255, 255, 255);
92753 }
92754 if (type == 274)
92755 {
92756 if (timeLeft < 85)
92757 {
92758 byte b3 = (byte)(timeLeft * 3);
92759 byte a3 = (byte)(100f * ((float)(int)b3 / 255f));
92760 return new Color((int)b3, (int)b3, (int)b3, (int)a3);
92761 }
92762 return new Color(255, 255, 255, 100);
92763 }
92764 if (type == 5)
92765 {
92766 return new Color(255, 255, 255, 0);
92767 }
92768 if (type == 300)
92769 {
92770 return new Color(250, 250, 250, 50);
92771 }
92772 if (type == 301)
92773 {
92774 if (ai[0] == 1f)
92775 {
92776 return newColor;
92777 }
92778 return new Color(250, 250, 250, 50);
92779 }
92780 if (type == 712)
92781 {
92782 return Color.Lerp(newColor, Color.White, 0.4f) * Opacity;
92783 }
92784 if (type == 304)
92785 {
92786 return new Color(255 - alpha, 255 - alpha, 255 - alpha, (int)(byte)((float)(255 - alpha) / 3f));
92787 }
92788 if (type == 116 || type == 132 || type == 156 || type == 157 || type == 157 || type == 173)
92789 {
92790 if (localAI[1] >= 15f)
92791 {
92792 return new Color(255, 255, 255, alpha);
92793 }
92794 if (localAI[1] < 5f)
92795 {
92796 return Color.Transparent;
92797 }
92798 int num11 = (int)((localAI[1] - 5f) / 10f * 255f);
92799 return new Color(num11, num11, num11, num11);
92800 }
92801 if (type == 254)
92802 {
92803 if (timeLeft < 30)
92804 {
92805 float num8 = (float)timeLeft / 30f;
92806 alpha = (int)(255f - 255f * num8);
92807 }
92808 return new Color(255 - alpha, 255 - alpha, 255 - alpha, 0);
92809 }
92810 if (type == 265 || type == 355)
92811 {
92812 if (alpha > 0)
92813 {
92814 return Color.Transparent;
92815 }
92816 return new Color(255, 255, 255, 0);
92817 }
92818 if (type == 257)
92819 {
92820 if (alpha > 200)
92821 {
92822 return Color.Transparent;
92823 }
92824 return new Color(255 - alpha, 255 - alpha, 255 - alpha, 0);
92825 }
92826 if (type == 259)
92827 {
92828 if (alpha > 200)
92829 {
92830 return Color.Transparent;
92831 }
92832 return new Color(255 - alpha, 255 - alpha, 255 - alpha, 0);
92833 }
92834 if (type >= 150 && type <= 152)
92835 {
92836 return new Color(255 - alpha, 255 - alpha, 255 - alpha, 255 - alpha);
92837 }
92838 if (type == 250)
92839 {
92840 return Color.Transparent;
92841 }
92842 if (type == 251)
92843 {
92844 r = 255 - alpha;
92845 g = 255 - alpha;
92846 b = 255 - alpha;
92847 return new Color(r, g, b, 0);
92848 }
92849 if (type == 131)
92850 {
92851 return new Color(255 - alpha, 255 - alpha, 255 - alpha, 0);
92852 }
92853 if (type == 211)
92854 {
92855 return new Color(255, 255, 255, 0);
92856 }
92857 if (type == 229)
92858 {
92859 return new Color(255, 255, 255, 50);
92860 }
92861 if (type == 221 || type == 729 || type == 977)
92862 {
92863 return new Color(255, 255, 255, 200);
92864 }
92865 if (type == 20)
92866 {
92867 if (alpha <= 150)
92868 {
92869 return new Color(255, 255, 255, 0);
92870 }
92871 return new Color(0, 0, 0, 0);
92872 }
92873 if (type == 207)
92874 {
92875 r = 255 - alpha;
92876 g = 255 - alpha;
92877 b = 255 - alpha;
92878 }
92879 else
92880 {
92881 if (type == 242)
92882 {
92883 if (alpha < 140)
92884 {
92885 return new Color(255, 255, 255, 100);
92886 }
92887 return Color.Transparent;
92888 }
92889 if (type == 638)
92890 {
92891 return new Color(255, 255, 255, 100) * Opacity;
92892 }
92893 if (type == 660)
92894 {
92895 return new Color(150, 255, 255, 0) * Opacity;
92896 }
92897 if (type == 209)
92898 {
92899 r = ((Color)(ref newColor)).R - alpha;
92900 g = ((Color)(ref newColor)).G - alpha;
92901 b = ((Color)(ref newColor)).B - alpha / 2;
92902 }
92903 else
92904 {
92905 if (type == 130)
92906 {
92907 return new Color(255, 255, 255, 175);
92908 }
92909 if (type == 182)
92910 {
92911 return new Color(255, 255, 255, 200);
92912 }
92913 if (type == 226)
92914 {
92915 r = 255;
92916 g = 255;
92917 b = 255;
92918 float num9 = (float)(int)Main.mouseTextColor / 200f - 0.3f;
92919 r = (int)((float)r * num9);
92920 g = (int)((float)g * num9);
92921 b = (int)((float)b * num9);
92922 r += 50;
92923 if (r > 255)
92924 {
92925 r = 255;
92926 }
92927 g += 50;
92928 if (g > 255)
92929 {
92930 g = 255;
92931 }
92932 b += 50;
92933 if (b > 255)
92934 {
92935 b = 255;
92936 }
92937 return new Color(r, g, b, 200);
92938 }
92939 if (type == 227)
92940 {
92941 r = (g = (b = 255));
92942 float num10 = (float)(int)Main.mouseTextColor / 100f - 1.6f;
92943 r = (int)((float)r * num10);
92944 g = (int)((float)g * num10);
92945 b = (int)((float)b * num10);
92946 int a4 = (int)(100f * num10);
92947 r += 50;
92948 if (r > 255)
92949 {
92950 r = 255;
92951 }
92952 g += 50;
92953 if (g > 255)
92954 {
92955 g = 255;
92956 }
92957 b += 50;
92958 if (b > 255)
92959 {
92960 b = 255;
92961 }
92962 return new Color(r, g, b, a4);
92963 }
92964 if (type == 114 || type == 115)
92965 {
92966 if (localAI[1] >= 15f)
92967 {
92968 return new Color(255, 255, 255, alpha);
92969 }
92970 if (localAI[1] < 5f)
92971 {
92972 return Color.Transparent;
92973 }
92974 int num12 = (int)((localAI[1] - 5f) / 10f * 255f);
92975 return new Color(num12, num12, num12, num12);
92976 }
92977 if (type == 83 || type == 88 || type == 89 || type == 90 || type == 100 || type == 104 || type == 279 || (type >= 283 && type <= 287) || type == 876)
92978 {
92979 if (alpha < 200)
92980 {
92981 return new Color(255 - alpha, 255 - alpha, 255 - alpha, 0);
92982 }
92983 return Color.Transparent;
92984 }
92985 if (type == 34 || type == 35 || type == 15 || type == 19 || type == 44 || type == 45)
92986 {
92987 return Color.White;
92988 }
92989 if (type == 79)
92990 {
92991 r = Main.DiscoR;
92992 g = Main.DiscoG;
92993 b = Main.DiscoB;
92994 return default(Color);
92995 }
92996 if (type == 9 || type == 15 || type == 34 || type == 50 || type == 53 || type == 76 || type == 77 || type == 78 || type == 92 || type == 91)
92997 {
92998 r = ((Color)(ref newColor)).R - alpha / 3;
92999 g = ((Color)(ref newColor)).G - alpha / 3;
93000 b = ((Color)(ref newColor)).B - alpha / 3;
93001 }
93002 else
93003 {
93004 if (type == 18)
93005 {
93006 return new Color(255, 255, 255, 50);
93007 }
93008 if (type == 16 || type == 44 || type == 45)
93009 {
93010 r = ((Color)(ref newColor)).R;
93011 g = ((Color)(ref newColor)).G;
93012 b = ((Color)(ref newColor)).B;
93013 }
93014 else if (type == 12 || type == 72 || type == 86 || type == 87 || type == 955)
93015 {
93016 return new Color(255, 255, 255, ((Color)(ref newColor)).A - alpha);
93017 }
93018 }
93019 }
93020 }
93021 }
93022 }
93023 float num2 = (float)(255 - alpha) / 255f;
93024 r = (int)((float)(int)((Color)(ref newColor)).R * num2);
93025 g = (int)((float)(int)((Color)(ref newColor)).G * num2);
93026 b = (int)((float)(int)((Color)(ref newColor)).B * num2);
93027 int num3 = ((Color)(ref newColor)).A - alpha;
93028 if (num3 < 0)
93029 {
93030 num3 = 0;
93031 }
93032 if (num3 > 255)
93033 {
93034 num3 = 255;
93035 }
93036 return new Color(r, g, b, num3);
93037 }
static Color GetPortalColor(int colorIndex)
static ? Color GetAlpha(Projectile projectile, Color lightColor)
This serves as the central class from which projectile-related functions are carried out....
int owner
The index of the player who owns this projectile. In Multiplayer, Clients "own" projectiles that they...
int aiStyle
Selects which vanilla code to use for the AI method. Vanilla projectile AI styles are enumerated in t...
float[] ai
An array with 3 slots used for any sort of data storage, which is occasionally synced to the server....
int alpha
How transparent to draw this projectile. 0 to 255. 255 is completely transparent. ExampleBulletsets...
float[] localAI
Acts like F:Terraria.Projectile.ai, but does not sync to the server. Many vanilla T:Terraria....
int frame
The frame number in the spritesheet that this projectile will be drawn with. Assign in M:Terraria....
int type
The Projectile ID of this projectile. The Projectile ID is a unique number assigned to each Projectil...
int timeLeft
Time in ticks before this projectile will naturally despawn. Each update timeLeft is decreased by 1...

References Terraria.Main.DiscoB, Terraria.Main.DiscoG, Terraria.Main.DiscoR, Terraria.ModLoader.ProjectileLoader.GetAlpha(), Terraria.GameContent.PortalHelper.GetPortalColor(), Terraria.WorldGen.InWorld(), Terraria.Main.player, Terraria.WorldGen.SolidTile(), and Terraria.Utils.WrappedLerp().

+ Here is the call graph for this function: