shift items, then check for empty line

This commit is contained in:
jomo
2014-06-29 15:21:16 +02:00
parent dd8fe14858
commit 04ab9e93cb

View File

@@ -58,7 +58,8 @@ def doCycle(player, up):
for _ in range(4):
uniq_items = sorted(set(list(items)[:shift])) # crazy code
msg(player, items[:shift])
items = items[shift:] + items[:shift] # shift "around"
if uniq_items != [None]: # row not empty
break
items = items[shift:] + items[:shift] # shift "around"
inv.setContents(items)