1
1
import os
2
2
import platform
3
3
from colorama import Fore , Style
4
+ import time
5
+ import queries .query as query
4
6
5
7
# Clean the terminal screen
6
8
def clear_screen ():
@@ -38,4 +40,25 @@ def list_options(options: list) -> None:
38
40
def list_characters (characters : list ) -> None :
39
41
print ("\n Personagens disponíveis:" )
40
42
for idx , character in enumerate (characters , start = 1 ):
41
- print (f"\n { idx } . { character [1 ]} - { character [2 ]} " )
43
+ print (f"\n { idx } . { character [1 ]} - { character [2 ]} " )
44
+
45
+
46
+ def display_npc_info (npc_nome , npc_tipo , conn ):
47
+ descricao = query .get_civilian_info (conn , npc_nome )
48
+ print (Fore .CYAN + "\n --- Ficha do Personagem ---" + Style .RESET_ALL )
49
+ print (Fore .GREEN + f"Nome: { descricao ['nome' ]} " + Style .RESET_ALL )
50
+ print (Fore .GREEN + f"Descrição: { descricao ['descricao' ]} " + Style .RESET_ALL )
51
+ print (Fore .MAGENTA + "\n .." + Style .RESET_ALL )
52
+ time .sleep (1 )
53
+
54
+ if npc_tipo == "Quester" :
55
+ get_quest (npc_nome )
56
+ input ("Pressione Enter para continuar..." )
57
+ else :
58
+ print (Fore .RED + f"{ npc_nome } não tem nada a dizer." + Style .RESET_ALL )
59
+ print (Fore .MAGENTA + "Pressione 0 para voltar ao menu." + Style .RESET_ALL )
60
+ input ()
61
+
62
+ def get_quest (npc_nome ):
63
+ print (f"Você recebeu uma missão de { npc_nome } ." )
64
+ # Adicione mais lógica conforme necessário
0 commit comments