Commit Graph

564 Commits

Author SHA1 Message Date
Maxmtg
79e3081e98 SetInfoUtil cleaned out for unused code, init moved to static{} block, dependencies updated
limited game code moved to a matching package
deckeditor for drafting now lets pick a card by hitting space.
2011-09-04 15:48:59 +00:00
Maxmtg
5382bb7587 The choice window makes its list focused then it gains focus itself. So you can just press up/down and ENTER or ESC to choose without touching mouse 2011-09-04 15:43:00 +00:00
Sloth
936fae779e - Little AI fix in AF Attach Curse.
- Added Screams from Within.
2011-09-04 15:03:39 +00:00
ArsenalNut
78468572d0 fixed calculateAmount so Remembered and Imprint work when ability != null 2011-09-04 14:51:24 +00:00
slapshot5
35ab02ae9b some Checkstyle fixes in AF_ChangeZone 2011-09-04 14:43:05 +00:00
Maxmtg
c3db613e86 Code for reading a deck refactored. 2011-09-04 12:06:49 +00:00
Maxmtg
96556ebfa0 Now 'new' is present in quest deckbuider too. 2011-09-04 11:49:14 +00:00
Sloth
5428c2a8f5 - Little fix for the prompt of the reveal cost. 2011-09-04 11:40:28 +00:00
Maxmtg
263be6f3d1 "New" column added to Quest shop interface. 2011-09-04 11:13:03 +00:00
Sloth
b8412d4648 - The AI will no longer try to use mana abilities which have a mana cost (it will miscalculate). 2011-09-04 11:02:59 +00:00
Sloth
a40670d9de - Added the option "RemoveTypes" to AF Animate to remove one special type.
- Added Arcum's Weathervane.
2011-09-04 10:32:01 +00:00
Sloth
b6581dba64 - Added the option "RemoveType" to continuous static abilities to remove one special type.
- Added Melting.
2011-09-04 10:14:19 +00:00
Sloth
e2c99a4218 - Fixed an incompatibility of getShortColorsString and ManaCost (the former translating Colorless to C which the latter doesn't take). 2011-09-04 09:42:55 +00:00
Sloth
7d15448012 - The restart match button is now always enabled. 2011-09-04 09:00:07 +00:00
Sloth
26808aef66 - Disabled Sideboard parsing of deck files (because it currently chokes on the quest files). 2011-09-04 07:53:52 +00:00
Maxmtg
a46486c0ad reverting sources to revision 10193
changes from r10200 were kept (not reverted)
2011-09-04 03:13:07 +00:00
Doublestrike
8eefc0cee1 DeckManager updated to ignore tokens stored in Quest decks.
QuestUtil updated (poorly) for a quick fix on a couple of errors.
2011-09-04 01:30:34 +00:00
Doublestrike
51c52609c3 Deck and DeckManager restored? 2011-09-03 12:13:39 +00:00
Hellfish
8310c076ab *Better fix for the StackOverflow when donating stuff. You know, one that *doesn't* cause other GainControl abilities to spaz out. 2011-09-03 11:48:20 +00:00
Doublestrike
847da2c114 Frantic changes to Deck and DeckManager to fix errors in r10194 2011-09-03 11:20:13 +00:00
Maxmtg
a5f708559c fixed a couple of compile errors from 10194, yet could not handle them all 2011-09-03 10:57:13 +00:00
Doublestrike
f83f87df5b NOTE: A commit with errors was apparently pushed previous to mine. As a result, my work has been broken also, and will unfortunately take some time to fix. The functionality described below will eventually work.
=====
Big commit: Restructured Quest quests to use dck files.  This required changes in many places.  Among other things:
- Model and view separated for quest main panel items
- Quests and battles all generated from dck files
- dck files all updated to contain metadata, main, sideboard
- Quest dck files updated to contain [ai_extra_cards] and [human_extra_cards]
2011-09-03 10:08:03 +00:00
slapshot5
1786c3e655 Checkstyle fixes in some Input_* files 2011-09-03 09:37:39 +00:00
slapshot5
b8b4f58805 many Checkstyle fixes 2011-09-03 09:22:29 +00:00
slapshot5
dd31537034 Checkstyle fixes in GuiDisplayUtil.java 2011-09-03 08:24:53 +00:00
slapshot5
9db7d863f1 taking out some debug code from OldGuiNewGame.java 2011-09-03 07:59:07 +00:00
slapshot5
9aa620c68e fix a bunch of Java warnings 2011-09-03 07:56:52 +00:00
Maxmtg
adb3ae979b Moved some methods from QuestData to helper classes, the whole class rearranged
Moved shop-related things to QuestUtilCards.java (eg. number of shop boosters calculation)
CardShop now shows how many decks use the given card
Quest deck editor: press space to add card to your deck - that simple
CardPool no longer allows incorrect remove numbers
removed lots of senseless javadocs
2011-09-02 22:51:47 +00:00
Hellfish
90d5514aaa *Fixed StackOverflow when donating stuff. 2011-09-02 18:50:20 +00:00
Maxmtg
b548b3542d Deckeditors use a unified component for TableWithCards, sorting issues fixed 2011-09-02 17:57:24 +00:00
Sloth
f47ffe043e - Fixed continuous static effects that only change colors not being applied. 2011-09-02 16:38:34 +00:00
Sol
e3e534df52 - Added support for TargetUnique for cards like Arc Trail, where subabilities can't target something any parent ability has targeted. 2011-09-02 15:40:39 +00:00
Maxmtg
97802645df removed rarity from Card, use CardPrinted instead
Predicate: stylechanges
acquiring legacy booster longer throws
2011-09-02 10:53:06 +00:00
Maxmtg
f255d38e24 removed save of unpacked quest data 2011-09-02 09:41:10 +00:00
Maxmtg
67cf33d550 added support for older format of quest saves (a method for deserialization of CardPool)
since color names are lowercases, I used constants from forge for their names.
2011-09-02 09:34:31 +00:00
Sloth
030998fe18 - Fixed EtB triggers. 2011-09-02 09:28:29 +00:00
Maxmtg
3d4032c5fa sorting order for colors is: W U B R G multi colorless, as they are numbered in a set 2011-09-02 08:51:20 +00:00
Maxmtg
b202a35967 cardpool won't add 0 or negative number or any card 2011-09-02 08:38:44 +00:00
Sloth
daacb0427c - Fixed a possible NPE in getPumpCreatures (AF Pump). 2011-09-02 08:14:37 +00:00
slapshot5
16878c9a6d revert a couple checkstyle fixes. 2011-09-02 06:23:17 +00:00
slapshot5
0eb9b4194b several Checkstyle fixes 2011-09-02 06:16:51 +00:00
slapshot5
d7453206de Checkstyle and Java warnings cleanup in ReadDraftBoosterPack.java 2011-09-02 06:00:20 +00:00
slapshot5
e24da28385 Checkstyle fixes in several files 2011-09-02 05:57:44 +00:00
ArsenalNut
4987b31e31 Modified handling of CheckSVar in Trigger.java to be consistent with the other abilities.
Moved handling of Remembered and Imprint list in calculateAmount outside of the ability if statement
2011-09-02 04:45:04 +00:00
slapshot5
dbd7b4eb64 clean up a bunch of Java warnings 2011-09-02 04:13:42 +00:00
slapshot5
83a338fc2e Checkstyle fixes in a few random files. 2011-09-02 03:32:55 +00:00
slapshot5
2a5e4754b0 Checkstyle fixes in GuiInput.java 2011-09-02 03:24:34 +00:00
slapshot5
656bc43c00 Checkstyle fixes in a couple GUI files 2011-09-02 03:15:18 +00:00
Maxmtg
16be5d01e5 fix manacost.toString typo
questData - XML serialization for CardPool
2011-09-01 23:57:02 +00:00
Maxmtg
d3233cfa1c rolling back ping to DraftAI (removed ocasionally @10146) 2011-09-01 22:16:24 +00:00