49239 {
49240
49241
49242
49243
49244
49245
49246
49247
49248
49249
49250
49251
49252
49253
49254
49255
49256
49257
49258
49259
49260
49261
49262
49263
49264
49265
49266
49267
49268
49269
49270
49271
49272
49273
49274
49275
49276
49277
49278
49279
49282 {
49283 return val.GetValueOrDefault();
49284 }
49286 {
49287 return Color.Lerp(
newColor, Color.White, 0.4f);
49288 }
49290 {
49291 case 1326:
49292 case 5335:
49293 return Color.Lerp(
newColor, Color.White, 0.75f);
49294 case 5043:
49296 case 3065:
49297 case 4956:
49299 case 75:
49300 case 3858:
49301 return new Color(255, 255, 255, 255);
49302 case 119:
49303 case 120:
49304 case 121:
49305 case 122:
49306 case 217:
49307 case 218:
49308 case 219:
49309 case 220:
49310 return new Color(255, 255, 255, 255);
49311 case 501:
49312 return new Color(200, 200, 200, 50);
49313 case 757:
49314 case 1306:
49315 case 3456:
49316 case 3457:
49317 case 3458:
49318 case 3459:
49319 return new Color(255, 255, 255, 200);
49320 case 520:
49321 case 521:
49322 case 522:
49323 case 547:
49324 case 548:
49325 case 549:
49326 case 575:
49327 case 1332:
49328 case 3453:
49329 case 3454:
49330 case 3455:
49331 case 3580:
49332 return new Color(255, 255, 255, 50);
49333 case 58:
49334 case 184:
49335 case 1734:
49336 case 1735:
49337 case 1867:
49338 case 1868:
49339 return new Color(200, 200, 200, 200);
49340 case 1572:
49341 return new Color(200, 200, 255, 125);
49342 case 787:
49343 return new Color(255, 255, 255, 175);
49344 case 1826:
49345 return new Color(255, 255, 255, 200);
49346 case 1508:
49347 return new Color(200, 200, 200, 0);
49348 case 502:
49349 return new Color(255, 255, 255, 150);
49350 case 51:
49351 return new Color(255, 255, 255, 0);
49352 case 1260:
49353 return new Color(255, 255, 255, 175);
49354 case 1446:
49355 case 1506:
49356 case 1507:
49357 case 1543:
49358 case 1544:
49359 case 1545:
49361 case 198:
49362 case 199:
49363 case 200:
49364 case 201:
49365 case 202:
49366 case 203:
49367 case 3764:
49368 case 3765:
49369 case 3766:
49370 case 3767:
49371 case 3768:
49372 case 3769:
49373 case 4258:
49374 case 4259:
49375 return Color.White;
49376 case 2763:
49377 case 2764:
49378 case 2765:
49379 case 2782:
49380 case 2783:
49381 case 2784:
49382 case 2785:
49383 case 2786:
49384 case 3522:
49385 return new Color(250, 250, 250, 255 -
alpha);
49386 case 3191:
49387 return new Color(250, 250, 250, 200);
49388 case 3822:
49389 return Color.Lerp(Color.White,
newColor, 0.5f) * ((255
f - (float)
alpha) / 255
f);
49390 case 4143:
49391 return Color.Lerp(Color.White,
newColor, 0
f) * ((255
f - (float)
alpha) / 255
f);
49392 case 4354:
49393 case 4377:
49394 case 4378:
49395 case 4389:
49396 case 5127:
49397 case 5128:
49398 {
49399 Color
color =
default(Color);
49401 {
49402 default:
49404 break;
49405 case 4377:
49407 break;
49408 case 4378:
49410 break;
49411 case 4389:
49413 break;
49414 case 5127:
49416 break;
49417 case 5128:
49419 break;
49420 }
49422 {
49424 }
49426 {
49428 }
49430 {
49432 }
49434 {
49436 }
49438 }
49439 default:
49440 {
49441 float num = (float)(255 -
alpha) / 255
f;
49447 {
49449 }
49451 {
49453 }
49455 }
49456 }
49457 }
static bool[] BossBag
Set for all boss bags. Causes bags to drop dev armor and creates a glow around the item when dropped ...
int alpha
Set to a value from 0 to 255 to control how transparent the item will appear when drawn....
Color color
Draws the item sprite with a colored tint. Gel and Sharkfin use this to spawn different colored items...
int type
The Item ID of this item. The Item ID is a unique number assigned to each Item loaded into the game....
static ? Color GetAlpha(Item item, Color lightColor)
Calls all GlobalItem.GetAlpha hooks then ModItem.GetAlpha, until one of them returns a color,...
This serves as the central class from which item-related functions are carried out....