Commit Graph

3018 Commits

Author SHA1 Message Date
omegablast2002@yahoo.com
37adf143c8 added abilities=split second 2011-02-03 00:04:11 +00:00
omegablast2002@yahoo.com
81f3a4c1d5 added Maelstrom Djinn 2011-02-02 21:54:25 +00:00
omegablast2002@yahoo.com
31a08e5470 added otherworldly journey and mystifying maze 2011-02-02 21:22:40 +00:00
omegablast2002@yahoo.com
e47eb86304 added a return( effect ) to blink... 2011-02-02 21:22:10 +00:00
omegablast2002@yahoo.com
f42227933c added Valakut, the Molten Pinnacle 2011-02-02 20:11:25 +00:00
omegablast2002@yahoo.com
1f047529de added bloodcrazed goblin 2011-02-02 18:50:55 +00:00
omegablast2002@yahoo.com
d675e65de7 added giant shark, inflame 2011-02-02 18:46:41 +00:00
omegablast2002@yahoo.com
6f926b2f3a fixed kor hookmaster 2011-02-02 18:29:20 +00:00
omegablast2002@yahoo.com
00f9b7b2ef a couple of the todo card didnt get removed in last commit 2011-02-02 18:24:02 +00:00
omegablast2002@yahoo.com
840edaf14d added and updated the todo
Crushing Pain
Fatal Blow
Final-Sting Faerie
Opportunist
Witch's Mist
Reciprocate
Retaliation
Giltspire Avenger
doc might find more uses for it then i, just thought i would code some cards to go in with it.

note:pregamebooster failing again...whoever keeps adding new tokens to the card.dat please refrain from doing so as it is breaking a test in test suite...
2011-02-02 18:23:26 +00:00
omegablast2002@yahoo.com
e7fc20bd4c added
this(damaged)
added
targetchooser [damaged] status
added
targetchooser [controllerdamager]
targetchooser [opponentdamager]

basically checks for whos doing damage to who in a match per turn.
2011-02-02 18:22:08 +00:00
guzhenjie1@gmail.com
2993388a6e Fixed the Hellkite Igniter:
text=First strike. -- Deathtouch. -- Whenever a creature an opponent controls is put into a graveyard from the battlefield, you may return target artifact card from your graveyard to your hand.
 ==> 
text=Flying, haste -- {1}{R}: Hellkite Igniter gets +X/+0 until end of turn, where X is the number of 

