Show "(Aktiv)" + remaining time on the white lion mount seal
The slot-highlight for activatable items (uiinventory.py) read metinSocket[0], which the server now uses for the seal's remaining usage-time countdown instead of the active flag - moved the check to socket[2] to match. Tooltip now shows "(Aktiv)" plus the standard remaining-time line (reusing the existing AppendTimerBasedOnWearLastTime renderer) for any IS_MOUNT_SEAL item, replacing the generic ITEM_TYPE_UNIQUE tooltip logic that would otherwise have misread the active-flag socket as a unique-item decay timestamp.
This commit is contained in:
+1
-1
@@ -561,7 +561,7 @@ class InventoryWindow(ui.ScriptWindow):
|
||||
|
||||
## Allgemein aktivierbare Items (z.B. Reit-Siegel) - Rahmen ueber metinSocket[0], ohne Auto-Potion-Logik
|
||||
elif constInfo.IS_ACTIVATABLE_ITEM(itemVnum):
|
||||
isActivated = 0 != player.GetItemMetinSocket(slotNumber, 0)
|
||||
isActivated = 0 != player.GetItemMetinSocket(slotNumber, 2) # Socket2: Aktiv-Flag (Socket0 ist bei zeitbasierten Siegeln die Restzeit)
|
||||
|
||||
if slotNumber >= player.INVENTORY_PAGE_SIZE:
|
||||
slotNumber -= player.INVENTORY_PAGE_SIZE
|
||||
|
||||
@@ -1035,6 +1035,13 @@ class ItemToolTip(ToolTip):
|
||||
|
||||
elif item.ITEM_TYPE_UNIQUE == itemType:
|
||||
if 0 != metinSlot:
|
||||
if constInfo.IS_MOUNT_SEAL(itemVnum):
|
||||
if 0 != metinSlot[2]:
|
||||
self.AppendSpace(5)
|
||||
self.AppendTextLine("(Aktiv)", self.SPECIAL_POSITIVE_COLOR)
|
||||
|
||||
self.AppendTimerBasedOnWearLastTime(metinSlot)
|
||||
else:
|
||||
bHasRealtimeFlag = 0
|
||||
|
||||
for i in xrange(item.LIMIT_MAX_NUM):
|
||||
|
||||
Reference in New Issue
Block a user