Commit Graph

1017 Commits

Author SHA1 Message Date
Myrd
3c62608fda Accept smart quotes in card names when pasting a deck list. 2015-06-30 21:42:23 +00:00
Myrd
3f6307461f Fix card legality check for Tiny Leaders to correctly consider split cards (previously, e.g. Fire // Ice was considered illegal). 2015-06-30 21:07:08 +00:00
drdev
61f5424b2e Fix or suppress warnings 2015-06-27 19:24:16 +00:00
Krazy
63a73df35f Added new color-specific booster packs to quests. 2015-06-13 02:23:02 +00:00
elcnesh
fcd98ef99d Update, cleanup and fully document FCollection and related classes. 2015-06-07 09:40:43 +00:00
Krazy
a37ad72882 Added fallback for quest match rewards when no boosters are in the selected sets. 2015-06-06 16:24:32 +00:00
Krazy
5886f43f8b Moved images from cardforge.org to cardforge.link and added missing sets/some product images. 2015-06-01 03:44:10 +00:00
Agetian
46f17edad0 - Reverting r29415-29422 for now because the UTF-8 characters prove to be problematic for the player unless they are transparent enough when searching for cards and typing card names (including the deck editor).
- Before having to revert these changes I managed to get the game to recognize both accented and unaccented card names in decks and for the purposes of card picture file names. However, I was not successful in implementing the similar level of transparency in the deck editor and in the card search box (e.g. "Add Card To Hand" - that type of thing).
- To continue working on this project, feel free to revert this commit locally and update the functionality to be more transparent and intuitive for the end user.
2015-05-17 16:44:30 +00:00
Agetian
9f15e72a4f - Use StringUtils.substring in the equivalent card name lookup. 2015-05-17 15:32:21 +00:00
Agetian
a23afe9d91 - Fix for lookup of equivalent card names that have set and/or art info attached to them. 2015-05-17 15:24:57 +00:00
Agetian
37f3fad409 - Make looking up cards by equivalent name more efficient. 2015-05-17 14:59:31 +00:00
Agetian
50ba2341d1 - Fix imports. 2015-05-17 14:54:47 +00:00
Agetian
781dace2e8 - An attempt at making the game detect both the accented and non-accented card names in decks [please review]. 2015-05-17 14:54:26 +00:00
Agetian
3ba9e7cd03 - Fix the encoding of files with UTF-8 symbols to make them compile properly and without warnings. 2015-05-17 14:22:02 +00:00
elcnesh
44e7a3fec9 Use recently fixed UTF-8 support to update cards with special characters in their names 2015-05-17 13:33:04 +00:00
elcnesh
b3f38edef3 Huge cleanup: use collection interfaces (List, Set, Map) rather than
implementations (ArrayList etc.) in references to objects
2015-05-17 11:28:21 +00:00
elcnesh
6274c5379a Use morph/manifest reminder overlays for face-down cards on the battlefield 2015-05-17 11:16:39 +00:00
elcnesh
49dc0e2e59 Cleanup: use Lists rather than arrays whenever applicable (removes some methods) 2015-05-11 14:22:08 +00:00
Sol
0cf2e17d49 - Adding VMA Edition file 2015-05-10 03:32:25 +00:00
Sol
27f14e82a6 - Adding Tempest Remastered in to Forge (Marked as "Online" type, so it's not unlockable in Quest Mode) 2015-05-09 23:48:47 +00:00
elcnesh
658fd8f953 Mostly cosmetic changes to color code 2015-05-06 16:26:45 +00:00
drdev
2e1d4de1cd Avoid using java.nio since it breaks Quest Mode in Android app 2015-05-04 23:48:54 +00:00
elcnesh
41ff150984 - Load cards in UTF-8 so we don't have to manually format UTF symbols
- Some cleanup
2015-05-04 09:49:10 +00:00
elcnesh
bfdcaa6a1a Huge cleanup of gui and desktop code
- Remove lots of unused classes and methods
- Remove code related to transitioning deck format
- Refactor some interface structures
- General cleanup (imports, indentation etc.) thanks to Eclipse
- Some very minor bugfixes
2015-05-01 19:27:48 +00:00
elcnesh
37362b2015 Cleanup in forge-core 2015-04-30 10:21:19 +00:00
elcnesh
ca21f3a298 Clean up CardType
- Treat core types and super types as static, no longer
  read them from a file. Adding types this way isn't compatible
  with the program so it served no purpose for users anyway.
- Merge instant and sorcery types into "spell types", as specified
  by the comp rules.
- Remove some unused methods and restructure/clean up some others.
2015-04-29 18:24:58 +00:00
elcnesh
addcece582 - Huge update to network play
- Updated protocol: now used everywhere for type checking
  - No more locks between server and client: client no longer expects any replies
  - More code reuse
  - Fixed issue with location of multiple abilities selection popup menu
  - Improved stability; actual games should now be possible
- Other updates
  - Mobile version player panel now uses same code as desktop
  - Remove automatic "view all cards" cheat in hotseat (no longer necessary)
  - Code cleanup
2015-04-26 10:54:55 +00:00
elcnesh
586cb90697 Lots of cleanup: correct static field/method access,
proper fall-through documentation, and some minor things.
2015-04-20 13:49:01 +00:00
elcnesh
6dacb83c37 Lots of code cleanup, including removing some useless null checks,
preventing some NPE's before they ever occur, and clean up some
of the inheritance hierarchy.
2015-04-13 14:29:01 +00:00
elcnesh
edbebf27c0 - Saving a deck now properly updates the deck in the lobby
- Prevent NPE when loading a deck with nonexistent cards
- Clean up warning messages about deck conformity
- Lots of code cleanup and simplifications
2015-04-09 22:11:12 +00:00
drdev
5a55549852 Prevent Import Deck dialog pulling in version of card you don't have the image for when one is available with an image 2015-04-05 17:05:55 +00:00
drdev
5f68844fa4 Refactor deck import logic to be reusable by mobile game
Don't prompt about replacing deck contents if deck is empty
2015-04-05 16:36:02 +00:00
elcnesh
c100b90c70 - Add Deck copy constructor
- Throw exception when deserialising non-existing PaperCard
2015-04-02 08:43:58 +00:00
elcnesh
b98684877d Refactor lobby and add network support.
- Lobby code has been revised completely to support network lobbies;
  code has been separated into model and view parts.
- Added preliminary network game support; most of it should be working
  but hasn't been tested thoroughly.
- Fixed issue where controlling another player wouldn't be recognised
  by the GUI.
- Fixed issue where hand panels wouldn't display anymore.
- Minor fixes/cleanup.
2015-03-14 10:53:09 +00:00
Sol
14a8893fab - Fixing issue when testing cards not defined in an edition file being loaded in a deck 2015-03-12 13:56:26 +00:00
elcnesh
4a38b0d817 Huge update to the GUI codebase.
- Make match screen in gui-desktop non-singleton, allowing multiple games to be played simultaneously.
- Separate global gui commands (IGuiBase) from game-specific gui commands (IGuiGame), allowing games to send their commands to the correct gui.
2015-02-17 08:47:55 +00:00
drdev
883e011501 Prevent picking illegal commander deck when choosing random tiny leaders 2015-02-15 16:53:09 +00:00
drdev
caf5817d0b Support generating proper Tiny Leaders decks 2015-02-15 15:33:18 +00:00
drdev
e51a64242e Make format comformance check more generic 2015-02-15 14:32:47 +00:00
drdev
edaa52b507 Support restricting card pool at deck format level 2015-02-15 01:53:14 +00:00
drdev
2b4a509b78 Start fleshing out UI support for Tiny Leaders format 2015-02-14 23:01:35 +00:00
Hellfish
25da751464 *Added a few provisions for Tiny Leaders 2015-02-14 09:54:14 +00:00
Sloth
74d25c7ce1 - Fixed two typos. 2015-02-08 12:59:08 +00:00
Maxmtg
36bc0d08e1 removed the FCollection from forge-core 2015-02-01 03:13:08 +00:00
Krazy
f3a30793c5 Added foil basic lands to FRF boosters and updated the way foil cards are generated to account for multiple cards in printsheets. There should now be a more equal distribution of foil rarity. 2015-01-24 18:27:14 +00:00
Krazy
c0c4383953 Fixed land distribution for FRF. Basics have been removed entirely as per the real booster packs. Also cleaned up a bit of formatting. 2015-01-24 17:37:54 +00:00
Agetian
e9000fa6b7 - Temporarily reintroduced the processing of !fromSheet (only in its inverted form) to fix M15 and CNS booster generation without breaking KTK/DGM booster generation (until a better solution is introduced). 2015-01-24 05:28:05 +00:00
Krazy
6382dbbe76 Fixed printsheets. A bug was preventing anything other than same-set cards from appearing in any separately defined printsheets, which broke booster packs for sets such as Fate Reforged and Dragon's Maze that contain cards from other sets. Also corrected the Fate Reforged booster format to include some KTK dual lands and to not put common dual lands into the commons slots. 2015-01-21 04:36:58 +00:00
Agetian
56dd767343 - Revert the last couple commits, looks like there is no unwanted console spamming if everything is set up properly. 2015-01-14 04:59:23 +00:00
Agetian
e40f374eff - Forgot to commit this file. 2015-01-13 19:57:59 +00:00