Commit Graph

52339 Commits

Author SHA1 Message Date
Michael Kamensky
678bd9a9e1 Merge branch 'osgir' into 'master'
Fix Osgir looping too much

See merge request core-developers/forge!5214
2021-08-12 19:48:19 +00:00
leriomaggio
bd2971d6e9 Smart Card Art Selection Options and Preferred Art Updated for all Languages 2021-08-12 17:41:25 +01:00
leriomaggio
4b1e9b6c0c Improved Implementation for Card Art Optimisation
The new implementation now contains a completely refactored version of the algorithm, also including the invocation of the latest method for getAlternativeCardPrint in StaticData (with extra statistics paramenters gathered from current pool). This include optimisation for card frame, and cards from Expansion sets.

Moreover, the new implementation now automatically distribute card arts for **all** the cards in the pool - regardless they need to be "replaced" with alternative print or not.

THE ONLY case when this is not happening is when there is NO card to update in the current pool. This makes sense as this means editions has been specified, so the Deck won't receive any UNDESIRED alteration.
2021-08-12 16:35:08 +01:00
leriomaggio
e54916e837 Extended API with new methods to gather Pool Statistics and the Pivot CardEdition
CardPool API has been extended by including utility methods to gather specific statistics about a cardPool. These statistics include:
- Distribution (card count frequency) of the Card Edition included in the Pool
- Distribution of the Card Edition Type included in the Pool
- Retrieving the most common Card Edition Type among those included in the Pool
- Determine whether or not the Pool "isModern" (i.e. the majority of cards is gathered from Modern Sets)
- get the PivotCardEdition: this is the cornerstone of card art optimisation for decks

The PivotCardEdition is the edition that will be considered the threshold boundary for cards in the pool. Any decision of card arts for other cards will be considered based on the PivotEdition, that is "alternativeCardPrint" released BEFORE or AFTER (depending on the current Card Art Preference) the PIVOT EDITION RELEASE DATE.

Also, this commit includes an optimisation in add method implementation, getting rid of lots of duplicated code!
2021-08-12 16:30:33 +01:00
leriomaggio
13429991ee Updated method call reflecting the API change in StaticData 2021-08-12 16:18:01 +01:00
leriomaggio
788c2d8c14 Better renaming to existing methods for Card Art Preference and NEW getAlternativeCardPrint implementations
Methods related to Card Art Preference Settings, and for Card Art Smart Selection have been renamed with better wording.

Most importantly, StaticData now includes a new method to retrieve the number of art count for a given PaperCard, as well as a completely refactored and improved method for getAlternativeCardPrint.
In particular, the class now provides three different implementation of getAlternativeCardPrint, with the more sophisticated one also including normalisation wrt. the card frame, and whether or not the chosen alternative print should be gathered from an Expansion edition.

All these specialisation are part of the "Card Art Optimisation" algorithm included in Deck, and instructed by statistics gathered from Card Pool (next commit)
2021-08-12 16:17:31 +01:00
leriomaggio
000622cfae Added MEMO comment to get rid of retrieveCollectorNumber method 2021-08-12 15:52:58 +01:00
leriomaggio
21da278eec Aligned to latest constructor including Artist Name for foiled version. 2021-08-12 15:52:11 +01:00
Michael Kamensky
39722f9e26 Merge branch 'TRT-master-patch-54796' into 'master'
Update forge-gui/res/cardsfolder/h/hellrider.txt

See merge request core-developers/forge!5215
2021-08-12 11:57:02 +00:00
Hans Mackowiak
f935b30632 Mercurial Transformation: remove Card and Sub Types 2021-08-12 11:03:25 +00:00
Bug Hunter
3522220938 Update forge-gui/res/cardsfolder/h/hellrider.txt 2021-08-12 06:19:17 +00:00
tool4EvEr
aaa195ca38 Fix Osgir looping too much 2021-08-11 23:54:40 +02:00
Michael Kamensky
dc03ff599c Merge branch 'editions_update' into 'master'
Update J21 and SLD

See merge request core-developers/forge!5211
2021-08-11 18:21:55 +00:00
Michael Kamensky
dad9811bad Merge branch 'Williams-master-patch-56974' into 'master'
Update Judge Gift Cards 2021.txt

See merge request core-developers/forge!5212
2021-08-11 13:23:48 +00:00
leriomaggio
a195bfd2b6 Minor adjustment to getArtCount implementation. 2021-08-11 08:16:21 +01:00
leriomaggio
f0e1d123b2 FIX Issue #1948
DeckChooser uses it's own `selectedDeckType` to get current selected deck type (instead of querying it from deckComboBox) to update forge perferences, accordingly.
2021-08-11 08:14:47 +01:00
leriomaggio
e71a44e76e FIX Issue #1949
All the NetDeckXX classes now traverse their corresponding download dir recursively to look for deck files to load.
So far, from what I can tell, this is only necessary to correctly (re)load Net Decks >> Pro Tour.

