big refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-22 08:00:33 +02:00
parent 853ab22e15
commit 71adb9c916
34 changed files with 83 additions and 81 deletions
+5 -8
View File
@@ -1,4 +1,5 @@
aux.module 'tooltip'
module 'tooltip'
import 'gui' 'lol' 'kek'
_g.aux_tooltip_value = true
@@ -206,15 +207,11 @@ end
function game_tooltip_hooks:SetCraftItem(skill, slot)
local link, quantity
if slot then
link = GetCraftReagentItemLink(skill, slot)
quantity = ({GetCraftReagentInfo(skill, slot)})[3]
link, quantity = GetCraftReagentItemLink(skill, slot), select(3, GetCraftReagentInfo(skill, slot))
else
link = GetCraftItemLink(skill)
quantity = 1
end
if link then
extend_tooltip(GameTooltip, link, quantity)
link, quantity = GetCraftItemLink(skill), 1
end
if link then extend_tooltip(GameTooltip, link, quantity) end
end
function game_tooltip_hooks:SetCraftSpell(slot)