Dolphin add missing deeds + fix&clean state code

This commit is contained in:
Willy-JL
2023-08-11 22:31:34 +02:00
parent 16baec1e81
commit 397287819a
6 changed files with 35 additions and 37 deletions

View File

@@ -100,7 +100,7 @@ bool xtreme_app_apply(XtremeApp* app) {
if(app->save_level || app->save_angry) {
Dolphin* dolphin = furi_record_open(RECORD_DOLPHIN);
if(app->save_level) {
int32_t xp = app->dolphin_level > 1 ? dolphin_get_levels()[app->dolphin_level - 2] : 0;
int32_t xp = app->dolphin_level > 1 ? DOLPHIN_LEVELS[app->dolphin_level - 2] : 0;
dolphin->state->data.icounter = xp + 1;
}
if(app->save_angry) {