Skip to content
Snippets Groups Projects
Commit fdd3f5eb authored by diegval's avatar diegval
Browse files

Feature: Rework detalles enemigo y reparación

parent db85f4d6
No related branches found
No related tags found
1 merge request!65Feature:
...@@ -47,7 +47,7 @@ class ModalDetallesEnemigo : DialogFragment() { ...@@ -47,7 +47,7 @@ class ModalDetallesEnemigo : DialogFragment() {
} }
} }
if(GameState.jugador.atributos[Atributo.Investigacion]!! >= GameState.eventoActual.resistenciaMax){ if(GameState.jugador.atributos[Atributo.Investigacion]!! >= GameState.eventoActual.resistenciaActual/3){
view.findViewById<TextView>(R.id.textoVidaMaxima).text = buildString { view.findViewById<TextView>(R.id.textoVidaMaxima).text = buildString {
append("Vida: ") append("Vida: ")
append(GameState.eventoActual.resistenciaActual) append(GameState.eventoActual.resistenciaActual)
......
...@@ -36,7 +36,7 @@ class EfectoReparar(probabilidadExito: Int, private val stringReparado: String, ...@@ -36,7 +36,7 @@ class EfectoReparar(probabilidadExito: Int, private val stringReparado: String,
} }
return if (probabilidad <= probabilidadExito) { return if (probabilidad <= probabilidadExito) {
GameState.eventoActual.actualizarResistencia(1) GameState.eventoActual.actualizarResistencia(GameState.jugador.atributos[Atributo.Investigacion]!!)
if(GameState.eventoActual.resistenciaActual == GameState.eventoActual.resistenciaMax){ if(GameState.eventoActual.resistenciaActual == GameState.eventoActual.resistenciaMax){
val intent = Intent(context, MinijuegoReparacion::class.java) val intent = Intent(context, MinijuegoReparacion::class.java)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment