Commit Graph

854 Commits

Author SHA1 Message Date
Myrd
d3723daa6d [Simulated AI] Fix game copy error with dashed creatures and add a test. 2016-12-26 16:29:21 +00:00
Myrd
3faf1946fa Get rid of an unnecessary CardDb of allCards which was taking 256kb of memory. 2016-12-25 06:22:26 +00:00
Myrd
328922029a [Simulated AI] Refactor code to create a Plan object.
This allows coming up with a multi-step planning and caching it, so it doesn't need to be re-computed at subsequent steps if nothing meaningful changed.
2016-12-25 05:05:18 +00:00
Agetian
9d0e8b8096 - Made the desktop port and the mobile port of the game use different threads when processing multiple achievements (otherwise the game tends to freeze). 2016-12-23 07:13:07 +00:00
Myrd
a2aa3ccc06 Fix another problem with Thespian's Stage copying itself and add a test. 2016-12-22 22:30:34 +00:00
Myrd
3e91a56ced Fix NPE in CardUtil.getLKICopy() that would happen when Thespian's Stage would copy itself.
The problem would happen when executing:
        newCopy.getCurrentState().copyFrom(in, in.getState(in.getCurrentStateName()));
        
Because the clone code was clearing the cloned state without updating currentStateName.

Also added a test for this in the context of simulated AI, although the actual bug was not in simulation code - it's just simulation code would run into it since it tries all possible targets to copy (while humans would likely not try it).
2016-12-22 20:31:41 +00:00
Myrd
4b14c9d943 Fix copying of emblems for simulated AI along with a test. 2016-12-22 19:45:16 +00:00
Myrd
d1bd0f0293 Fix loading a gauntlet. 2016-12-22 17:17:08 +00:00
Myrd
73ab19cfb3 Fix gauntlet contests. 2016-12-21 21:07:49 +00:00
Hanmac
94681b6675 Splice: do a total rewrite to make it better for the player and more rules conform 2016-12-21 18:32:50 +00:00
Agetian
7cf2c7e383 - Enforce deck construction limits in the deck editor by unique card name instead of by unique PaperCard. 2016-12-20 17:04:22 +00:00
Hanmac
3c5eb2248b CardFactoryUtil: Miracle is a Trigger now, and make PlayAi a bit better to check if it can play it 2016-11-18 19:55:05 +00:00
drdev
0f1fbc46d1 Fix warnings 2016-11-13 00:08:32 +00:00
Myrd
acddffa267 Experimental feature (behind a pref) to not load all card rules at start up. In my testing, this improves startup speed significantly.
This is still experimental & behind a flag because there's some more work that needs to be done to fully support this - such as loading all cards when the deck builder UI is shown.
2016-11-04 04:19:51 +00:00
Sol
0a78b139e8 - Added a Preference for Card Sale Percentage Base and Max 2016-11-04 02:09:25 +00:00
Krazy
ebbe189f4a [maven-release-plugin] prepare for next development iteration 2016-10-31 04:07:37 +00:00
Krazy
c6f6344d4f [maven-release-plugin] prepare release forge-1.5.57 2016-10-31 04:07:26 +00:00
Myrd
9e84290281 Fix some warnings. 2016-10-09 22:17:24 +00:00
Agetian
b3a49e005f - For now, disregard both -1 and Integer.MAX_VALUE when rendering integer components in a table.
- Unfortunately, this means that Spinal Parasite does not have its P/T visualized in the deck editor table; but at least there won't be a lot of -1's elsewhere in the editor. Couldn't find a way to fix both of these at the same time for now.
- Revert processing default CMC as Integer.MAX_VALUE for the UI purposes.
2016-10-09 15:17:58 +00:00
Agetian
2cd7016703 - More changes related to supporting negative power and toughness, please test to see this doesn't break anything.
- Fixed some visualization issues in the deck editor related to supporting negative P/T (e.g. non-creatures showing up as P/T 2 billion+ / 2 billion+).
2016-10-09 12:05:55 +00:00
excessum
27a3640c17 - Removed unwanted file from r32259 2016-10-03 12:33:12 +00:00
excessum
2ecfa4259d - Re-factored Vehicle animation logic into ComputerUtilCost.canPayCost() 2016-10-03 12:30:46 +00:00
Agetian
f932ba172b - Support showing Energy counters in the desktop version of Forge (poison counters take priority over energy counters). 2016-09-27 06:24:11 +00:00
drdev
32a7d0c138 Show Energy symbols in Android app 2016-09-27 02:10:23 +00:00
Krazy
ad1696fde2 [maven-release-plugin] prepare for next development iteration 2016-09-26 21:28:01 +00:00
Krazy
66615a683f [maven-release-plugin] prepare release forge-1.5.56 2016-09-26 21:27:49 +00:00
Sol
00092a17da - Adding Energy icon to sprite sheet 2016-09-21 14:36:14 +00:00
Sol
b529cfa5a2 - Allow Draft Editor to have a change section button to add Conspiracies to the deck (Sideboard filtering on section change not enabled yet) 2016-09-02 20:44:07 +00:00
Sol
9da706cbad - Rewriting Booster Draft to be a bit more capable of handling Draft Matters cards 2016-08-18 20:22:10 +00:00
Hanmac
b65a16acf2 ChooseName now uses ICardFaces for selecting a CardName.
that now makes it working for naming an alternate state of a card.
2016-08-18 08:29:11 +00:00
Hanmac
4d4a7f0b23 GuiChoose: add logic to display ICardFace objects (it checks for PaperCard) 2016-08-18 08:18:43 +00:00
mcrawford620
470e22bed2 Convert CardRanker to static 2016-08-16 22:57:13 +00:00
Sol
341238aeb1 - Some improvements to draft handling 2016-08-16 17:09:51 +00:00
Krazy
be014c4237 [maven-release-plugin] prepare for next development iteration 2016-08-02 19:29:16 +00:00
Krazy
40636891c9 [maven-release-plugin] prepare release forge-1.5.55 2016-08-02 19:29:06 +00:00
Sol
b498fa5ee1 - Adding some foundation for Cogwork Librarian
- It seems like Booster Drafts weren't changing directions for the middle packs?
2016-08-01 14:45:32 +00:00
Sol
d30fd6ab21 - Adding count of types to the Tooltip for Graveyards for improved Delirium QOL 2016-07-30 20:05:48 +00:00
Sol
d41c0bc3e0 - Add changes to allow for a one of the two piles to be facedown
- Add Fortune's Favor
2016-07-26 14:32:42 +00:00
mcrawford620
5c5af31bc3 Merge all from trunk at 31586 2016-07-20 04:57:21 +00:00
Agetian
ca8c506394 - Disable the visibility of New and Open buttons in the Quest Draft Tournament deck editor (they do nothing and crash). 2016-07-19 17:01:50 +00:00
Hanmac
da4cb7c716 ItemListView: return empty string instead of null to prevent the Tooltip from crashing 2016-07-19 06:32:47 +00:00
drdev
5776a75ec5 Support completing quest draft 2016-07-17 23:00:50 +00:00
drdev
ed23ac3b15 Support leaving tournament 2016-07-17 21:33:34 +00:00
drdev
0cfa184d62 Support laying out tournament screen when preparing deck 2016-07-17 19:57:36 +00:00
Krazy
6d9a7146b3 [maven-release-plugin] prepare for next development iteration 2016-07-17 00:57:42 +00:00
Krazy
a4ab46bc8c [maven-release-plugin] prepare release forge-1.5.54 2016-07-17 00:57:30 +00:00
mcrawford620
bfa89fd5af Add ability type, and capability for cards to be marked has having specific abilities through DeckHas var. 2016-07-15 04:37:43 +00:00
mcrawford620
80978ad228 DeckHints can return Map of cards by Type 2016-07-13 05:02:02 +00:00
mcrawford620
3678e6a870 Allow multiple deck hints in a card 2016-07-12 04:43:31 +00:00
mcrawford620
83d93c4436 Use card ranker in BoosterDraftAI so pack cards are compared with existing cards in deck 2016-07-11 05:12:49 +00:00