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]
|
hero=data[0:6]
|
||||||
show=list(map(lambda x:x[0][x[1]],zip(tables.displays,hero)))
|
show=list(map(lambda x:x[0][x[1]],zip(tables.displays,hero)))
|
||||||
rank,cap=data[6:8]
|
rank,cap=data[6:8]
|
||||||
if cap<4: cap=tables.cap[cap]
|
cap=tables.cap[cap]
|
||||||
else: cap=rank
|
if rank==12: cap=12
|
||||||
data=data[8:]
|
data=data[8:]
|
||||||
if rank<9: show[-1]='Hidden' # Don't spoil the talent
|
if rank<9: show[-1]='Hidden' # Don't spoil the talent
|
||||||
print(show)
|
print(show)
|
||||||
|
|
|
@ -31,4 +31,4 @@ displays_nogun=[classes,armour,trait,spec,talent]
|
||||||
displays_nogun_str=['classes','armour','traits','specs','talents']
|
displays_nogun_str=['classes','armour','traits','specs','talents']
|
||||||
rank=range(12)
|
rank=range(12)
|
||||||
xp=range(2500)
|
xp=range(2500)
|
||||||
cap=[3, 6, 9, 10, 11/12]
|
cap=[3, 6, 9, 10, 11]
|
Loading…
Reference in New Issue
Block a user