-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
INSERT INTO public.saga | ||
(id_missao_requisito, nome, descricao, nivel_recomendado) | ||
VALUES( NULL, 'Sem SS', 'Não haverá SS por aqui', 0); | ||
|
||
INSERT INTO public.casa | ||
( id_saga, id_missao_requisito, nome, descricao, nivel_recomendado) | ||
VALUES( currval('saga_id_saga_seq'::regclass), NULL, 'SEM MS', 'Não haverá MS por aqui', 0); | ||
|
||
INSERT INTO public.sala | ||
(id_casa, nome, id_sala_norte, id_sala_sul, id_sala_leste, id_sala_oeste) | ||
VALUES( currval('casa_id_casa_seq'::regclass), 'SEM MM', 0, 0, 0, 0); | ||
|
||
INSERT INTO public.item_missao (nome, descricao) | ||
VALUES ('666', 'Seria essa a aprovação em bancos?'); | ||
|
||
INSERT INTO public.missao (id_missao_anterior, item_necessario, id_cavaleiro_desbloqueado, nome, dialogo_inicial, dialogo_durante, dialogo_completa) | ||
VALUES (NULL, currval('tipo_item_id_item_seq'), NULL, '666', 'Seria assim que consegue o SS em bancos?', '666', '666'); | ||
|
||
INSERT INTO public.boss (id_sala, id_item_missao, nome, nivel, xp_acumulado, hp_max, hp_atual, magia_max, magia_atual, velocidade, ataque_fisico, ataque_magico, dinheiro, fala_inicio, fala_derrotar_player, fala_derrotado, fala_condicao, id_elemento) | ||
VALUES (currval('sala_id_sala_seq'::regclass), currval('tipo_item_id_item_seq'), 'Mauricio Serrano', 666, 666, 666666, 666666, 666666, 666666, 666666, 666666, 666666, 666666, 'REPROVADO!!!', 'SR PRA VOCE', 'CHEATER', 'Só desiste não tem como ganhar', 1); | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from rich.console import Console | ||
from rich.panel import Panel | ||
from ..database import obter_cursor | ||
from .tocar_musica import tocar_musica, parar_musica | ||
from .iniciar_batalha import iniciar_batalha | ||
|
||
def executar666(console, selected_player): | ||
tocar_musica("666.mp3", 0.5) | ||
|
||
with obter_cursor() as cursor: | ||
cursor.execute("SELECT id_boss FROM boss ORDER BY id_boss DESC LIMIT 1;") | ||
resultado = cursor.fetchone() | ||
|
||
if resultado and resultado[0]: # Garante que um Boss foi encontrado | ||
try: | ||
iniciar_batalha(console, selected_player, int(resultado[0])) | ||
except Exception as e: | ||
console.print(f"[bold red]Erro ao iniciar a batalha: {e}[/bold red]") | ||
else: | ||
console.print("[bold red]Nenhum Boss encontrado![/bold red]") | ||
parar_musica() |