Dex update and small fix to special missions
Pre-release-
Importing more data from the card, this time it's to enhance the functionality of the dex. Things that I'm importing:
- Tropies
- Vitals
- WinRate
- Battles needed
- Adventure level cleared
-
This commit also includes displaying the data, modifying the relational model and modifying the underlying import functions.
-
I've also changed the name from Character to CharacterData, since there is another class that is also called Character. I wanted to move it into the card package, since it's more related to Cards, while character is more designed for user raised characters.
-
Another small addition was the ability to construct ImageBitmaps from the BitmapData.kt class. reduces code and makes it more simple, will refactor the old code to use this later on.
-
Things I might do
- Move out of the SettingsScreenControllerImpl.kt file all the card import stuff, since it's slowly growing a lot, and it could benefit from some independence
-
Now you can clear failed special missions. When a special mission fails, you will not get an item after clearing it.
-
Huge note: I have not tested this fix, but it should work... At least that's what my intuition is telling me!
Jokes aside, this should work, but the home screen will not update. I should update this to make use of StateFlows and Flows to keep the home screen updated at all times.
And that's all!