artifacts you control.
2011-02-02 14:36:52 +00:00
omegablast2002@yahoo.com
76fc1558ec morgue theft was never changed into a flashback card 2011-02-02 08:23:01 +00:00
omegablast2002@yahoo.com
ce8c6e69b3 ray of revelations was a flashback card not using flashback cost... 2011-02-02 08:16:50 +00:00
omegablast2002@yahoo.com
2ece777a11 stylistic change to my previous commit, has absolutely no effect on the code, just the way it looks. 2011-02-02 00:00:57 +00:00
omegablast2002@yahoo.com
a283c89059 Captivating vampire had some typos. 2011-02-01 23:53:22 +00:00
wagic.jeck
8c18d155b8 Jeck - Fix for issue 580. StyleManager initialization was causing an infinite loop. Also started documentation for OptionItem. 2011-02-01 19:11:43 +00:00
omegablast2002@yahoo.com
ea285e673e 2 changes here, first AManaProducer abilities will no longer use the stack as per MTG rules, for the most part this worked fine however genericactivedability does not use the reactto click put in place in the mana producer...so an ability which contained a cost other then just {t} was actually useing the stack instead in the fireability function.
2nd change is a bug fix, i noticed that cards which were mana producers which contained a cost but did not contain a {t}: would still tap at first i thought this was graphical, however after further reveiw i noticed that the card was indeed truely tapping...this was happening becuase amaproducer had a defualt of 1 for doTap/tap...and since genericactived ability does not go through the motions of setting the true manaproducers "doTap" which can be witnessed by stepping through the processes...it was defualting to a tap, even tho the cost might have just be {1}:add{ ....
2011-02-01 14:24:41 +00:00
wrenczes@gmail.com
b6dcb0dcd3 Fixed some formatting issues that cause compile issues on bsd. 2011-02-01 11:54:38 +00:00
wrenczes@gmail.com
b42dbf0655 VS2008 project changes to add the boost directory inclusion. 2011-02-01 10:39:33 +00:00
wrenczes@gmail.com
76cba56a1c Resuming on my threading support work with the card caching mechanism. This change unfortunately touches quite a few files, but I needed to get it out of the way before things got out of hand: one significant hurdle is the assumed lifetime of a JQuad pointer. In a single threaded model, the life time of the pointer is clear: you fetch it into the cache, the cache makes room, you use the pointer immediately. In a multithreaded context however, it's unsafe, as the drawing thread can request a few JQuads, and the cache operating on a separate thread can potentially bounce a JQuad out of the cache before the draw routine is done using it, which ends up in an access violation when you attempt to draw using an invalidated quad pointer. To prevent this, the bulk of this change swaps out the use of naked JQuad* pointers in the code with a JQuadPtr, which is basically a typedef to a boost shared_ptr<JQuad>.
This btw points out another circular dependancy between the texture and the JQuad - a texture owns a bunch of JQuads, yet the renderer uses JQuads and always assumes that the texture is valid.  We're going to need to add more defensiveness to JGE to protect against this.

Other changes in this check-in:  WResourceManager doesn't derive from JResourceManager anymore.  It actually didn't require anything from the base, so I killed the dependency.  Also cleaned up the notion of a WTrackedQuad in the WCachedResource - it didn't need a separate class, just a better container.

I've build this & tested against PSP, win, linux, QT (linux).  I haven't tried against iOS and QT Win, or Maemo.  If these other platforms are broken, I apologize in advance! - I'm hoping it should be fairly simple to put them back into play.
2011-02-01 10:37:21 +00:00
wrenczes
0b2f83c499 Adding an include path to Boost. 2011-02-01 09:56:05 +00:00
wrenczes@gmail.com
cfa7bc748a More logging calls to my threading header. 2011-02-01 05:58:19 +00:00
wrenczes@gmail.com
9085b2a0e1 Some minor reformatting, JLOG instrumentation of the zip file loading. 2011-02-01 05:53:19 +00:00
wrenczes@gmail.com
4d15756f76 LF style eof property re-applied. 2011-02-01 05:51:47 +00:00
techdragon.nguyen@gmail.com
d9facfb73b * moved deck mana display code into separate method.
* since I rescaled the images down to 50%, I moved the display to the upper right
   info box on the last line to the right of the "# of games played" information.
   Things look like it will fit as long as the number of games is under 1000
2011-02-01 00:48:23 +00:00
techdragon.nguyen@gmail.com
6d50ddcda5 * adjusted mana icons to be 60% of the original size. The rest of the game apparently resizes the mana icons to 40% but
that makes it look a little blurred when viewed that way on the deck selection screen.
* adjusted debug message condition for the mana display
2011-01-31 16:52:01 +00:00
guzhenjie1@gmail.com
a2939cc93f Fixed the Wickerbough Elder:
(Wickerbough Elder enters the battlefield with a -1/-1 counter on it.)

auto=counter(-1/-1,2)
 ==> 
auto=counter(-1/-1,1)
2011-01-31 15:18:54 +00:00
linshier
6bde3d0ee6 moved the translator init code earlier; added some translation support for the code of r2517 and r2907; updated some Chinese translation. 2011-01-31 14:21:46 +00:00
solo81@web.de
6bf8a1209d Fixed several cards (reported by rawsugar):
Kamahl, Fist of Krosa
Mayael's Aria
Peat Bog
Vigor
Wash Out
Wickerbough Elder
2011-01-31 14:01:51 +00:00
omegablast2002@yahoo.com
7e21105460 fixed the 2 avatars, they were missing part of the secondary keyword for other restrictions checking opponent field. 2011-01-31 13:27:27 +00:00
omegablast2002@yahoo.com
1149f04df6 fixed a reported issue with regenerate...chooseBlockers appears as if it was never safegaurded at all...tho its understandable, wagic only made it "look" like ai was being offered a chance to interupt...in reality ai used to "check if it can interupt" then immedately "cancel interupt offer"...now its given a chance to interupt and cast instants...over looked in chooseblockers. 2011-01-31 13:02:40 +00:00
guzhenjie1@gmail.com
378fe1c600 Fixed the following cards reported by ph34rbot in forum:
1. Black Sun's Zenith
2. Blightwidow
3. Spiraling Duelist
4. Sword of the Meek
5. Vedalken Anatomist
6. White Sun's Zenith
7. Fixed Battle cry of following cards:
Accorder Paladin
Goblin Wardriver
Kuldotha Ringleader
Loxodon Partisan
Signal Pest
Hero of Bladehold
Hero of Oxida Ridge
Victory's Herald
2011-01-31 13:00:22 +00:00
techdragon.nguyen@gmail.com
fdd55dc22e added more debug information to ensure correct string length of MANA meta data 2011-01-31 10:30:20 +00:00
wagic.jeck
c68a989915 Jeck - Begun documentation for the WGui classes. Also updated doxygen config to support STL. 2011-01-31 10:24:06 +00:00
techdragon.nguyen@gmail.com
8af5870d48 * Added new options parameter. "SaveDetailedDeckInfo". This will force the system to save all
deck files in long format.  This is not configurable from the game.  It must be set manually
     inside options.txt.
     ie.  saveDetailedDeckInfo=1

* added extra debug information (line number inside text file) when card parser fails to recognize a line.
    - modified return value from "processConfLine()" to return 0 only when a true error occurs and print out
         "MTGDeck: Bad Line:
         [<line no>]: <line with error>"
    - processConfLine will now return 1 for lines starting with "#".  Previously it returned 0 which is incorrect
         as comments should not be considered as errors.

* removed DeckMetaDataList class from code.  This was duplicating the DeckMetaData storage in DeckManager
* new feature for deck selection screens.
   - player decks will now have an indication of what mana color it consists of.
   - Ai decks will show symbols once the player has played against the AI deck at least once.
   -- This is made possible with a new meta data inside each deck file.
        MANA:<string representing color switches - 0/1 >
2011-01-31 10:04:18 +00:00
techdragon.nguyen@gmail.com
2973158a62 added new utility to check if a file exists on system. 2011-01-31 08:53:06 +00:00
techdragon.nguyen@gmail.com
6ddaf8b74b removed draw method from GameObserver as it is no longer used since the refactor of the
player mulligan code.
2011-01-31 08:38:14 +00:00
solo81@web.de
6a5eeff8dd Added Avatar of Might. 2011-01-30 22:16:48 +00:00
solo81@web.de
015fdb7bfa Fixed Jackal Pup. 2011-01-30 21:17:48 +00:00
wrenczes@gmail.com
6675a7da31 Implemented a lazy load pattern for the deck stats - when the DeckMenu is displaying decks, it calls LoadStats() for only the ones visible in the list. This helps reduces the lag that occurs each time we attempt to load all the AI decks during match selection.
This still could be improved - DeckMetaData's constructor loads an MTGDeck object to parse out the name of a deck from its file.  This means that we crack open 106 files on the first attempt to show the list of opponent decks. I started optimizing this, but reverted, as the list itself is sorted alphabetically.  Currently, with these mods, it's still taking 4 1/2 seconds on my psp to load the opponent list on the first go around.

While at it, did some cleanup - removed the need for passing around a player pointer in some of the DeckStat functions, etc.
2011-01-30 13:06:21 +00:00
wagic.jeck
ebc7f93682 Jeck - Fixed icon indirection in Doxyfile. 2011-01-30 11:24:26 +00:00
wagic.jeck
e0f7bf26d8 Jeck - First doxygen commit, basic information on WFilter classes. Also added filter price adjustment for some of the newer basic abilities (the CANTLOSE varieties now cost more to filter). 2011-01-30 11:14:36 +00:00
solo81@web.de
329b0cf929 Added 9 cards based on rev2979.
Cloak and Dagger
Dragon Breath
Dragon Fangs
Dragon Scales
Dragon Shadow
Dragon Wings
Obsidian Battle-Axe
Sword the Meek
Veteran's Armaments
2011-01-30 10:39:16 +00:00
guzhenjie1@gmail.com
f5cfe6a3a9 Fixed Psychosis Crawler:
mana={6}
 ==> 
mana={5}
2011-01-30 09:36:05 +00:00
guzhenjie1@gmail.com
ae40e31d04 Fixed the following cards:
name=Contested Warzone
 ==> 
name=Contested War Zone

text={T}: Add {1} to your mana pool. -- {1}: Inkmoth Nexus becomes a 1/1 Blinkmoth artifact creature with flying and infect until end of turn. It's still a land.
 ==> 
text=Whenever a creature deals combat damage to you, that creature's controller gains control of Contested War Zone. -- {T}: Add {1} to your mana pool. -- {1}, {T}: Attacking creatures get +1/+0 until end of turn.

In MBS cards: 
primitive=Contested Warzone
 ==> 
primitive=Contested War Zone

[card]
primitive=Spine of Ish Sah
id=214069
rarity=R
[/card]
 ==> 
[card]
primitive=Spine of Ish Sah
id=214076
rarity=R
[/card]
2011-01-30 08:07:01 +00:00
omegablast2002@yahoo.com
c4ffc214ab moved token creator under aequip so i can do the same fix to livingweapon as i did for new target...
also refactored it a bit to remove the livingweapon and battleready copy paste code.
2011-01-30 00:01:57 +00:00
omegablast2002@yahoo.com
50aa62675e adding life loss event sending to damage from creature sources in combat. 2011-01-29 22:32:34 +00:00
omegablast2002@yahoo.com
4103a8964f fixed an oversight and an error...in lifelostthisturn for a player, if the life gain was less then 0 then i want to ADD the abs pos to the amount, not remove it...and damage from creatures is considered lifelost... 2011-01-29 22:21:18 +00:00
omegablast2002@yahoo.com
853b8ea5c6 fixed gravetitan bug reported, added new keyword "retarget" as another support for newtarget...
reworked the handling of new target...auras and equipments can not be treated the same...doing so allowed the player to then use the equip function of the card and gain a double bonus. now i call directly on the equip function to do the equiping so that it works with its own function to add the effects. keeping a person from gaining double bonus.
2011-01-29 21:58:29 +00:00