logic error in reading codes with cap at r11 but not yet r11

This commit is contained in:
Zergling_man 2023-04-20 00:00:04 +10:00
parent 060b99ab59
commit 532a6b24e7
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -31,4 +31,4 @@ displays_nogun=[classes,armour,trait,spec,talent]
displays_nogun_str=['classes','armour','traits','specs','talents']
rank=range(12)
xp=range(2500)
cap=[3, 6, 9, 10, 11/12]
cap=[3, 6, 9, 10, 11]