Commit Graph

24 Commits

Author SHA1 Message Date
solo81@web.de
9cb8cd68d5 Added 16 successfully tested cards.
Card list --> first comment
2010-03-30 22:05:32 +00:00
solo81@web.de
5af82ca96b Added 10 creatures with 'Modular' (DST). All cards have been tested successfully.
Card list --> first comment
2010-03-30 13:10:22 +00:00
solo81@web.de
906e51b371 Updated mtg_todo.dat 2010-03-28 22:54:52 +00:00
wagic.laurent
1408f2ef09 Added a few cards; corrected manavault
#Added Incinerate, raking canopy, Aphetto Vulture, Barishi, Cho-Manno, Revolutionary, Marton Stromgald (thanks to entferno).
2010-03-28 17:20:52 +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
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
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
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
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
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
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
Psyyringe
694efe96b7 Psyringe - even more card cleanup. Added some cards that were mysteriously missing (thanks to bcdiscman for spotting this!). 2010-02-04 20:21:44 +00:00
Psyyringe
ba11d414a5 Psyringe - more card cleanup, added some S99 cards, and some that apparently got lost earlier. 2010-02-03 23:13:35 +00:00
Psyyringe
ce4ac55441 Psyringe - added missing cards from Alpha / Beta / Unlimited to mtg.txt and mtg_todo.dat. Wagic finally supports Black Lotus, the Moxes, Ancestral Recall etc. out of the box now. 2010-02-03 20:55:35 +00:00
Psyyringe
9aa8d37b50 Psyringe - further card cleanup:
- matched card names of flip cards and split cards in _cards.dat and mtg:todo.dat

- removed the now superfluous todo.dat files, the file mtg_todo.dat replaces these.
2010-02-03 19:01:16 +00:00
Psyyringe
388276e3a0 Psyringe - some more card cleanup 2010-02-02 22:51:37 +00:00
Psyyringe
0e746f6a0b Psyringe - some cleanup: fixed misspelled cards and cards that appeared tn mtg.txt as well as mtg_todo.dat.
Also re-enabled the cards which had their names changed to make them work. (Example: the card code for "Vorosh, the Hunter" only works if thecomma is removed from the card's name.) These cards are a maintenance hazard since they a) require changes to _cards.dat if their names are corrected later, b) disrupt translation, and c) cause problems for external tools like MTG Studio which have the correct names in their database. However, only a few cards are affected by this, and I didn't want to remove them because Dr. Solomat has invested quite some effort top make them work. I added comments to these cards in mtg.txt as well as in the respective _cards.dat files to reduce the risk of further maintenance problems for these cards. In any case changing a card's name to make it work should be considered as a makeshift solution at best, please try to prevent it when possible.
2010-02-02 22:21:25 +00:00
Psyyringe
c4043b08a3 Psyringe - removed some cards from mtg_todo.dat which had actually been coded in mtg.txt as well. This means that these cards must have been in some set's _cards.dat and in some set's todo.dat previously. 2010-02-02 03:43:54 +00:00
Psyyringe
aad27bd80d Psyringe - renamed mtg.todo to mtg_todo.dat. This makes the file easier to open. 2010-02-01 22:19:19 +00:00