Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.

Powers do not reset on replaying. #1393

Open
4 tasks done
7phalange7 opened this issue Mar 15, 2020 · 1 comment
Open
4 tasks done

Powers do not reset on replaying. #1393

7phalange7 opened this issue Mar 15, 2020 · 1 comment

Comments

@7phalange7
Copy link
Contributor

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,

  • on clicking replay
  • on going to map mid-scenario and again opening the scenario.

Definition of Done

  • All of the required items are completed.
  • Approval by 1 mentor.
@7phalange7
Copy link
Contributor Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants