Commit graph

19 commits

Author SHA1 Message Date
vraskulin
076840df53 Big refactoring
I used Intellij IDEA to automatically refactor code to achive 3 goals.
1) get rid of anonymouse classes, and replace the with lamba to get more readeable and clean code (like in TableWaitingDialog).
2) make effectively final  variables actually final to avoid inadvertent changes on it in further releases and keep objects as immutable, as possible.
3)  Get rid of unused imports (most of the changes) in whole project classes.
2017-01-09 19:16:53 +03:00
ingmargoudt
e2a479255a refactor : removed all instances of new Random() and replaced with RandomUtil for a ThreadLocal randomizer 2016-09-05 15:03:47 +02:00
Samuel Sandeen
282443c231 Add Subtype to the CardAttribute Framework
This is a massive change. I’ve refrained from unrelated refactoring
when possible but there are still a lot of changes here.
2016-08-28 17:30:10 -04:00
Fenhl
430ae503c7 Change all line endings to LF 2016-04-14 16:18:01 +00:00
LevelX2
0fb7cf8317 * Added a deck hash tag that's shown at the start of the game log to be able to identify a deck. 2015-04-11 00:47:54 +02:00
Dustin Conrad
5ed3027b9f fix null pointer when the generated deck is all artifacts. 2014-08-09 22:40:08 -04:00
North
7f2a2ca0a3 removed dependency to trove4j (only used in DeckBuilder) 2014-04-05 21:55:35 +03:00
LevelX2
6646aaf5b2 Client memory need - Removed some unneeded references. 2014-02-13 17:12:02 +01:00
LevelX2
bf4ccf185c Some minor formatting. 2014-02-03 17:47:12 +01:00
LevelX2
b005e7b03f * Deck generator - Fixed a bug that during the generation cards with multiple colored mana symbols of the same color were unintended rated higher. So all generated decks tend to include more or nearly only cards with double or tripple colored mana symbols ignoring all other cards. 2013-10-13 01:59:11 +02:00
LevelX2
fea6b0633a * Deck generator - Fixed a bug that the selection of mana lands did favor the overall most needed land too much. 2013-09-19 17:04:12 +02:00
LevelX2
c3ea17bab8 Cleanup in DeckBuilder. 2013-08-04 17:52:48 +02:00
LevelX2
78dc712944 Allow to generate 40 or 60 cars decks. 2013-07-30 13:42:20 +02:00
North
0bb110be45 [refactor] moved enums from Constants class 2013-06-16 12:28:10 +03:00
LevelX2
5f3a8eb360 Changed logic of adding basic lands in deck generation and the add land function in limited deck editor to use lands from the sets of the cards in the decks. Added missing attributes to set definitions. 2013-02-03 16:54:03 +01:00
North
239a4fb100 [refactoring][minor] Replaced all tabs with four spaces. 2012-06-19 23:50:20 +03:00
magenoxx
935bf45c57 Enhanced deck generator: monocolor decks, card pool 3 times bigger, bonus for multicolored cards, no duplicate cards. 2011-05-20 16:40:16 +04:00
magenoxx
a99be05446 Fixed tooltip bug appeared after adding displaying counters. Updated card plugin. Hid New Draft button for release as drafting is not ready yet. 2011-01-30 19:01:26 +03:00
magenoxx
7edffebb5d Separated DeckGenerator and DeckBuilder. Moved DeckBuilder to mage.common (will be used by ai to construct draft decks). 2011-01-13 19:53:24 +03:00