Skip to content

Feature: First Gen second pair inheritance#6

Merged
kronikarz merged 1 commit intodevfrom
ow-feature/first-gen-second-pair-inheritance
Dec 31, 2024
Merged

Feature: First Gen second pair inheritance#6
kronikarz merged 1 commit intodevfrom
ow-feature/first-gen-second-pair-inheritance

Conversation

@balladyna
Copy link
Collaborator

This feature introduces IV button management for monsters in the second pair of the First Generation. The logic for enabling and disabling the fourth monster's button considers values from the preceding monster and those from the previous pair. This ensures logical consistency and refined user interaction.

List of Changes:

  • in FirstGenCubit added setIVStateIndexThree() and setIVStateIndexFour() methods for managing the IV buttons of the third and the fourth monster
  • in FirstGenCubit extracted setIVStateIndexOne() -> _getSingleBlockedIVButtonMap() and setIVStateIndexTwo() -> _getSingleUnblockedIVButtonMap() for generating ivButtonMap, which are responsible for enabling and disabling ivButtons in the sliding panel depending on the user-selected IV. These methods are used in setIVStateIndexThree() and setIVStateIndexFour().

This feature introduces IV button management for monsters in the second pair of the First Generation. The logic for enabling and disabling the fourth monster's button considers values from the preceding monster and those from the previous pair. This ensures logical consistency and refined user interaction.

List of Changes:
- in FirstGenCubit added setIVStateIndexThree() and setIVStateIndexFour() methods for managing the IV buttons of the third and the fourth monster
- in FirstGenCubit extracted setIVStateIndexOne() -> _getSingleBlockedIVButtonMap() and setIVStateIndexTwo() -> _getSingleUnblockedIVButtonMap() for generating ivButtonMap, which are responsible for enabling and disabling ivButtons in the sliding panel depending on the user-selected IV. These methods are used in setIVStateIndexThree() and setIVStateIndexFour().
@balladyna balladyna requested a review from kronikarz December 31, 2024 12:53
@kronikarz kronikarz merged commit efd770b into dev Dec 31, 2024
2 checks passed
@kronikarz kronikarz deleted the ow-feature/first-gen-second-pair-inheritance branch December 31, 2024 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants