Advertisement
jarppaaja

InventoryAndStashPlugin rev 865

Jan 24th, 2019
508
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 23.93 KB | None | 0 0
  1. // InventoryAndStashPlugin.cs "$Revision: 865 $" "$Date: 2019-01-24 18:33:04 +0200 (to, 24 tammi 2019) $"
  2. using System;
  3. using System.Diagnostics;
  4. using System.Globalization;
  5. using System.Linq;
  6. using Turbo.Plugins.Default;
  7.  
  8. namespace Turbo.Plugins.JarJar.DefaultUI
  9. {
  10.     public class InventoryAndStashPlugin : BasePlugin, ICustomizer, IInGameTopPainter
  11.     {
  12.         // NOTE that this draws to same places as original InventoryAndStashPlugin!
  13.  
  14.         public bool ShowImportantEnabled { get; set; } = true;
  15.         public bool ShowGreenStarEnabled { get; set; } = true;
  16.         public bool ShowRedStarEnabled { get; set; } = false;
  17.  
  18.         public bool HoradricCacheEnabled { get; set; } = true;
  19.         public bool CanCubedEnabled { get; set; } = false;
  20.  
  21.         public string StarChar { get; set; } = "\u2605";            // black star
  22.         public string FollowerChar { get; set; } = "\uD83D\uDEE1";  // shield
  23.         public string RecycleChar { get; set; } = "\u267A";         // recycling symbol
  24.         public string NoticeChar { get; set; } = "\u25CF";          // black circle
  25.         public string CubeChar { get; set; } = "\u2622";            // radioactive sign
  26.  
  27.         public IFont LooksGoodFont { get; set; }
  28.         public IFont LooksBadFont { get; set; }
  29.         public IFont FollowerFont { get; set; }
  30.         public IFont RecycleFont { get; set; }
  31.         public IFont CubeFont { get; set; }
  32.         public IFont NoticeFont { get; set; }
  33.         public IFont AncientRankFont { get; set; }
  34.         public IFont PrimalRankFont { get; set; }
  35.         public IFont SocketedLegendaryGemRankFont { get; set; }
  36.         public IFont HoradricCacheFont { get; set; }
  37.         public IFont QuantityFont { get; set; }
  38.  
  39.         public Func<IItem, ItemKeepDecision> GetItemKeepDecision;
  40.  
  41.         public IBrush InventoryLockBorderBrush { get; set; }
  42.  
  43.         readonly Stopwatch _stopper = Stopwatch.StartNew();
  44.  
  45.         public InventoryAndStashPlugin() { Enabled = true; }
  46.  
  47.         public void Customize()
  48.         {
  49.             // Disable original InventoryAndStashPlugin & Co.!
  50.             Hud.TogglePlugin<Turbo.Plugins.Default.InventoryAndStashPlugin>(false);
  51.             Hud.TogglePlugin<Turbo.Plugins.Default.HoveredItemInfoPlugin>(false);
  52.         }
  53.  
  54.         public override void Load(IController hud)
  55.         {
  56.             base.Load(hud);
  57.  
  58.             LooksGoodFont = Hud.Render.CreateFont("arial", 9, 255, 0, 255, 0, false, false, true);      // Bright green (lime)
  59.             LooksBadFont = Hud.Render.CreateFont("arial", 9, 255, 204, 0, 0, false, false, true);       // Red
  60.             FollowerFont = Hud.Render.CreateFont("arial", 7, 255, 51, 204, 166, false, false, true);    // Green-blue
  61.             RecycleFont = Hud.Render.CreateFont("arial", 10, 255, 255, 128, 0, true, false, true);      // Orange
  62.             CubeFont = Hud.Render.CreateFont("arial", 10, 128, 255, 255, 0, true, false, true);         // Yellow (with alpha)
  63.             NoticeFont = Hud.Render.CreateFont("arial", 11, 255, 255, 0, 255, true, false, false);      // Bright violet
  64.             NoticeFont.SetShadowBrush(128, 0, 0, 0, true);
  65.  
  66.             GetItemKeepDecision = (item) =>
  67.             {
  68.                 return item.KeepDecision;   // Default behaviour is like random decisions!
  69.             };
  70.  
  71.             HoradricCacheFont = Hud.Render.CreateFont("tahoma", 8, 255, 255, 255, 255, false, false, false);
  72.             HoradricCacheFont.SetShadowBrush(128, 0, 0, 0, true);
  73.             AncientRankFont = Hud.Render.CreateFont("arial", 7, 255, 0, 0, 0, true, false, 220, 227, 153, 25, true);
  74.             PrimalRankFont = Hud.Render.CreateFont("arial", 7, 255, 0, 0, 0, true, false, 180, 255, 64, 64, true);
  75.             SocketedLegendaryGemRankFont = Hud.Render.CreateFont("arial", 7, 255, 0, 0, 0, true, false, false);
  76.             SocketedLegendaryGemRankFont.SetShadowBrush(128, 240, 240, 64, true);
  77.             QuantityFont = Hud.Render.CreateFont("tahoma", 8, 255, 200, 200, 200, false, false, false);
  78.             QuantityFont.SetShadowBrush(128, 0, 0, 0, true);
  79.  
  80.             InventoryLockBorderBrush = Hud.Render.CreateBrush(100, 0, 150, 200, -1.6f);
  81.         }
  82.  
  83.         private int stashPage, stashTab, stashTabAbs;
  84.         private float rv;
  85.  
  86.         public void PaintTopInGame(ClipState clipState)
  87.         {
  88.             if (clipState != ClipState.Inventory) return;
  89.  
  90.             stashTab = Hud.Inventory.SelectedStashTabIndex;
  91.             stashPage = Hud.Inventory.SelectedStashPageIndex;
  92.             stashTabAbs = stashTab + stashPage * Hud.Inventory.MaxStashTabCountPerPage;
  93.  
  94.             rv = 32.0f / 600.0f * Hud.Window.Size.Height;
  95.  
  96.             if ((Hud.Inventory.InventoryLockArea.Width > 0) && (Hud.Inventory.InventoryLockArea.Height > 0))
  97.             {
  98.                 var rect = Hud.Inventory.GetRectInInventory(Hud.Inventory.InventoryLockArea.X, Hud.Inventory.InventoryLockArea.Y, Hud.Inventory.InventoryLockArea.Width, Hud.Inventory.InventoryLockArea.Height);
  99.                 InventoryLockBorderBrush.DrawRectangle(rect.X, rect.Y, rect.Width, rect.Height);
  100.             }
  101.             var items = Hud.Game.Items.Where(x => x.Location != ItemLocation.Merchant && x.Location != ItemLocation.Floor);
  102.             foreach (var item in items)
  103.             {
  104.                 if (item.Location == ItemLocation.Stash)
  105.                 {
  106.                     var tabIndex = item.InventoryY / 10;
  107.                     if (tabIndex != stashTabAbs) continue;
  108.                 }
  109.                 if ((item.InventoryX < 0) || (item.InventoryY < 0)) continue;
  110.  
  111.                 var rect = Hud.Inventory.GetItemRect(item);
  112.                 if (rect == System.Drawing.RectangleF.Empty) continue;
  113.  
  114.                 if (item.ItemsInSocket != null) DrawItemSocketedLegendaryGemRank(item, rect);
  115.                 if (item.AncientRank >= 1) DrawItemAncientRank(item, rect);
  116.                 DrawItemHoradricCache(item, rect);
  117.                 if (CanCubedEnabled) DrawItemCanCubed(item, rect);
  118.  
  119.                 // New paint logic.
  120.                 if (item.Location == ItemLocation.Stash || item.Location == ItemLocation.Inventory)
  121.                 {
  122.                     if (item.Unidentified ||
  123.                         !item.IsLegendary ||
  124.                         item.SnoItem.Kind == ItemKind.gem ||
  125.                         item.SnoItem.Kind == ItemKind.uberstuff ||
  126.                         item.SnoItem.Kind == ItemKind.potion ||
  127.                         item.SnoItem.MainGroupCode == "gems_unique" ||
  128.                         item.SnoItem.MainGroupCode == "riftkeystone" ||
  129.                         item.SnoItem.MainGroupCode == "healthpotions" ||
  130.                         item.SnoItem.MainGroupCode == "consumable" ||
  131.                         item.SnoItem.MainGroupCode == "horadriccache")
  132.                     {
  133.                         continue;
  134.                     }
  135.                 }
  136.                 if (ShowImportantEnabled || ShowGreenStarEnabled || ShowRedStarEnabled)
  137.                 {
  138.                     if ((item.SnoItem.NameEnglish == "Puzzle Ring" || item.SnoItem.NameEnglish == "Bovine Bardiche") && RecycleFont != null)
  139.                     {
  140.                         ShowStar(rect, RecycleChar, RecycleFont, false);
  141.                         continue;
  142.                     }
  143.                     string starChar = StarChar;
  144.                     bool? armorySet = null;
  145.                     // Check cube items only in inventory.
  146.                     if (item.Location == ItemLocation.Inventory)
  147.                     {
  148.                         if (Cube.Any(x => x == item.SnoItem.NameEnglish))
  149.                         {
  150.                             if (item.SnoItem.CanKanaiCube)
  151.                             {
  152.                                 if (!armorySet.HasValue) armorySet = checkArmorySets(item);
  153.                                 // CanCanai animation.
  154.                                 var cubeTexture = Hud.Texture.KanaiCubeTexture;
  155.                                 var h = cubeTexture.Height * 0.6f / 1200.0f * Hud.Window.Size.Height;
  156.                                 var rh = h;
  157.                                 var mod = armorySet.Value ? 1 : (_stopper.ElapsedMilliseconds) % 1000;
  158.                                 var ratio = 0.8f + 1.2f / 1000.0f * (mod < 500 ? mod : 1000 - mod);
  159.                                 rh *= ratio;
  160.  
  161.                                 var x = rect.Right - h * 0.80f - ((rh - h) / 2);
  162.                                 var y = rect.Top - h * 0.20f - ((rh - h) / 2);
  163.                                 cubeTexture.Draw(x, y, rh, rh, 1);
  164.                                 starChar = null;
  165.                             }
  166.                         }
  167.                         if (item.SnoItem.CanKanaiCube && Hud.Game.Me.IsCubed(item.SnoItem))
  168.                         {
  169.                             if (items.Where(x => x.Location != ItemLocation.Inventory && x.SnoItem.NameEnglish == item.SnoItem.NameEnglish).Count() == 0)
  170.                             {
  171.                                 // This has been cubed and is only in inventory, typically we do not want to save it - blinking.
  172.                                 if (!armorySet.HasValue) armorySet = checkArmorySets(item);
  173.                                 var mod = armorySet.Value ? 0 : (_stopper.ElapsedMilliseconds) % 1500;
  174.                                 if (mod < 750) ShowStar(rect, CubeChar, CubeFont, false);
  175.                                 starChar = null;
  176.                             }
  177.                         }
  178.                     }
  179.                     if (starChar != null)
  180.                     {
  181.                         bool halfSize = item.Location == ItemLocation.Waist;
  182.                         if (ShowImportantEnabled)
  183.                         {
  184.                             string itemMainStat = GetMainStatName(item);
  185.                             if (Important.Any(x => x.Name == item.SnoItem.NameEnglish
  186.                                 && (x.MainStat == itemMainStat || x.MainStat == MAINSTAT_NONE)))
  187.                             {
  188.                                 // Important item with our main stat (or wildcard).
  189.                                 if (item.Location == ItemLocation.Stash || item.Location == ItemLocation.Inventory)
  190.                                 {
  191.                                     // Check Follower gear first.
  192.                                     if (Follower.Any(x => x == item.SnoItem.NameEnglish))
  193.                                     {
  194.                                         ShowStar(rect, FollowerChar, FollowerFont, halfSize);
  195.                                         continue;
  196.                                     }
  197.                                     ShowStar(rect, NoticeChar, NoticeFont, halfSize);
  198.                                     continue;
  199.                                 }
  200.                                 // Show important equipped items with good/bad color.
  201.                                 starChar = NoticeChar;
  202.                                 if (GetItemKeepDecision(item) == ItemKeepDecision.LooksGood)
  203.                                 {
  204.                                     ShowStar(rect, starChar, ShowGreenStarEnabled ? LooksGoodFont : NoticeFont, halfSize);
  205.                                 }
  206.                                 else
  207.                                 {
  208.                                     ShowStar(rect, starChar, ShowRedStarEnabled ? LooksBadFont : NoticeFont, halfSize);
  209.                                 }
  210.                             }
  211.                         }
  212.                         ItemKeepDecision keepDecision = GetItemKeepDecision(item);
  213.                         if (ShowGreenStarEnabled)
  214.                         {
  215.                             if (keepDecision == ItemKeepDecision.LooksGood) ShowStar(rect, starChar, LooksGoodFont, halfSize);
  216.                         }
  217.                         if (ShowRedStarEnabled)
  218.                         {
  219.                             if (keepDecision != ItemKeepDecision.LooksGood) ShowStar(rect, starChar, LooksBadFont, halfSize);
  220.                         }
  221.                     }
  222.                 }
  223.             }
  224.         }
  225.  
  226.         void ShowStar(System.Drawing.RectangleF rect, string symbol, IFont font, bool halfSize)
  227.         {
  228.             // Top right corner.
  229.             var textLayout = font.GetTextLayout(symbol);
  230.             font.DrawText(textLayout, rect.Right - rv / 15.0f - textLayout.Metrics.Width, rect.Top - rv / (halfSize ? 8.75f : 17.5f));
  231.         }
  232.  
  233.         private void DrawItemSocketedLegendaryGemRank(IItem item, System.Drawing.RectangleF rect)
  234.         {
  235.             var legendaryGem = item.ItemsInSocket.FirstOrDefault(x => x.Quality == ItemQuality.Legendary && x.JewelRank > -1);
  236.             if (legendaryGem == null) return;
  237.  
  238.             var jewelRank = legendaryGem.JewelRank;
  239.             if (jewelRank > -1)
  240.             {
  241.                 var text = jewelRank.ToString("D", CultureInfo.InvariantCulture);
  242.                 var layout = SocketedLegendaryGemRankFont.GetTextLayout(text);
  243.                 SocketedLegendaryGemRankFont.DrawText(layout, rect.X, rect.Y);
  244.             }
  245.         }
  246.  
  247.         private void DrawItemAncientRank(IItem item, System.Drawing.RectangleF rect)
  248.         {
  249.             var ancientRank = item.AncientRank;
  250.             var caldesannRank = item.CaldesannRank;
  251.             var font = ancientRank == 1 ? AncientRankFont : PrimalRankFont;
  252.             string text;
  253.             if (caldesannRank == 0)
  254.             {
  255.                 text = ancientRank == 1 ? "A" : "P";
  256.             }
  257.             else
  258.             {
  259.                 text = caldesannRank.ToString("D", CultureInfo.InvariantCulture);
  260.             }
  261.             var textLayout = font.GetTextLayout(text);
  262.             font.DrawText(textLayout, rect.Right - rv / 15.0f - textLayout.Metrics.Width, rect.Bottom - rv / 35.0f - textLayout.Metrics.Height);
  263.         }
  264.  
  265.         private void DrawItemCanCubed(IItem item, System.Drawing.RectangleF rect)
  266.         {
  267.             if ((item.Location != ItemLocation.Inventory) && (item.Location != ItemLocation.Stash)) return;
  268.             var allowCube = item.SnoItem.CanKanaiCube && !Hud.Game.Me.IsCubed(item.SnoItem);
  269.             if (allowCube && !item.IsInventoryLocked)
  270.             {
  271.                 var cubeTexture = Hud.Texture.KanaiCubeTexture;
  272.                 var h = cubeTexture.Height * 0.6f / 1200.0f * Hud.Window.Size.Height;
  273.                 var rh = h;
  274.                 var mod = (_stopper.ElapsedMilliseconds) % 1000;
  275.                 var ratio = 0.8f + 1.2f / 1000.0f * (mod < 500 ? mod : 1000 - mod);
  276.                 rh *= ratio;
  277.  
  278.                 var x = rect.Right - h * 0.80f - ((rh - h) / 2);
  279.                 var y = rect.Top - h * 0.20f - ((rh - h) / 2);
  280.                 cubeTexture.Draw(x, y, rh, rh, 1);
  281.             }
  282.         }
  283.  
  284.         private void DrawItemHoradricCache(IItem item, System.Drawing.RectangleF rect)
  285.         {
  286.             if (!HoradricCacheEnabled) return;
  287.             if (item.SnoItem.MainGroupCode != "horadriccache") return;
  288.  
  289.             var text = "";
  290.             if (item.SnoItem.Code.Contains("A1")) text = "A1";
  291.             if (item.SnoItem.Code.Contains("A2")) text = "A2";
  292.             if (item.SnoItem.Code.Contains("A3")) text = "A3";
  293.             if (item.SnoItem.Code.Contains("A4")) text = "A4";
  294.             if (item.SnoItem.Code.Contains("A5")) text = "A5";
  295.             if (item.SnoItem.Code.Contains("Act1")) text = "A1";
  296.             if (item.SnoItem.Code.Contains("Act2")) text = "A2";
  297.             if (item.SnoItem.Code.Contains("Act3")) text = "A3";
  298.             if (item.SnoItem.Code.Contains("Act4")) text = "A4";
  299.             if (item.SnoItem.Code.Contains("Act5")) text = "A5";
  300.             if (item.SnoItem.Code.Contains("Hard")) text += ": H";
  301.             if (item.SnoItem.Code.Contains("Expert")) text += ": E";
  302.             if (item.SnoItem.Code.Contains("Master")) text += ": M";
  303.  
  304.             if (item.SnoItem.Code.Contains("T13")) text += ": T13";
  305.             else if (item.SnoItem.Code.Contains("T12")) text += ": T12";
  306.             else if (item.SnoItem.Code.Contains("T11")) text += ": T11";
  307.             else if (item.SnoItem.Code.Contains("T10")) text += ": T10";
  308.             else if (item.SnoItem.Code.Contains("T9")) text += ": T9";
  309.             else if (item.SnoItem.Code.Contains("T8")) text += ": T8";
  310.             else if (item.SnoItem.Code.Contains("T7")) text += ": T7";
  311.             else if (item.SnoItem.Code.Contains("T6")) text += ": T6";
  312.             else if (item.SnoItem.Code.Contains("T5")) text += ": T5";
  313.             else if (item.SnoItem.Code.Contains("T4")) text += ": T4";
  314.             else if (item.SnoItem.Code.Contains("T3")) text += ": T3";
  315.             else if (item.SnoItem.Code.Contains("T2")) text += ": T2";
  316.             else if (item.SnoItem.Code.Contains("T1")) text += ": T1";
  317.  
  318.             if (item.SnoItem.Code.Contains("Torment13")) text += ": T13";
  319.             else if (item.SnoItem.Code.Contains("Torment12")) text += ": T12";
  320.             else if (item.SnoItem.Code.Contains("Torment11")) text += ": T11";
  321.             else if (item.SnoItem.Code.Contains("Torment10")) text += ": T10";
  322.             else if (item.SnoItem.Code.Contains("Torment9")) text += ": T9";
  323.             else if (item.SnoItem.Code.Contains("Torment8")) text += ": T8";
  324.             else if (item.SnoItem.Code.Contains("Torment7")) text += ": T7";
  325.             else if (item.SnoItem.Code.Contains("Torment6")) text += ": T6";
  326.             else if (item.SnoItem.Code.Contains("Torment5")) text += ": T5";
  327.             else if (item.SnoItem.Code.Contains("Torment4")) text += ": T4";
  328.             else if (item.SnoItem.Code.Contains("Torment3")) text += ": T3";
  329.             else if (item.SnoItem.Code.Contains("Torment2")) text += ": T2";
  330.             else if (item.SnoItem.Code.Contains("Torment1")) text += ": T1";
  331.  
  332.             if (text != null)
  333.             {
  334.                 var textLayout = HoradricCacheFont.GetTextLayout(text);
  335.                 HoradricCacheFont.DrawText(textLayout, rect.Right - rv / 20.0f - textLayout.Metrics.Width, rect.Bottom - rv / 70.0f - textLayout.Metrics.Height);
  336.             }
  337.         }
  338.  
  339.         bool checkArmorySets(IItem item)
  340.         {
  341.             for (int i = 0; i < Hud.Game.Me.ArmorySets.Length; ++i)
  342.             {
  343.                 var set = Hud.Game.Me.ArmorySets[i];
  344.                 if (set.ContainsItem(item))
  345.                 {
  346.                     return true;
  347.                 }
  348.             }
  349.             return false;
  350.         }
  351.  
  352.         public const string MAINSTAT_DEX = "DEX";
  353.         public const string MAINSTAT_INT = "INT";
  354.         public const string MAINSTAT_STR = "STR";
  355.         public const string MAINSTAT_NONE = "---";
  356.         public const string NAME_DEX = "Dexterity_Item";
  357.         public const string NAME_INT = "Intelligence_Item";
  358.         public const string NAME_STR = "Strength_Item";
  359.  
  360.         static string GetMainStatName(IItem item)
  361.         {
  362.             if (item != null && item.Perfections != null)
  363.             {
  364.                 foreach (IItemPerfection perfection in item.Perfections)
  365.                 {
  366.                     string code = perfection.Attribute.Code;
  367.                     if (code == NAME_DEX) return MAINSTAT_DEX;
  368.                     if (code == NAME_INT) return MAINSTAT_INT;
  369.                     if (code == NAME_STR) return MAINSTAT_STR;
  370.                 }
  371.             }
  372.             return MAINSTAT_NONE;
  373.         }
  374.  
  375.         public class ImportantItem
  376.         {
  377.             public readonly string Name;
  378.             public readonly string MainStat;
  379.  
  380.             public ImportantItem(string name, string mainStat)
  381.             {
  382.                 Name = name;
  383.                 MainStat = mainStat;
  384.             }
  385.         }
  386.  
  387.         static ImportantItem important(string name)
  388.         {
  389.             return new ImportantItem(name, MAINSTAT_NONE);
  390.         }
  391.         static ImportantItem DEX_ITEM(string name)
  392.         {
  393.             return new ImportantItem(name, MAINSTAT_DEX);
  394.         }
  395.         static ImportantItem INT_ITEM(string name)
  396.         {
  397.             return new ImportantItem(name, MAINSTAT_INT);
  398.         }
  399.         static ImportantItem STR_ITEM(string name)
  400.         {
  401.             return new ImportantItem(name, MAINSTAT_STR);
  402.         }
  403.  
  404.         public static string[] Follower = new string[]
  405.         {
  406.             // These important items have "shield" marker in place on star!
  407.             "Thunderfury, Blessed Blade of the Windseeker",
  408.             "Eun-jang-do",
  409.             "Freeze of Deflection",
  410.             "Defender of Westmarch",
  411.             "Lidless Wall",
  412.             "The Ess of Johan",
  413.             "Overwhelming Desire",
  414.             "Wyrdward",
  415.             "Oculus Ring",
  416.             "Justice Lantern",
  417.             "Enchanting Favor",
  418.         };
  419.  
  420.         public static ImportantItem[] Important = new ImportantItem[]
  421.         {
  422.             important("Ring of Royal Grandeur"),    // Reduces the number of items needed for set bonuses by 1 (to a minimum of 2)
  423.             important("Unity"),                     // All damage taken is split between wearers of this item
  424.             // Barbarian HotA
  425.             STR_ITEM("Immortal King's Triumph"),
  426.             STR_ITEM("Immortal King's Eternal Reign"),
  427.             STR_ITEM("Immortal King's Irons"),
  428.             STR_ITEM("Immortal King's Tribal Binding"),
  429.             STR_ITEM("Immortal King's Stature"),
  430.             STR_ITEM("Immortal King's Stride"),
  431.             STR_ITEM("Fury of the Ancients"),
  432.             STR_ITEM("Bracers of the First Men"),
  433.             STR_ITEM("Magefist"),
  434.             STR_ITEM("The Traveler's Pledge"),
  435.             STR_ITEM("The Compass Rose"),
  436.             STR_ITEM("Convention of Elements"),
  437.             STR_ITEM("Little Rogue"),
  438.             STR_ITEM("The Slanderer"),
  439.  
  440.             // Follower - Templar
  441.             // See: https://www.icy-veins.com/d3/follower-skills-and-gearing-patch-2-6-1
  442.             STR_ITEM("Thunderfury, Blessed Blade of the Windseeker"),
  443.             STR_ITEM("Eun-jang-do"),
  444.             STR_ITEM("Freeze of Deflection"),
  445.             STR_ITEM("Defender of Westmarch"),
  446.             STR_ITEM("Lidless Wall"),
  447.             STR_ITEM("The Ess of Johan"),
  448.             STR_ITEM("Overwhelming Desire"),
  449.             STR_ITEM("Wyrdward"),
  450.             STR_ITEM("Oculus Ring"),
  451.             STR_ITEM("Justice Lantern"),
  452.             STR_ITEM("Enchanting Favor"),
  453.             /*
  454.             // Speedrun items
  455.             important("Goldwrap"),                  // On gold pickup: Gain armor for 5 seconds equal to the amount picked up
  456.             important("Goldskin"),                  // +100% Extra Gold, Chance for enemies to drop gold when you hit them
  457.             important("Custerian Wristguards"),     // Picking up gold grants experience
  458.             important("Gladiator Gauntlets"),       // After earning a massacre bonus, gold rains from sky
  459.             important("Kymbo's Gold"),              // +75–100% Extra Gold, Picking up gold heals you for an amount equal to the gold that was picked up
  460.             // Monk - Inna Exploding Palm
  461.             DEX_ITEM("Lefebvre's Soliloquy"),
  462.             DEX_ITEM("Bindings of the Lesser Gods"),
  463.             DEX_ITEM("Gungdo Gear"),
  464.             DEX_ITEM("The Crudest Boots"),
  465.             DEX_ITEM("The Fist of Az'Turrasq"),
  466.             // Wizard
  467.             INT_ITEM("Hergbrash's Binding"),
  468.             INT_ITEM("Ancient Parthan Defenders"),
  469.             INT_ITEM("Deathwish"),
  470.             INT_ITEM("Etched Sigil"),
  471.             */
  472.         };
  473.  
  474.         public static string[] Cube = new string[]
  475.         {
  476.             "Ring of Royal Grandeur",
  477.             "Unity",
  478.             // Barbarian HotA
  479.             "The Gavel of Judgment",
  480.             "Magefist", "Aquila Cuirass",
  481.             "Band of Might", "Unity",
  482.             /*
  483.             // Demon Hunter
  484.             "Aquila Cuirass",
  485.             // Witch Doctor
  486.             "The Grin Reaper",
  487.             "Quetzalcoatl",
  488.             "Staff of Chiroptera",
  489.             // Wizard
  490.             "The Grand Vizier",
  491.             "Nilfur's Boast",
  492.             "Halo of Arlyse",
  493.             */
  494.         };
  495.     }
  496. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement