diff options
author | jomo <github@jomo.tv> | 2014-06-29 15:21:16 +0200 |
---|---|---|
committer | jomo <github@jomo.tv> | 2014-06-29 15:21:16 +0200 |
commit | 04ab9e93cbdcf51def3a3e255c753a78914944e8 (patch) | |
tree | 07b2cf5ff92154f37160026f3328db5ff9d02234 /cycle.py | |
parent | dd8fe148587cdcfd6bbb0b4280fd19aa6e8b9f94 (diff) |
shift items, then check for empty line
Diffstat (limited to 'cycle.py')
-rw-r--r-- | cycle.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)
\ No newline at end of file |