Commit Graph

574 Commits

Author SHA1 Message Date
jendave
cefd9e784d Converted the cards Goblin Artillery; Orcish Artillery; Orcish Cannoneers; Sparksmith from code to keyword. 2011-08-06 03:27:43 +00:00
jendave
c9746e1909 - Fixed a crash when the AI has cards in hand with no activated abilities (eg. The Tabernacle at Pendrell Vale).
- Upkeep effects shouldn't get executed at the beginning of turn 1 (should fix effects of AI controlled effects such as Magus of the Tabernacle and The Tabernacle at Pendrell Vale).
2011-08-06 03:27:37 +00:00
jendave
4039a9993b - Added the missing types to Cosmic Horror; Dakkon Blackblade; Force of Nature; Junun Efreet; Primal Clay.
- Removed the unneeded "-" from the type line for Crib Swap; First Volley; Nameless Inversion; Wings of Velis Vel.
2011-08-06 03:27:32 +00:00
jendave
5e287fe644 - fix for tapped images not showing up 2011-08-06 03:27:27 +00:00
jendave
c595bca3db Fixed the token image bug in ImageCache
Changed CardDetailPanel to display all the info in separate lines
added support for multiselect dialogs in Display, adapted it in Devour
2011-08-06 03:27:22 +00:00
jendave
4099d3fc0b - src directory got zapped in classpath in the last commit 2011-08-06 03:27:12 +00:00
jendave
c0ba412386 - single jar for google collections
- scaling using Lanczos3
2011-08-06 03:27:07 +00:00
jendave
f69e0784b7 - Added "Masticore" type to Masticore.
- Added the LQ pic url for Masticore.
2011-08-06 03:26:56 +00:00
jendave
e6fcccea92 Code cleanup:
-removed obsolete image-related classes
-resolved all warnings in the forge packages
2011-08-06 03:26:49 +00:00
jendave
dc5df2d4e6 - Fixed some of Chris' changes I had messed up in cards.txt, set blur radius back to 3 for now. 2011-08-06 03:26:07 +00:00
jendave
f1632d774f - Fixed Sarkhan vol white -> red dragons.
- Fixed Devout Lightcaster targeting.
- Added Masticore.
2011-08-06 03:26:01 +00:00
jendave
c84b574f27 - Added the last 10 cards now that the spell description code has been changed to show the mana/tap costs.
- Added ability description to Stun Sniper.
- Sarkhan Vol should now create red rather than white dragon tokens.
2011-08-06 03:25:54 +00:00
jendave
4e14cf17ce Added abDrawCards[Tgt]
Fixed bugs in abPump and abDamage related to building the ability descriptions
2011-08-06 03:25:48 +00:00
jendave
b1eb89dae6 Modified input_targetPlayer(final SpellAbility spell) to use if (spell.isAbilityTap) to determine if to tap the source card, instead of a separate input that takes an Ability_Tap, like input_targetCreature. 2011-08-06 03:25:43 +00:00
jendave
f361b0b44b Corrected Feral Animist and it is now a Goblin Shaman. 2011-08-06 03:25:39 +00:00
jendave
e8c4fecd6f - Added an addStackingExtrinsicKeyword method to Card.java.
- Added another phase after the declare attackers phase during the human player's turn as well (can cast instants/abilities). The main reason for this change is that before this, the computer would decide on its blockers while triggered abilities of attackers hadn't happened yet.
- AI should target the human player's creatures now with Seal of Removal.  
- Deleted GUI_PictureHQ.java for now, since it causes compile errors.
2011-08-06 03:25:34 +00:00
jendave
c4e118f5f2 minimal nonfunctional change 2011-08-06 03:25:27 +00:00
jendave
487a1a0135 - blur before resize so that pictures scaled more than a half look less pixelated, might need some parameter tweaking to please everyone 2011-08-06 03:25:19 +00:00
jendave
5aeadd58db - bicubic image filtering added, text should look less picalted and more blurred
- limit scaling to orginal size, maybe a menu option if you want to overscale
2011-08-06 03:25:12 +00:00
jendave
7c23c0bb3f Big change that should solve the memory leak
-replaced the old ImageCache class with ImageCache2
-extracted the card picture- and detail code from GuiDisplay/DeckEditor into separate classes (in forge.gui.game). therefore, CardDetailUtil and forge.CardPanel were deleted. GuiDisplayUtil is no longer used to create the card panels.

TESTS:
-confirmed all changed GUIs (but the quest deck editor - changes are the same as normal deck editor) to show details and pictures.
-I played a game with reduced heap size (-Xmx200M). Occasionally the image cache size shrinked along with the used memory.
-In a game without reduced heap size (memory usage ~500M, over 1000 cached images), i noticed slowdown when some images were missing.
-I noticed the stack elements now having a border with the card's color; this doesn't hurt IMO.

NOT WORKING
I wasn't able to adapt one thing: GUI_PictureHQ, i just didn't know what it does. for everything else to work, some code sections were commented out and tagged with "TODO reenable"
2011-08-06 03:25:05 +00:00
jendave
93a59f2fd1 - Changed addExtrinsicKeyword in Card.java, this means many keywords will stack (did this to fix Sidewinder Sliver).
- The "30 second per action" slowdown bug turned out to be due to caching, for now I disabled this: the game should run much smoother now... I do not know whether
 this will help with heap space problems or not.
