mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
Reverted ImageCache to fix slow down in game when no card images are present.
DeckEditor and QuestDeckEditor now attempts to display the most recent printing of the card. Loading DeckEditor screens will take longer as it does the set sorting. If set image can't be found, attempt to load from pics folder. If that can't be found, attempt to load none.jpg. (get none.jpg from Set Image thread)
This commit is contained in:
@@ -2383,6 +2383,7 @@ public class GameAction {
|
||||
card.setRandomPicture(generator.nextInt(n));
|
||||
if ((card.getSets().size() > 0) && card.getCurSetCode().equals(""))
|
||||
card.setRandomSetCode();
|
||||
card.setImageFilename(CardUtil.buildFilename(card));
|
||||
|
||||
//System.out.println("human random number:" + card.getRandomPicture());
|
||||
//}
|
||||
@@ -2465,6 +2466,7 @@ public class GameAction {
|
||||
}
|
||||
|
||||
ManaPool mp = AllZone.ManaPool;
|
||||
mp.setImageFilename("mana_pool");
|
||||
AllZone.Human_Play.add(mp);
|
||||
//ButtonUtil.reset();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user