Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
EhOBruno committed Sep 9, 2024
2 parents e9e6a93 + 938bb42 commit fd9b0c8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 20 deletions.
2 changes: 1 addition & 1 deletion app/src/game/environment_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def minerar_fonte(connection, cursor, nomeUser, nomeFonte):
SELECT FerramentaMineraFonte.nome_ferramenta
FROM FerramentaMineraFonte
WHERE FerramentaMineraFonte.nome_fonte = %s
ORDER BY nome_ferramenta IS NULL, nome_ferramenta ASC LIMIT 1;
LIMIT 1;
""", (nomeFonte,))

ferramenta_minima = cursor.fetchone()
Expand Down
2 changes: 1 addition & 1 deletion app/src/game/gameplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def processar_comando(connection, cursor, nomeUser, movimentos):
utilizar_item(connection, cursor, nomeUser, nomeItem)
break

elif acao == "minerar_fonte" and parametros:
elif acao == "minerar_fonte" and parametros: # Feito
limpar_tela()
nome_fonte = formatar_nome_item(' '.join(parametros))
minerar_fonte(connection, cursor, nomeUser, nome_fonte)
Expand Down
26 changes: 8 additions & 18 deletions db/dml.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16194,7 +16194,6 @@ VALUES
('Pedregulho', null),
('Pedregulho', null),
('Maçã', NULL),
('Maçã', NULL),
('Mapa', NULL),
('Olho do Ender', NULL),
('Bússola', NULL),
Expand All @@ -16210,17 +16209,13 @@ VALUES
('Obsidiana', null),
('Obsidiana', null),
('Isqueiro', null),
('Obsidiana', null),
('Obsidiana', null),
('Obsidiana', null),
('Obsidiana', null),
('Obsidiana', null),
('Obsidiana', null),
('Obsidiana', null),
('Obsidiana', null),
('Obsidiana', null),
('Obsidiana', null),
('Isqueiro', null);
('Picareta de Ferro', 251),
('Espada de Ferro', 250),
('Machado de Ferro', 250),
('Pá de Ferro', 251),
('Barras de Ferro', NULL),
('Barras de Ferro', NULL),
('Barras de Ferro', NULL);

-- Tabela Inventario
INSERT INTO Inventario (id_inst_item, id_inventario)
Expand Down Expand Up @@ -16250,12 +16245,7 @@ VALUES
(23, 1),
(24, 1),
(25, 1),
(26, 1),
(27, 1),
(28, 1),
(29, 1),
(30, 1),
(31, 1);
(26, 1);

-- Inserindo Mobs

Expand Down

0 comments on commit fd9b0c8

Please sign in to comment.