Commit Graph

3159 Commits

Author SHA1 Message Date
solo81@web.de e5874d1b89 Added several successfully tested cards based on rev1981.
You can find a list of those cards in the first comment.
2010-03-24 23:02:14 +00:00
solo81@web.de 07361b19f5 This is another patch by the great newcomer salmelo.
Salmelo:"Here is another patch, this time adding counters to target specifications, so now you should be able to target things with counters on them as well as use counters for criterion for Lord, aslongas, foreach, etc.
I had to muddle the syntax a little bit though, so heres an example, taken from gwafa hazid, whom I added to the primitives to test with.

lord(creature[counter{0/0.1.Bribe}]|opponentbattlefield) cantattack

obviously the part we are worried about is the counter part, note that those are curly braces { } and periods . instead of parentheses ( ) and commas , this is so that it does not conflict with how targets are normally parsed, which it did before I changed those. Counters still work the same way everywhere else though, you only need to use { } and periods in target code.

Also, you can use counter{any} to specify that it should look for things with any kind of counter on them, not just specific ones, this is used by Kulrath Knight, for example.

I also consolidated most of the code used to parse counter specifications, as it seemed unnecessary duplicating it three times.

Anyway, aside from this major addition, I also added Gwafa Hazid, Profiteer; and Kulrath Knight to the primitives, as well as a test file for each to make sure it worked.

Hopefully y'all will find this patch useful.

Oh, and I should point out that it only works with one Counter in the target specification, i imagine if you put two in the same one then it would either overwrite the first with the second or merge them into some sort of hybrid counter monstrosity, either way, I wouldn't suggest it. "

Cards with vanishing are also codable now. Have a look at the comments for explanation.

daily_build.
2010-03-24 21:15:34 +00:00
solo81@web.de 68d8da296a Added 6 successfully tested cards.
"@movedTo" in combination with "autograveyard" WORKS!" Thanks to Abrasax!

Fixed 18 cards, 1 of them is Rancor. Now works 100%, so issue311 is fixed.

You find a list of all added and fixed cards in the first comment.
2010-03-23 20:54:30 +00:00
solo81@web.de d924881466 Updated mtg_todo.dat 2010-03-23 16:45:59 +00:00
solo81@web.de dfb52368c4 Fixed issue188.
Just changed the the phase name in the auto line from "@each opponent upkeep" to "@each targetController upkeep". Works.
2010-03-23 00:07:28 +00:00
solo81@web.de 49b00c7419 Removed Carpet of Flowers.
This card cannot be coded for now.
2010-03-22 23:53:33 +00:00
solo81@web.de 81ca43d313 Added 36 successfully tested cards based on rev1971.
Fixed 7 cards based on rev1971.
I posted a list of all added and all fixed cards in the first comment.
2010-03-22 23:22:27 +00:00
solo81@web.de 3f14452a7f Added most Spikes.
This update is based on rev1971 and successful tests.
2010-03-22 17:16:00 +00:00
solo81@web.de 085a86d551 Added all Fungi.
This update is based on rev1971 and successful tests.
2010-03-22 16:52:08 +00:00
wagic.the.homebrew@gmail.com 22a35d2265 Erwan
- Added remove/add counters as a cost, patch by Salmelo, thanks man!. See primitives/mtg.txt -> Thallid to see how it works
- added test for i286 by salmelo
- added basic display for counters (this needs improvement) by salmelo
2010-03-22 04:26:42 +00:00
wagic.the.homebrew@gmail.com 99db31fe9d Erwan
-Kjeldoran_frostbeast fix i167 by salmelo
2010-03-22 03:13:40 +00:00
wagic.the.homebrew@gmail.com 731ef290ea Erwan
-Tiny fix for Roterothopter (1/0 instead of 2/0)
2010-03-14 07:57:24 +00:00
wagic.the.homebrew@gmail.com a04c0eff00 Erwan
-fix issue 375
2010-03-04 13:15:24 +00:00
wagic.the.homebrew@gmail.com d1d465c50f Erwan
- added test for issue 335
2010-03-04 13:09:43 +00:00
wagic.the.homebrew@gmail.com 01135b34b7 Erwan
-fix with fog elemental
2010-03-04 12:23:19 +00:00
jean.chalard eaf944fa62 J :
* Fix the name of a file that was wrong.
2010-03-03 03:09:45 +00:00
jean.chalard ea1d8c6ebe J :
* Change the image so as for it to be usable on PSP in its entirety.
  No code uses the part this update is changing at the moment.
