From 89893497107dbb5358e142ca057d7cf0fd6d8b4a Mon Sep 17 00:00:00 2001 From: 250408 <250408@PC103.epvc2.local> Date: Tue, 23 Jun 2026 12:09:14 +0100 Subject: [PATCH] Tudo Feito --- .../tic_projeto_final/TIC_Projeto_Final.java | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/main/java/com/mycompany/tic_projeto_final/TIC_Projeto_Final.java b/src/main/java/com/mycompany/tic_projeto_final/TIC_Projeto_Final.java index 7c3d976..a239496 100644 --- a/src/main/java/com/mycompany/tic_projeto_final/TIC_Projeto_Final.java +++ b/src/main/java/com/mycompany/tic_projeto_final/TIC_Projeto_Final.java @@ -6,7 +6,6 @@ import java.io.*; public class TIC_Projeto_Final { - // Jogador static String nome; static int vida = 100; static int fome = 100; @@ -16,23 +15,19 @@ public class TIC_Projeto_Final { static int nivel = 1; static int dias = 1; - // Inventário static int comida = 2; static int garrafas = 2; static int kits = 1; - // Armas static String arma = "Paus"; static int danoArma = 10; - // Armadura static String armadura = "Nenhuma"; static int defesa = 0; static Scanner ler = new Scanner(System.in); static Random random = new Random(); - // ===================== ESTADO ===================== public static void estado() { System.out.println("\n===== ESTADO ====="); System.out.println("Jogador: " + nome); @@ -54,7 +49,6 @@ public class TIC_Projeto_Final { System.out.println("Kits: " + kits); } - // ===================== XP ===================== public static void ganharXP(int valor) { xp += valor; @@ -65,7 +59,6 @@ public class TIC_Projeto_Final { } } - // ===================== TEMPO ===================== public static void passarTempo() { dias++; fome -= 5; @@ -84,7 +77,6 @@ public class TIC_Projeto_Final { } } - // ===================== EVENTOS ===================== public static void eventoAleatorio() { int evento = random.nextInt(10); @@ -112,7 +104,6 @@ public class TIC_Projeto_Final { } } - // ===================== PROCURAR ===================== public static void procurar() { int sorte = random.nextInt(4); @@ -139,7 +130,6 @@ public class TIC_Projeto_Final { passarTempo(); } - // ===================== LUTA ===================== public static void lutar() { String[] inimigos = {"Lobo", "Urso", "Javali"}; @@ -174,7 +164,6 @@ public class TIC_Projeto_Final { passarTempo(); } - // ===================== CONSUMO ===================== public static void comer() { if (comida > 0) { comida--; @@ -205,7 +194,6 @@ public class TIC_Projeto_Final { } } - // ===================== LOJA ===================== public static void loja() { System.out.println("\n===== LOJA ====="); @@ -277,7 +265,6 @@ public class TIC_Projeto_Final { } } - // ===================== MAIN ===================== public static void main(String[] args) { System.out.println("🏕️ JOGO DE SOBREVIVÊNCIA"); @@ -383,4 +370,4 @@ public class TIC_Projeto_Final { } } } -} \ No newline at end of file +}