anitab-org / powerup-android

PowerUp is an educational choose-your-own-adventure game that utilizes a users uploaded curriculum to empower pre-adolescents to take charge of their reproductive health. This is the Android version of the game.
GNU General Public License v2.0
116 stars 430 forks source link

Powers do not reset on replaying. #1393

Open 7phalange7 opened 4 years ago

7phalange7 commented 4 years ago

Description

The Powers (4 progress bars) should reset to the previous state on clicking replay or going to map mid-scenario. But instead, they save state and increase from that state on replaying.

Mocks

ezgif-1-b4560678eda6 Issue GIF for clicking replay

ezgif-1-f7a01993e4bb Issue GIF for going to map mid-scenario

Acceptance Criteria

Update [Required]

The Powers should reset to the previous state,

Definition of Done

7phalange7 commented 4 years ago

I would like to work on this issue. @sunjunkie @Rimjhim28 @isabelcosta

I would go about solving the problem in the following way: The Karma points do reset on replaying or going to map mid-scenario. They do this by maintaining total points and current scene points and on replay, they subtract current scene points from total points. If there is a current-progress variable for the progress bar we can use it similarly to reset the original progress variables to the previous state.