logic error in reading codes with cap at r11 but not yet r11
This commit is contained in:
parent
060b99ab59
commit
532a6b24e7
|
@ -78,8 +78,8 @@ def read_code(code,save=True):
|
|||
hero=data[0:6]
|
||||
show=list(map(lambda x:x[0][x[1]],zip(tables.displays,hero)))
|
||||
rank,cap=data[6:8]
|
||||
if cap<4: cap=tables.cap[cap]
|
||||
else: cap=rank
|
||||
cap=tables.cap[cap]
|
||||
if rank==12: cap=12
|
||||
data=data[8:]
|
||||
if rank<9: show[-1]='Hidden' # Don't spoil the talent
|
||||
print(show)
|
||||
|
|
Loading…
Reference in New Issue
Block a user