mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 11:42:39 -06:00
Fix inventory
This commit is contained in:
parent
fd58fe5662
commit
b373541292
1 changed files with 5 additions and 19 deletions
|
@ -719,15 +719,8 @@ class InventoryNew(InventoryBase.InventoryBase, DirectFrame):
|
|||
if self.itemIsUsable(track, level):
|
||||
button.show()
|
||||
unpaid = not base.cr.isPaid()
|
||||
if self.numItem(track, level) >= self.getMax(track, level) or totalProps == maxProps or unpaid and gagIsPaidOnly(track, level) or level > LAST_REGULAR_GAG_LEVEL:
|
||||
if gagIsPaidOnly(track, level):
|
||||
self.makeDisabledPressable(button, track, level)
|
||||
elif unpaid and gagIsVelvetRoped(track, level):
|
||||
self.makeDisabledPressable(button, track, level)
|
||||
else:
|
||||
if self.numItem(track, level) >= self.getMax(track, level) or totalProps == maxProps or level > LAST_REGULAR_GAG_LEVEL:
|
||||
self.makeUnpressable(button, track, level)
|
||||
elif unpaid and gagIsVelvetRoped(track, level):
|
||||
self.makeDisabledPressable(button, track, level)
|
||||
else:
|
||||
self.makePressable(button, track, level)
|
||||
else:
|
||||
|
@ -772,15 +765,8 @@ class InventoryNew(InventoryBase.InventoryBase, DirectFrame):
|
|||
if self.itemIsUsable(track, level):
|
||||
button.show()
|
||||
unpaid = not base.cr.isPaid()
|
||||
if self.numItem(track, level) >= self.getMax(track, level) or totalProps == maxProps or unpaid and gagIsPaidOnly(track, level) or level > LAST_REGULAR_GAG_LEVEL:
|
||||
if gagIsPaidOnly(track, level):
|
||||
self.makeDisabledPressable(button, track, level)
|
||||
elif unpaid and gagIsVelvetRoped(track, level):
|
||||
self.makeDisabledPressable(button, track, level)
|
||||
else:
|
||||
if self.numItem(track, level) >= self.getMax(track, level) or totalProps == maxProps or level > LAST_REGULAR_GAG_LEVEL:
|
||||
self.makeUnpressable(button, track, level)
|
||||
elif unpaid and gagIsVelvetRoped(track, level):
|
||||
self.makeDisabledPressable(button, track, level)
|
||||
else:
|
||||
self.makePressable(button, track, level)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue