2459 {
2460 if (context == 6 && Main.hoverItemName == null)
2461 {
2462 Main.hoverItemName = Lang.inter[3].Value;
2463 }
2464 if (inv[slot].
type > 0 && inv[slot].stack > 0)
2465 {
2467 Main.hoverItemName = inv[slot].Name;
2468 if (inv[slot].stack > 1)
2469 {
2470 Main.hoverItemName = Main.hoverItemName + " (" + inv[slot].stack + ")";
2471 }
2472 Main.HoverItem = inv[slot].Clone();
2473 Main.HoverItem.tooltipContext = context;
2474 if (context == 8 && slot <= 2)
2475 {
2476 Main.HoverItem.wornArmor = true;
2477 return;
2478 }
2479 switch (context)
2480 {
2481 case 9:
2482 case 11:
2483 Main.HoverItem.social = true;
2484 break;
2485 case 15:
2486 Main.HoverItem.buy = true;
2487 break;
2488 }
2489 return;
2490 }
2491 if (context == 10 || context == 11 || context == 24)
2492 {
2493 Main.hoverItemName = Lang.inter[9].Value;
2494 }
2495 if (context == 11)
2496 {
2497 Main.hoverItemName = Lang.inter[11].Value + " " + Main.hoverItemName;
2498 }
2499 if (context == 8 || context == 9 || context == 23 || context == 26)
2500 {
2501 if (slot == 0 || slot == 10 || context == 26)
2502 {
2503 Main.hoverItemName = Lang.inter[12].Value;
2504 }
2505 else if (slot == 1 || slot == 11)
2506 {
2507 Main.hoverItemName = Lang.inter[13].Value;
2508 }
2509 else if (slot == 2 || slot == 12)
2510 {
2511 Main.hoverItemName = Lang.inter[14].Value;
2512 }
2513 else if (slot >= 10)
2514 {
2515 Main.hoverItemName = Lang.inter[11].Value + " " + Main.hoverItemName;
2516 }
2517 }
2518 if (context == 12 || context == 25 || context == 27 || context == 33)
2519 {
2520 Main.hoverItemName = Lang.inter[57].Value;
2521 }
2522 if (context == 16)
2523 {
2524 Main.hoverItemName = Lang.inter[90].Value;
2525 }
2526 if (context == 17)
2527 {
2528 Main.hoverItemName = Lang.inter[91].Value;
2529 }
2530 if (context == 19)
2531 {
2532 Main.hoverItemName = Lang.inter[92].Value;
2533 }
2534 if (context == 18)
2535 {
2536 Main.hoverItemName = Lang.inter[93].Value;
2537 }
2538 if (context == 20)
2539 {
2540 Main.hoverItemName = Lang.inter[94].Value;
2541 }
2542 }
static int _customCurrencyForSavings