However, this opens up the possibility to enable Net Decks to be organised in subfolders that will still be loaded back into Forge.
2021-08-11 08:08:51 +01:00
leriomaggio
8f99123059 Add new method to traverse and extract all directories recursively given a FilenameFilter
This method is part of the FIX for Issue #1949, that will be invoked by all the NetDeckXXX classes.
2021-08-11 08:05:08 +01:00
John
491826004c Update Judge Gift Cards 2021.txt 2021-08-11 06:27:58 +00:00
Michael Kamensky
3681a0ac43 Merge branch 'combat' into 'master'
Small combat fixes for Planeswalkers

See merge request core-developers/forge!5210
2021-08-11 03:56:58 +00:00
Michael Kamensky
2fde82502b Merge branch 'egon' into 'master'
Fix Egon exiling single card

See merge request core-developers/forge!5209
2021-08-11 03:56:31 +00:00
Michael Kamensky
69358cd77f Merge branch 'fix' into 'master'
various fixes

See merge request core-developers/forge!5208
2021-08-11 03:56:01 +00:00
Sol
a3049e1d3e Fix missing booster definition crash 2021-08-11 00:55:21 +00:00
leriomaggio
fd7e5b1bba Added test case to verify that null is returned whenever a request for a card after date of release of latest edition ever is requested. 2021-08-11 00:54:04 +01:00
paul_snoops
a0332dda19 Update J21 and SLD 2021-08-10 23:42:03 +01:00
tool4EvEr
805e65d30c Small combat fixes for Planeswalkers 2021-08-10 21:10:45 +02:00
tool4EvEr
41ce9920ae Fix Egon exiling single card 2021-08-10 19:28:38 +02:00
Northmoc
f25e51d8f2 koma_cosmos_serpent.txt fix stackdesc 2021-08-10 12:49:52 -04:00
Northmoc
931ed2b4ef rals_dispersal.txt fix typo 2021-08-10 12:44:06 -04:00
Northmoc
baf7c84bf9 runeforge_champion.txt - add OriginAlternative$ Graveyard 2021-08-10 12:43:48 -04:00
Michael Kamensky
b049c8c09b Merge branch 'narfi' into 'master'
Narfi round 2

See merge request core-developers/forge!5206
2021-08-10 16:09:07 +00:00
Michael Kamensky
80154de19d Merge branch 'update_skyshroud_ambush' into 'master'
Update Skyshroud Ambush implementation

See merge request core-developers/forge!5207
2021-08-10 16:08:53 +00:00
Alumi
8c1a1da2ee Update Skyshroud Ambush implementation 2021-08-10 16:08:52 +00:00
Northmoc
9c47e7fd36 support "Optional"/"OptionPrompt" in RepeatEachEffect 2021-08-09 19:04:50 -04:00
Northmoc
05fa2bb7be king_narfis_betrayal.txt v 2.0 2021-08-09 19:04:10 -04:00
Sol
eacda0596c Update toralf_god_of_fury_toralfs_hammer.txt 2021-08-09 15:18:37 +00:00
Anthony Calosa
97e69e70a7 Merge branch 'kevlahnota-master-patch-18734' into 'master'
Update VStack.java

See merge request core-developers/forge!5205
2021-08-09 11:48:00 +00:00
Anthony Calosa
4986b31a50 Update VStack.java 2021-08-09 11:47:08 +00:00
Hans Mackowiak
6ca9f1b195 fix CARDNAME enters the battlefield tapped description 2021-08-09 07:27:20 +02:00
Michael Kamensky
ab3a410026 Merge branch 'fix' into 'master'
Fix ArithmeticException

See merge request core-developers/forge!5204
2021-08-09 04:05:35 +00:00
tool4EvEr
9db88b6d62 Fix ArithmeticException 2021-08-08 23:01:53 +02:00
Michael Kamensky
723c38e7bd Merge branch 'reset' into 'master'
Clear manaPaid before Targeting

See merge request core-developers/forge!5203
2021-08-08 16:53:44 +00:00
Michael Kamensky
e3e201ddc0 Merge branch 'narfi' into 'master'
king_narfis_betrayal.txt tidy up Exile process

See merge request core-developers/forge!5199
2021-08-08 16:52:16 +00:00
Michael Kamensky
512b6e78d7 Merge branch 'master' into 'master'
fix translations

See merge request core-developers/forge!5201
2021-08-08 16:51:25 +00:00
Michael Kamensky
a36f935144 Merge branch 'charm' into 'master'
Fix missing Charm triggers

See merge request core-developers/forge!5202
2021-08-08 16:50:26 +00:00
Michael Kamensky
76e7bb9530 Merge branch 'blockfix' into 'master'
Fix onlyOneBlockerPerOpponent

See merge request core-developers/forge!5200
2021-08-08 16:48:24 +00:00
tool4EvEr
7afc17b514 Clean up 2021-08-08 17:09:58 +02:00
tool4EvEr
aae01f913e Fix chooser 2021-08-08 16:55:58 +02:00
tool4EvEr
daf2075075 Fix missing Charm triggers 2021-08-08 15:44:49 +02:00
tool4EvEr
3bdbb5bfbf Clear manaPaid before Targeting 2021-08-08 15:09:51 +02:00