2010-02-27 16:52:39 +00:00
Psyyringe 2fa4e9a1d3 Psyringe - fixed a missing activation cost and a mistyped characteristic, thanks to kmtzz for the bug reports. :) 2010-02-27 14:13:48 +00:00
Psyyringe 3ac6bc3ec3 Psyringe - small fix to Stoneforge Mystic, thanks to arcaneous for the bug report. This closes issue 356. 2010-02-22 06:11:01 +00:00
wagic.jeck 25e6906149 Jeck - More deck editor fixes, linked in prior coded subtype filter. 2010-02-19 21:54:39 +00:00
wagic.jeck afffd4509f Jeck - fixed issue 354, cleaned up mixed boosters, fixed a few issues with pack loading (slot pools weren't working), fixed TSP boosters to use 'S' rarity, removed some unused code. 2010-02-19 20:10:30 +00:00
Psyyringe 8f130856da Psyringe - fixed Book of Rass (thanks to Crodley for the bug report) 2010-02-17 11:17:49 +00:00
wagic.jeck 49a6ee18fc Jeck - "Trophy Room" button now uses generic image. I'm not certain I like the way this looks, but it's necessary for internationalization. 2010-02-17 04:53:06 +00:00
wagic.the.homebrew@gmail.com d5be045859 Erwan
- Adding (dead) code for Story mode. This is FAR from being ready so it's deactivated in the code. I just don't want to create a branch (I'm lazy) and I'm fed up with synching. My Goal is to have a tutorial ready with this for the release after this one. If you want to test it (Note: the sample story is not interesting at ALL), just look for "Story mode" and uncomment (3 occurrences). PSP Or Linux need additions to the Makefile...
2010-02-16 10:55:03 +00:00
Psyyringe 4911ee05a9 Psringe - fixed mantle of Leadership (thanks to arcaneous for bug report and solution) 2010-02-11 22:43:02 +00:00
wagic.jeck ab34fc16f9 Jeck - Added custom booster packs (see miki), numerous small fixes. Once we hit feature-freeze I'll be reviewing this stuff in depth, as again there's likely a lot of room for cleaning... just wanted to get it in first :).
I cut some bits out that weren't ready for SVN, hopefully I've committed everything correctly.
2010-02-11 18:32:44 +00:00
solo81@web.de 103a3d2822 Fixed issue323, issue327 and issue 329. 2010-02-11 18:22:18 +00:00
Psyyringe 1e5acc6ade Psyringe - added some Metadata (thanks to Niegen for reporting the sets which lacked it). BRB and BTD have been added to the "Duel" block, which is questionable, but imho better than leaving them without a block. 2010-02-11 10:39:18 +00:00
Psyyringe 3b7281cfe8 Psyringe - fixed bugs with Yavimaya Dryad (thanks PrimsSoup), Ogre Arsonist and Crosis's Charm (thanks Niegen), and added a missing text= identifier to "Call of the Herd" (in mtg_todo.dat) 2010-02-11 07:54:09 +00:00
solo81@web.de 64cc648179 Fixed Mercenary Knight. 2010-02-10 16:40:44 +00:00
Psyyringe 8de2d4a892 Psyringe - bugfix to r1843 (one text= identifier was missing). Also fixed added one missing "auto=trample" to Vorrac battlehorns. Cosmetic change: Reordered the lines added in r1844 to keep current order (anything derived from the card's rules text gets written before the text= line) consistent. That's not compulsory by any means, I just like the efficiency of not having to look at anything below the text= line when checking / debugging / updating cards. :) 2010-02-09 01:46:55 +00:00
wagic.jeck 69967b6d9c Jeck - Added 7 primitives with the "can't be blocked by more than one blocker" ability: Charging Rhino, Familiar Ground, "Huang Zhong, Shu General", Ironhoof Ox, Norwood Riders, Vorrac Battlehorns, "Yuan Shao, the indecisive". 2010-02-09 01:17:02 +00:00
Psyyringe d84ce36c55 Psyringe - complete wording update for all cards in mtg.txt and mtg_todo.dat. As a side effect, there shouldn't be any non-basic-ASCII characters left in these files anymore.
Note: I replaced paragraphs (which Wagic can't display at the moment) with the sequence " -- ". If that's not desired, they can be easily replaced, but I think they improve readability. Previously, paragraphs where transcribed into slightly larger spaces, and I found that slightly confusing when reading the texts in-game.
2010-02-09 00:28:20 +00:00
wagic.jeck 907c0b7b5d Jeck - Test for Oneblocker ability, r1837. 2010-02-08 18:32:42 +00:00
wagic.jeck b348ab5d24 Jeck - Added and tested "oneblocker" ability, which allows for cards that "can't be blocked by more than one creature.". I've put in Stalking Tiger (I think... these primitives are cool! I just added the prim and all of a sudden it was in 10E), but this should also add Charging Rhino, Familiar Ground, "Huang Zhong, Shu General", Ironhoof Ox, Krosan Vorine, Norwood Riders, Vorrac Battlehorns, "Yuan Shao, the indecisive".
Test and more cards (the ones I can figure out how to do) forthcoming.
2010-02-08 18:18:44 +00:00
wagic.jeck 8c187f8d12 Jeck - Updated some metadata. Gave a few sets an appropriate block name. 2010-02-08 10:08:50 +00:00
wagic.jeck 83e2b04547 Jeck - Added full filtering system to deck editor and shop. I've spent 24hours on pure debugging, but there are likely a couple bugs I've missed. So please, if you find something, make an issue of it! :P Also split OptionItem classes into separate files, and added support for mixed-set boosters (which I think are way, way cool). 2010-02-08 01:03:07 +00:00
Psyyringe 64d592f588 Psyringe - small addition to r1823: fixed 4 bugs in WWK cards (which I hadn't checked for the previous update, now these are checked too). 2010-02-07 22:02:03 +00:00
Psyyringe 70ac1e5d52 Psyringe - Checked the manacost, color, type, subtype, power, toughness, and loyalty data of all cards in mtg.txt and mtg_todo.dat, and did about 200 bugfixes, optimizations, and cosmetic changes. All cards in both files should now have correct values for the keywords mentioned above.
Note: I checked all changes manually, so in the cases where the value *has* to be different for the card to work (e.g.Covetous Dragon), I left the values as they were. In these cases I added a comment to the card code which notes why the values need to be different, so that no one else breaks the card by "correcting" them.

Note 2: You may have noticed that I used a fixed sequence of lines for all cards. That was a byproduct of the file unification process, but I think it's also rather useful. Above the "text=" line are the lines that we need to code (abilities=, target=, auto= etc.). Below the "text=" line are the fixed values (mana=, type=, power= etc.) which we only need to touch if either the card gets errata'd, or we need to do some tricky coding (e.g. Covetous Dragon). So, in other words, everything below the "text=" line should be okay now in both files, and doesn't need to be checked when implementing or debugging a card.
2010-02-07 20:57:51 +00:00
Psyyringe af585ab2d6 Psyringe - fixed a bug with Sun Quan, thanks to coolguy824 for the bug report. 2010-02-07 09:41:09 +00:00
Psyyringe 26bcdb11d6 Psyringe - removed a wrong "fix" 2010-02-06 22:10:45 +00:00
Psyyringe 55ba75d348 Psyringe - compared the complete code of all cards that were coded in at least two different ways prior to r1774. Fixed a number of bugs. This closes issue 204. 2010-02-06 22:09:20 +00:00
wagic.the.homebrew@gmail.com b645f1cff4 Erwan
- remove Kor Haven and other incorrectly coded "prevent damage" cards
2010-02-06 08:23:32 +00:00
wagic.the.homebrew@gmail.com 21eb34d0fa Erwan
-fix Scourglass. I'm not happy with the fix but there's a huge limitation with the parser here and I'm too lazy to deal with it currently...
2010-02-06 08:04:12 +00:00
wagic.the.homebrew@gmail.com d50aecdde4 Erwan
-fix issue related to drawing card (underworld dreams)
2010-02-06 07:32:59 +00:00
wagic.the.homebrew@gmail.com cc1d479070 Erwan
-fix goblin gardener
-fix slithering shade
2010-02-06 06:35:09 +00:00
wagic.the.homebrew@gmail.com 24b4bf2b8a Erwan
- Reclaim->Instant
2010-02-06 04:37:25 +00:00
wagic.jeck 709a1ae237 Jeck - Gah, missed one of these earlier. 2010-02-06 03:13:05 +00:00
solo81@web.de 8484432a9c Fixed some cards. 2010-02-05 19:18:46 +00:00
jean.chalard 3bb91bdd94 J :
* 30sec tool to spot unsupported characters
2010-02-05 12:48:12 +00:00