Skip to content
Snippets Groups Projects
Commit 4adedd02 authored by victogo's avatar victogo
Browse files

Fix: Ahora salen todos los eventos

parent 73b3fc0e
Branches
No related tags found
2 merge requests!65Feature:,!48Feature: evento descanso, se juega al minijuego nube vaccea y se recupera con...
......@@ -11,7 +11,7 @@ import com.example.ellegadodepintia.exploradoresDePintia.model.eventoFactory.Eve
object GeneradorDeEventos {
private const val CANTIDAD = 1 // Numero de eventos generados
private const val CANTIDAD = 7 // Numero de eventos generados
private var eventos = ArrayList<Evento>()
private fun crearEvento(): Evento {
......
......@@ -20,13 +20,13 @@ object EventoFactorySelector {
private fun seleccionarTipoEventoConProbabilidades(): TipoEvento {
val probabilidades = mapOf(
/*TipoEvento.Reliquia to 0.2,
TipoEvento.Reliquia to 0.2,
TipoEvento.Tienda to 0.1,
TipoEvento.Riesgo to 0.2,
TipoEvento.Trampa to 0.1,
TipoEvento.Combate to 0.2,
TipoEvento.Descanso to 0.1,*/
TipoEvento.Ladron to 1
TipoEvento.Descanso to 0.1,
TipoEvento.Ladron to 0.1
)
val acumulado = probabilidades.entries.fold(mutableListOf<Pair<Double, TipoEvento>>()) { acc, entry ->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment