forked from jaildesigner-jailgames/jaildoctors_dilemma
Testeados todos los logros. Los logros no funcionan con los trucos activados
This commit is contained in:
@@ -9,6 +9,9 @@ Cheevos::Cheevos(Screen *screen, options_t *options)
|
||||
|
||||
// Inicializa los logros
|
||||
init();
|
||||
|
||||
// inicializa variables
|
||||
enabled = true;
|
||||
}
|
||||
|
||||
// Destructor
|
||||
@@ -115,11 +118,18 @@ void Cheevos::unlock(int id)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!cheevos[index].completed)
|
||||
if (cheevos[index].completed)
|
||||
{
|
||||
cheevos[index].completed = true;
|
||||
screen->showNotification("ACHIEVEMENT UNLOCKED!", cheevos[index].caption, cheevos[index].icon);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!enabled)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
cheevos[index].completed = true;
|
||||
screen->showNotification("ACHIEVEMENT UNLOCKED!", cheevos[index].caption, cheevos[index].icon);
|
||||
}
|
||||
|
||||
// Invalida un logro
|
||||
@@ -131,4 +141,10 @@ void Cheevos::invalidate(int id)
|
||||
return;
|
||||
}
|
||||
cheevos[index].valid = false;
|
||||
}
|
||||
|
||||
// Habilita o deshabilita los logros
|
||||
void Cheevos::enable(bool value)
|
||||
{
|
||||
enabled = value;
|
||||
}
|
||||
Reference in New Issue
Block a user