Commit Graph

5618 Commits

Author SHA1 Message Date
Maxmtg
1fb5479e4f CardStorageReader uses a threadPool to load all cards in several threads, got 3x faster execution on i7-2600. 2013-03-20 21:06:12 +00:00
Sloth
8f35ae4961 - Fixed AI predicting Battletide Alchemist wrongly. 2013-03-20 20:06:31 +00:00
myk
fd90002a60 invalidate the image cache after downloading new images so the new images can be loaded if they were previously cached as not found 2013-03-20 17:13:19 +00:00
Sloth
31756b86cf - Fixed AI not using Ancient Tomb. 2013-03-20 16:47:52 +00:00
moomarc
906b82f3ab - Added a user preference that allows a user to choose whether a clone or copied card should use its native artwork or the artwork of the card being cloned. By default the cloned card's image will be used. 2013-03-20 09:34:48 +00:00
Maxmtg
5c14793d48 a default picture will be embedded into jar file to be used when a card image is missing 2013-03-20 05:38:06 +00:00
Maxmtg
10389722dc removal of setBeforePayMana 2013-03-20 04:39:23 +00:00
Maxmtg
a0de29bc13 setPriority to human player moved from Input and CField to Player.playSpellAbility (that both sources call)
InputProxy.selectCard no longer requires PlayerZone (it can be derived from card by those who needed it)
ComputerUtil - rem imports
2013-03-20 04:30:05 +00:00
Sol
06bf9d3e65 - Convert Global Ruin to script. 2013-03-20 01:31:33 +00:00
Maxmtg
be83ec87f3 a smarter way to make ImageLoader check for an image only once. It uses a placeholder value, that is not null and therefore may be added into cache without errors 2013-03-19 19:25:16 +00:00
Maxmtg
9074929c81 placed a static variable to prevent multiple BugReport windows 2013-03-19 19:23:17 +00:00
Chris
cdbb167be7 Temporarily comment out line 124 in the ImageCache class. 2013-03-19 16:57:17 +00:00
moomarc
ea94d76c0f - Added Infinite Reflection
- Converted Essence of the Wild to script
- added ImageSource parameter to CloneEffect
- some small checkstyle fixed
2013-03-19 16:35:41 +00:00
moomarc
9333d4fe4f - Cleaned up the code I added recently to return a list of cards sharing the highest cmc. Thanks for the assistence Max! 2013-03-19 14:18:47 +00:00
Maxmtg
37126549cc renamed GameActionPlay.playSpellAbilityForFree into playCardWithoutPayingManaCost
PlayEffect.java - optimized the part which plays the spell
2013-03-19 09:57:06 +00:00
Maxmtg
85beda72e1 Image loader will give up if it failed to find image once 2013-03-19 09:44:47 +00:00
Maxmtg
ecf41ea05d madness moved to PlayerController
removed imports and sources of warnings
2013-03-19 09:10:32 +00:00
Maxmtg
b3c042dd08 Play miracle moved to PlayerControllers
a method to choose and play a sa out of a list extracted and moved to AiController
2013-03-19 08:47:54 +00:00
Sloth
f1405738a9 - Fixed getShortColor being case sensitive. 2013-03-19 08:19:50 +00:00
Maxmtg
e1771f55f0 refactor the code assigning profiles to AI players. 2013-03-19 07:57:05 +00:00
Maxmtg
a6f15b6e98 remove unused imports
inline few vars in downloader
2013-03-19 07:55:28 +00:00
Sol
ff4b20236e - Convert Champion keyword to Trigger 2013-03-19 03:17:33 +00:00
Agetian
94c36b571a - Reintegrate merge: AIPersonalities --> trunk.
- The primary API for AI personalities is now in place. AI properties are implemented in forge.game.ai.AiProps and are retrieved via a call to one of AiController.getProperty, AiController.getIntProperty, or AiController.getBooleanProperty depending on the type of property (AI controller can be retrieved via a getAi() call on the AI player object). Each property can be assigned on a per-profile basis in res/ai/*.ai profile files. A profile can be selected in the game properties. For an example implementation of a property, see AI_MULLIGAN_THRESHOLD implemented in AiProps and retrieved in ComputerUtil.
- Currently there is one property only, but more are on the way. Everyone is also free to expand as necessary. Specific AI profiles for specific quest opponents will be implemented at a later date.
2013-03-19 02:40:58 +00:00
Sloth
5ab6fd14a8 - Fixed Freeze caused by Wake Thrasher. 2013-03-18 21:51:34 +00:00
Maxmtg
160d45015d added code to see what the game is about to download (commented it out to avoid spamming other developers) 2013-03-18 20:37:57 +00:00
Maxmtg
7f24c62fae 1. added a method to determine if a printed card uses a different picture for its other face
2. remove unused imports from previous commit
2013-03-18 20:27:27 +00:00
Maxmtg
5bea8704c3 added a method Card.isSplitCard() to shorten tests for split type. 2013-03-18 19:29:14 +00:00
moomarc
260f626ee1 - Made Scythe Specter work correctly when opponents discard cards tied for highest cmc.
- Made Heretic's Punishment work correctly with split cards
2013-03-18 17:18:58 +00:00
Maxmtg
4016b95469 removed extra parameter from getDownloadUrl - it was always true anyway 2013-03-18 09:41:40 +00:00
Maxmtg
c241dfb8b9 collection of old ungroupped pics has been fixed 2013-03-18 09:15:34 +00:00
myk
6aa3e91a57 move tools into tools directory and lists into lists directory 2013-03-18 05:58:40 +00:00
swordshine
bf7a34f5ff - A small fix of last commit 2013-03-18 02:37:49 +00:00
swordshine
10bae9c32c - Added Yavimaya Dryad and Thieve's Auction 2013-03-18 02:16:22 +00:00
swordshine
f2560e5d0a - Added Perplex 2013-03-18 01:58:42 +00:00
swordshine
3914e8c277 - Added Phyrexian Grimoire, Purging Scythe, and Noxious Vapors 2013-03-18 01:57:39 +00:00
swordshine
84cdfcc107 - Added Loxodon Peacekeeper 2013-03-18 01:51:55 +00:00
myk
4d14ccc377 fix order of operations in GuiDownloader 2013-03-17 22:43:34 +00:00
Maxmtg
f5db3f4430 minimal style changes 2013-03-17 22:15:01 +00:00
Maxmtg
c0b9c4ed7b simplified code 2013-03-17 22:00:18 +00:00
Maxmtg
c2536e6e08 rem unused imports 2013-03-17 21:50:26 +00:00
Sloth
6d93c01fec - Moved some checks in checkStateEffects to fix Lich (among other things). 2013-03-17 21:33:03 +00:00
Maxmtg
202e15fb95 removes comment refecting my doubts 2013-03-17 21:17:57 +00:00
Maxmtg
2e0bef61d1 Correct recognition of number of setless pictures 2013-03-17 21:12:56 +00:00
Sloth
a965fcf6bd - Fixed possible freeze when AI discards cards with triggers in cleanup. 2013-03-17 21:08:32 +00:00
Maxmtg
0c37c77373 Tokens are given image prefix on creation through TokenEffect 2013-03-17 21:02:48 +00:00
myk
296fdd85d7 report correct card ordinal during downloading 2013-03-17 21:00:31 +00:00
Sloth
e5a3bc3f45 - Fixed UnlessResolveSubs parameter freezing the game. 2013-03-17 20:52:25 +00:00
Maxmtg
fc495eee9d LQ setless images will be appended a number (1) if they exist in multiple prints in any set. 2013-03-17 20:43:04 +00:00
myk
bc5b475fb4 report what file is being downloaded 2013-03-17 20:21:08 +00:00
Maxmtg
6b3e6da71d does not append token prefix while forming image file name inside CardToken.java 2013-03-17 20:07:39 +00:00