From aafaadb76ffacda5b7b9430df4435e143d1bcba4 Mon Sep 17 00:00:00 2001 From: Vittorio Alfieri Date: Thu, 7 Oct 2021 15:07:00 +0200 Subject: [PATCH] Removed the previous limit of 99 avatars images, if "avatarXX.jpg" image is not present, for deckXX.txt of AI it will be used "baka.jpg" image instead. --- CHANGELOG.md | 5 ++++- projects/mtg/src/DeckMetaData.cpp | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d1e12589..e493e315e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,8 +2,11 @@ ## [master] (https://github.com/WagicProject/wagic/tree/master) +### 07/10/21 +- *Committed:* Removed the previous limit of 99 avatars images, if "avatarXX.jpg" image is not present, for deckXX.txt of AI it will be used "baka.jpg" image instead. ([Vitty85](https://github.com/Vitty85)) + ### 06/10/21 -- *Committed:* Fixed primitive "Armament Master" (issue #1075 opened by @remigiusz-suwalski). ([Vitty85](https://github.com/Vitty85)) +- *Committed:* Fixed primitive "Armament Master" (issue #1075 opened by @remigiusz-suwalski). https://github.com/WagicProject/wagic/commit/99b501105d1d83588d07ed3026ead0b182b00978 ([Vitty85](https://github.com/Vitty85)) ### 01/10/21 - *Committed:* Added "--no-check-certificate" option to download the PSP SDK. https://github.com/WagicProject/wagic/commit/b84745e063baf669aaa085ed9c8bcdd9c943649a ([Vitty85](https://github.com/Vitty85)) diff --git a/projects/mtg/src/DeckMetaData.cpp b/projects/mtg/src/DeckMetaData.cpp index 710f1aeab..f85393670 100644 --- a/projects/mtg/src/DeckMetaData.cpp +++ b/projects/mtg/src/DeckMetaData.cpp @@ -103,10 +103,10 @@ void DeckMetaData::LoadStats() } -// since we only have 100 stock avatar images, we need to recycle the images for deck numbers > 99 +// Removed the previous limit of 99 images, if "avatarXX.jpg" image is not present, for AI it will be used "baka.jpg" image instead. int DeckMetaData::getAvatarId() { - return mDeckId % 100; + return mDeckId; } //Accessors