2011-08-06 03:24:43 +00:00
jendave
8c6cacd51b - Added the missing braces to the else block in the abPump code. abPump cards will now display "gains" once and not twice. Thanks for the pointer Rob.
- Added several of the new abDamageTgt cards. These several cards displays the mana/tap cost. Cards added include: Flamewave Invoker; Granite Shard; Storm Spirit; Telim'Tor's Darts; Thornscape Master.
- Added Flying to Storm Spirit.
- Fixed the card name for Telim'Tor's Darts.
- Added the LQ pic urls for these new 15 cards.
2011-08-06 03:24:38 +00:00
jendave
9eb1693b6f - Fixed Haunted Angel.
- Fixed refreshing of static effects, I accidentally removed this when getting rid of the text.
2011-08-06 03:24:32 +00:00
jendave
378cee9ee1 - Creatures coming back onto the battlefield from persist should have other counters reset. 2011-08-06 03:24:26 +00:00
jendave
8a37370e6d created forge.ImageCache2 that should soon replace both ImageCache and ImageUtil. i have to look where in the code images are stored as of now before finally using the new class 2011-08-06 03:24:22 +00:00
jendave
5ae66d59d7 - Changed Exalted code to use separate +1/+1 triggers. 2011-08-06 03:24:16 +00:00
jendave
c30bef2564 - Fixed Time counters not showing up.
- Fixed a bug where creatures wouldn't trigger on attacking a planeswalker.
- Made Exalted a real triggered ability, checked only once after attackers are declared.
2011-08-06 03:24:11 +00:00
jendave
37bd16e366 Fixed an array out of bounds error at line 2787. 2011-08-06 03:24:04 +00:00
jendave
04a37ac5c7 - proper - images shouldn't scale higher than a ratio of 1 anymore. 2011-08-06 03:23:59 +00:00
jendave
e2a7fcde56 Updated main.properties to correct revision. 2011-08-06 03:23:53 +00:00
jendave
ada770f7ac - LQ images shouldn't scale higher than a ratio of 1 anymore.
- AI should consider Bushido now when declaring attackers / blockers.
- Fixed a bug which would sometimes bring up an error report when a static effect left play.
- Fixed Ensnare text.
2011-08-06 03:23:48 +00:00
jendave
2306d4c831 Modified abPump - only needs two if-blocks for tap cost or mana-only cost. If not tap-only, then it sets the mana cost after declaring the ability, instead of using a separate constructor and redefining the entire section of code. 2011-08-06 03:23:39 +00:00
jendave
c4b2368bb8 Added the LQ pic urls for the last 15 cards that were added. 2011-08-06 03:23:35 +00:00
jendave
69e9217220 - Fixed Avalanche riders Text.
- Added Bushido {number} keyword.
- Fixed Hand of Cruelty and Hand of Honor, added a bunch of Bushido cards.
2011-08-06 03:23:30 +00:00
jendave
772c2e60c6 - nantuko84 patch for deck editor OOM problem 2011-08-06 03:23:23 +00:00
jendave
75388e3b9a - Removed "thinking, I just subtracted ...", "just subtracted ...", "Evil hack" and State Effects console output (the former two might have caused a bunch of slowdowns).
- Finished StateBasedEffects -> StaticEffects refactor.
2011-08-06 03:23:17 +00:00
jendave
761e16a1be - Fixed Pongify and Crib Swap (for real this time).
- Removed "number of cards in {player} removed zone:{number}" console output.
2011-08-06 03:23:04 +00:00
jendave
9fc6ca7027 - Fixed Pongify and Crib Swap.
- Got rid of the "Opponent has:{creature}" console output (should improve performance slightly).
- Fixed Avenger of Zendikar.
2011-08-06 03:22:58 +00:00
jendave
4d59c8f491 Added abDamageTgt 2011-08-06 03:22:52 +00:00
jendave
8cc150315b Added DamageSelf and LoseLifeTgtCtrlr to doDrawBack 2011-08-06 03:22:43 +00:00
jendave
3b5ad985b9 Added addDamage(player, source, damage)
Moved LifeLink check and Guilty Conscience check to addDamage
2011-08-06 03:22:38 +00:00
jendave
97d94ca2df - Removed Magellan LAF.
- Added Jace, the Mind Sculptor (buggy?).
2011-08-06 03:22:33 +00:00
jendave
15a76a1ff5 - Added a "Milling = loss condition" option to Quest Mode. 2011-08-06 03:22:26 +00:00
jendave
75f24791e3 - Fixed Overbeing of Myth. 2011-08-06 03:22:21 +00:00
jendave
633b7222af - Fixed the new man lands (they should tap for mana now). 2011-08-06 03:22:17 +00:00
jendave
821ea3d5bf - Made some performance enhancements on some StringBuilder code.
- Fixed planeswalker blocking (thanks Gestalt!)
2011-08-06 03:22:13 +00:00
jendave
8950394361 - Fixed AI targeting for Time Stretch and Time Warp.
- Added some performance enhancement in the addDamage iteration code (probably won't matter much).
2011-08-06 03:22:08 +00:00
jendave
f674a983d3 - Fixed the isEmpty() bug (for Java 1.5 users) 2011-08-06 03:22:02 +00:00
jendave
165a44e7f5 updated the three rarity files in the /res/quest/ folder. It is now up to date with the All Rarities 02-06-2010 archive. 2011-08-06 03:21:57 +00:00
jendave
7f7ddc8c21 Added the missing LQ pic urls. 2011-08-06 03:21:51 +00:00