WIP: feature_genfix #9

Closed
s444383 wants to merge 3 commits from feature_genfix into master
Showing only changes of commit baa6e54f9e - Show all commits

View File

@ -63,16 +63,23 @@ def generator_jezyka_nautalnego(frame, tactic, state, text):
if len(beastMatch) > 0:
print(random.choice(other) + ', '.join(beastMatch))
elif tactic[1] == 'help':
print(random.choice(help))
print("Dostępne komendy: \n - " + '\n - '.join(commands))
elif tactic == 'bye':
print(random.choice(bye))
elif tactic[0] == False: #ASK
print(f'Proszę podaj {tactic[1][0]}')
print()
sys.exit(0)
elif tactic[0] == True:
_, act, req_args, opt_args = tactic
print('DEBUG: ', act, req_args, opt_args,sep = '\n')
if act == 'help':
print(random.choice(help))
print("Dostępne komendy: \n - " + '\n - '.join(commands))
elif act == 'bye':
print(random.choice(bye))
print()
sys.exit(0)
else:
print(tactic)
else:
print(tactic)
print('ERROR')
print()