|
6 | 6 | -- In general, needing on one-handers that are near-worthless. The plan is to only roll if it passes a minimum threshold. That threshold should be 3x the highest weight among the 5 main stats. |
7 | 7 | -- Don't roll on loot I already have in my bag |
8 | 8 | -- Greeded in something within 5 levels that was an upgrade. Specifically, Gauntlets of Divinity versus equipped Algae Fists. |
9 | | --- Auto-equip bags if they're not BOP and you have an empty slot |
10 | 9 |
|
11 | 10 | -- accomodate for "no item link received" |
12 | | --- identify bag rolls and roll need when appropriate |
13 | | --- roll need on mounts that the character doesn't have |
14 | | --- identify bag rolls and roll need when appropriate |
15 | 11 | -- fix guild repairs |
16 | | --- make seperate stat weights for main and off hand |
17 | | --- add a weight for weapon damage |
18 | | --- fix weapons for rogues properly. (dagger and any can equip dagger and shield, put slow in main hand for outlaw, etc) |
19 | | --- remove the armor penetration weight |
20 | | --- make gem weights have level tiers (70-79, 80-84, 85) |
21 | 12 | -- other non-gear it should let you roll |
22 | | --- add a ui |
23 | 13 | -- add rolling on offset |
24 | 14 | -- factor in racial weapon bonuses |
25 | 15 | -- eye of arachnida slot nil error |
@@ -1942,8 +1932,8 @@ optionsMenu:SetScript("OnEvent", function (self, event, arg1, arg2, ...) |
1942 | 1932 | ReasonsInTooltips = false, |
1943 | 1933 | AlwaysCompareGear = GetCVarBool("alwaysCompareItems"), |
1944 | 1934 | AlwaysShowScoreComparisons = false, |
1945 | | - AutoSellGreys = true, |
1946 | | - AutoRepair = true, |
| 1935 | + AutoSellGreys = false, |
| 1936 | + AutoRepair = false, |
1947 | 1937 | Override = false, |
1948 | 1938 | OverrideSpec = AutoGearGetDefaultOverrideSpec(), |
1949 | 1939 | UsePawn = true, --AutoGear built-in weights are deprecated. We're using Pawn mainly now, so default true. |
@@ -2117,9 +2107,9 @@ optionsMenu:SetScript("OnEvent", function (self, event, arg1, arg2, ...) |
2117 | 2107 | ["cliCommands"] = { "sell", "sellgreys", "greys" }, |
2118 | 2108 | ["cliTrue"] = { "enable", "on", "start" }, |
2119 | 2109 | ["cliFalse"] = { "disable", "off", "stop" }, |
2120 | | - ["label"] = "Automatically sell greys", |
2121 | | - ["description"] = "Automatically sell all grey items when interacting with a vendor.", |
2122 | | - ["toggleDescriptionTrue"] = "Automatic selling of grey items is now enabled.", |
| 2110 | + ["label"] = "Automatically sell greys ("..RED_FONT_COLOR_CODE.."warning"..FONT_COLOR_CODE_CLOSE..": not feature-complete; use Leatrix Plus instead)", |
| 2111 | + ["description"] = "Automatically sell all grey items when interacting with a vendor.\n\n"..RED_FONT_COLOR_CODE.."Warning"..FONT_COLOR_CODE_CLOSE..": This feature is not feature-complete and does not correctly handle having max gold, vendors who can't buy items, and avoiding selling greys that can be used for trading with vendors. Using Leatrix Plus instead for this feature is recommended."..FONT_COLOR_CODE_CLOSE, |
| 2112 | + ["toggleDescriptionTrue"] = "Automatic selling of grey items is now enabled. ("..RED_FONT_COLOR_CODE.."warning"..FONT_COLOR_CODE_CLOSE..": This feature is not feature-complete and does not correctly handle having max gold, vendors who can't buy items, and avoiding selling greys that can be used for trading with vendors. Using Leatrix Plus instead for this feature is recommended.)", |
2123 | 2113 | ["toggleDescriptionFalse"] = "Automatic selling of grey items is now disabled." |
2124 | 2114 | }, |
2125 | 2115 | { |
@@ -2211,9 +2201,9 @@ optionsMenu:SetScript("OnEvent", function (self, event, arg1, arg2, ...) |
2211 | 2201 | ["cliCommands"] = { "debuginfo", "debuginfointooltips", "test", "testmode", "rolltestmode" }, |
2212 | 2202 | ["cliTrue"] = { "enable", "on", "start" }, |
2213 | 2203 | ["cliFalse"] = { "disable", "off", "stop" }, |
2214 | | - ["label"] = "Show debug info in item tooltips (warning: "..RED_FONT_COLOR_CODE.."laggy"..FONT_COLOR_CODE_CLOSE.."!)", |
2215 | | - ["description"] = "This is a test mode to show debug info in tooltips, such as the real roll outcome if the item viewed dropped as a loot roll. This is to help the developers find and fix bugs in AutoGear. You can use it to help too and report issues. (warning: "..RED_FONT_COLOR_CODE.."laggy"..FONT_COLOR_CODE_CLOSE.."!)", |
2216 | | - ["toggleDescriptionTrue"] = "Debug info in tooltips is now enabled. Info such as whether AutoGear would \""..GREEN_FONT_COLOR_CODE.."NEED"..FONT_COLOR_CODE_CLOSE.."\" or \""..RED_FONT_COLOR_CODE.."GREED"..FONT_COLOR_CODE_CLOSE.."\" on an item will be shown in item tooltips. (warning: "..RED_FONT_COLOR_CODE.."laggy"..FONT_COLOR_CODE_CLOSE.."!)", |
| 2204 | + ["label"] = "Show debug info in item tooltips ("..RED_FONT_COLOR_CODE.."warning"..FONT_COLOR_CODE_CLOSE..": laggy!)", |
| 2205 | + ["description"] = "This is a test mode to show debug info in tooltips, such as the real roll outcome if the item viewed dropped as a loot roll. This is to help the developers find and fix bugs in AutoGear. You can use it to help too and report issues.\n\n"..RED_FONT_COLOR_CODE.."Warning"..FONT_COLOR_CODE_CLOSE..": laggy!", |
| 2206 | + ["toggleDescriptionTrue"] = "Debug info in tooltips is now enabled. Info such as whether AutoGear would \""..GREEN_FONT_COLOR_CODE.."NEED"..FONT_COLOR_CODE_CLOSE.."\" or \""..RED_FONT_COLOR_CODE.."GREED"..FONT_COLOR_CODE_CLOSE.."\" on an item will be shown in item tooltips. ("..RED_FONT_COLOR_CODE.."warning"..FONT_COLOR_CODE_CLOSE..": laggy!)", |
2217 | 2207 | ["toggleDescriptionFalse"] = "Debug info in tooltips is now disabled." |
2218 | 2208 | } |
2219 | 2209 | } |
@@ -3127,6 +3117,7 @@ function AutoGearGetValidGearSlots(info) |
3127 | 3117 | and { INVSLOT_MAINHAND, INVSLOT_OFFHAND } |
3128 | 3118 | or (((weapons == "any") |
3129 | 3119 | or (weapons == "2h")) |
| 3120 | + -- or ((weapons == "dual wield") and (not CanDualWield())) |
3130 | 3121 | and { INVSLOT_TABARD } |
3131 | 3122 | or nil), |
3132 | 3123 | [Enum.InventoryType.IndexWeaponmainhandType] = ((weapons == "any") |
@@ -4483,8 +4474,8 @@ function AutoGearTooltipHook(tooltip) |
4483 | 4474 | if (not (tooltipName=="GameTooltip" or tooltipName=="ShoppingTooltip1" or tooltipName=="ShoppingTooltip2" or tooltipName=="ItemRefTooltip")) or (not tooltip:IsVisible()) then return end |
4484 | 4475 | if (not AutoGearCurrentWeighting) then AutoGearSetStatWeights() end |
4485 | 4476 | local name, link, equipped, guid, tooltipData |
4486 | | - if tooltip.GetTooltipData then |
4487 | | - tooltipData = tooltip:GetTooltipData() |
| 4477 | + if tooltip.GetPrimaryTooltipData or tooltip.GetTooltipData then |
| 4478 | + tooltipData = tooltip.GetPrimaryTooltipData and tooltip:GetPrimaryTooltipData() or (tooltip.GetTooltipData and tooltip:GetTooltipData()) |
4488 | 4479 | if not tooltipData then tooltip:AddDoubleLine("AutoGear error:", "no tooltip data") return end |
4489 | 4480 | guid = tooltipData.guid |
4490 | 4481 | name = tooltipData.lines[1].leftText |
|
0 commit comments