From a98e270a987868d5b6b2ef685347c05437e1d731 Mon Sep 17 00:00:00 2001 From: urnati Date: Fri, 9 Aug 2019 01:31:44 -0400 Subject: [PATCH] Debug Ammo --- TitanClassicAmmo/TitanClassicAmmo.lua | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/TitanClassicAmmo/TitanClassicAmmo.lua b/TitanClassicAmmo/TitanClassicAmmo.lua index a04d58d..5365460 100644 --- a/TitanClassicAmmo/TitanClassicAmmo.lua +++ b/TitanClassicAmmo/TitanClassicAmmo.lua @@ -141,23 +141,23 @@ function TitanPanelAmmoButton_UNIT_INVENTORY_CHANGED(arg1, ...) TitanDebug("TitanPanelAmmoButton_UNIT_INVENTORY_CHANGED") if arg1 == "player" then TitanPanelAmmoUpdateDisplay(); - if isAmmo then +-- if isAmmo then TitanDebug("ammoSlotID: " .. ammoSlotID); - TitanDebug("GetInventoryItemLink: " .. GetInventoryItemLink("player", ammoSlotID)); - if GetInventoryItemLink("player", ammoSlotID) then +-- TitanDebug("GetInventoryItemLink: " .. tostring(GetInventoryItemLink("player", ammoSlotID))); +-- if GetInventoryItemLink("player", ammoSlotID) then count = GetInventoryItemCount("player", ammoSlotID) or count - AmmoName = GetItemInfo(GetInventoryItemLink("player", ammoSlotID)) or _G["UNKNOWN"] - else - count = 0; - AmmoName = ""; - end +-- AmmoName = GetItemInfo(GetInventoryItemLink("player", ammoSlotID)) or _G["UNKNOWN"] +-- else +-- count = 0; +-- AmmoName = ""; +-- end TitanPanelButton_UpdateButton(TITAN_AMMO_ID); - end +-- end end end function TitanPanelAmmoButton_UPDATE_INVENTORY_DURABILITY() - count = GetInventoryItemDurability(rangedSlotID) or count +-- count = GetInventoryItemDurability(rangedSlotID) or count TitanPanelButton_UpdateButton(TITAN_AMMO_ID); end -- 1.7.9.5