Commit Graph

53 Commits

Author SHA1 Message Date
omegablast2002@yahoo.com
3a40050794 remade daily buid/eboot 2010-08-29 00:25:02 +00:00
omegablast2002@yahoo.com
5f27b749ac daily eboot/templete 2010-08-28 20:20:03 +00:00
solo81@web.de
704a3018fa Added 23 cards based on rev2185. (Card list ---> first comment)
Added tests for manacost changers and TRANSFORM.
2010-08-17 23:22:00 +00:00
omegablast2002@yahoo.com
251684136c daily build/included daily build eboot 2010-08-17 20:12:38 +00:00
wagic.laurent
8fb8dc2b69 Laurent - small correction to ARC - Daily build 2010-08-14 00:10:56 +00:00
wagic.laurent
54943eaf8f Laurent - added ARC, daily build, borderline.txt, modified mtg.txt added scheme_todo.dat
Added ARC (although the set does not have official abbreviation. I putted the scheme in a separate todo.dat, mainly because I'm lazy of adding all the scheme alphabetically ordered into the todo.dat. Some cards do not have official ID now I've used ID from the numbering sequence of ARC that were unusued, will provide a full list later for tracking purpose.
modified the m11 cards.dat name, otherwise it does not load correctly.
moved some cards from mtg.txt into a "borderline.txt", probably some others should be added...
Daily build
2010-08-11 22:15:10 +00:00
wagic.the.homebrew@gmail.com
e224223a43 Erwan
- daily build
2010-08-01 05:33:15 +00:00
wagic.the.homebrew@gmail.com
e98eda0028 Erwan
- daily build.
2010-05-18 14:04:08 +00:00
salmelo16
4ee2f26e7b Fix bug with upcost and countercosts, daily build. 2010-04-27 04:57:13 +00:00
salmelo16
aa5f091568 Fix bug with the interaction between thisforeach and upcost that made the cost essentially unpayable. 2010-04-24 14:29:24 +00:00
salmelo16
3339b6b6a8 Add Upkeep costs to parser.
upcost[cost[,phase]] effect

cost is any cost that you might use for an auto line, including sacrifice and counters, phase is optional and defaults to upkeep, phase can have an optional prefix next which will make it so you only need to pay the cost once.

Effect is any effect that can go in an auto line and only goes off if cost is not paid during phase. For example, force of nature would be: auto=upcost[{G}{G}{G}{G}] damage:4 controller.
goblin patrol would have: auto=upcost[{R},next upkeep] moveto(mygraveyard)
2010-04-21 01:56:44 +00:00
salmelo16
be1a52f660 Update this(X) so that it works with spells as well as activated abilities. Also fixed a bug were this(X) did not work with targeting.
Adds Martial Coup
2010-04-17 19:45:57 +00:00
salmelo16
c8b573d029 fix changes from r2003 so that they will work with multiple effects through &&. 2010-04-15 00:00:11 +00:00
salmelo16
74d2bbf324 Added X to the filters for this() and thisforeach(), for use with {X} costed activated abilities, although it should theoretically work with spells as well if necessary. 2010-04-14 23:42:47 +00:00
salmelo16
73b494c32d Fix bug where new this() ability continuous effects would not deactivate if the condition became false after having already turned true. 2010-04-12 16:27:10 +00:00
salmelo16
9cf4c7587b added ability to have triggered abilities target based on the event that triggered, bramblewood paragon, graft, etc.
use "trigger" inside target code of triggered ability.
does not work with @each and @next.
@damaged can use trigger[to] and trigger[from] to specify the target or source of the damage, respectively.

Adds cards:
Aether Flash
Bramblewood Paragon
In the Web of War
Juniper Order Ranger
Mortuary
Primal Forcemage
Fungus Sliver
Simic Initiate

as well as a test file for feral hydra, missing from my last commit.
and daily build.
2010-04-03 23:50:39 +00:00
salmelo16
3a61eba007 allow to use X as the number of counters. daily build.
Added feral hydra.
2010-03-30 22:34:25 +00:00
salmelo16
4d5eeead5d daily build 2010-03-28 02:34:50 +00:00
solo81@web.de
a2987f7b0e This is another patch by salmelo.
It fixes several problems with the newly introduced improvements concerning Counters.

Added 8 successfully tested cards, 1 of them is DARK DEPTHS!

Daily_Build update

Complete list in the first comment.
2010-03-25 23:28:55 +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
wagic.the.homebrew@gmail.com
61ddbf19ed erwan
- daily build
2010-03-22 11:19:38 +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
e273ade745 Erwan
-daily build (1942)
2010-02-28 13:35:52 +00:00
wagic.jeck
4fd38766b1 Jeck - Daily build & fix to r1895. Now the deck editor does what I thought it did. 2010-02-17 15:16:59 +00:00
wagic.the.homebrew@gmail.com
391c608b1a Erwan
- daily build (0.11.0 Alpha)
2010-02-16 11:16:13 +00:00
wagic.jeck
513795b316 Jeck - Fix for booster pack purchases not saving. 2010-02-08 02:16:39 +00:00
wagic.jeck
bdf958de34 Jeck - Daily build, fixed alignment issue in shop prices. 2010-02-08 01:35:16 +00:00
wagic.jeck
46215a2bc0 Jeck - Updated the WGui/OptionItem classes to all use ReadButton. Also updated daily build. 2010-02-01 20:58:52 +00:00
wagic.the.homebrew@gmail.com
e3d98f23f9 Erwan
- fix issue 308
- daily build
2010-01-31 06:24:28 +00:00
wagic.the.homebrew@gmail.com
54969a2179 Erwan
- Fix an issue with "becomes ueot". See blinkmoth nexus in DST
- Daily build
2010-01-30 12:58:49 +00:00
wagic.the.homebrew@gmail.com
feb1d27ebb Erwan
- daily build
2010-01-07 12:01:58 +00:00
wagic.jeck
bd0e139e6d Jeck - Minor update to trophy room, moved metadata into cards.dat
* updated daily build
* Card spoiler now sorts by collector's number.
* Metadata looks for "[m" (for speed reasons), I've been using "[meta]" in files. No sets currently use metadata.
2010-01-05 23:32:31 +00:00
wagic.the.homebrew@gmail.com
444706f316 Erwan
-daily build windows
2009-12-13 13:43:32 +00:00
wagic.the.homebrew@gmail.com
99654c06c4 Erwan
- (exe) daily build
2009-12-12 12:26:04 +00:00
wagic.jeck
70411f025f Jeck - Trophy room added, triangle is now dedicated alt-render toggle. Hopefully I'm not forgetting anything... 2009-12-12 10:23:28 +00:00
wagic.the.homebrew@gmail.com
71a05f48cd Erwan
-Daily build for windows
2009-12-10 14:00:54 +00:00
wagic.jeck
8b8abafe59 Jeck - Updated daily build to r1389. 2009-12-03 10:00:24 +00:00
wagic.the.homebrew@gmail.com
18ef910e6a Erwan
-"daily build" - Note: We recently switched to VC2008, so you might need to download the VC2008 runtimes
2009-10-24 14:32:53 +00:00
wagic.the.homebrew@gmail.com
46ef86b9d8 Erwan
- some performance improvements
- "daily build". The daily build was compiled in "profile" mode. If you have problems running the exe, or problems with Visual Studio please let me know
2009-10-08 12:17:07 +00:00
wagic.the.homebrew@gmail.com
9704ee4a24 Erwan
- opponentshroud small bug fix
- added "kicker=" line and "kicker" auto keyword. See Vines of Vastwood (ZEN) for an example. WARNING: kicker= line has to be AFTER "mana=" line
- daily build
2009-09-27 09:53:29 +00:00
wagic.the.homebrew@gmail.com
cbacfdbfd7 Erwan
- Added "X" cost for token multiplier
-"daily" build
2009-09-27 07:15:23 +00:00
wagic.the.homebrew@gmail.com
a3721e2454 Erwan
-"daily" build
2009-09-26 06:04:57 +00:00
wagic.the.homebrew@gmail.com
8915fe2807 Erwan
- "daily" build
2009-09-25 17:15:40 +00:00
wagic.the.homebrew@gmail.com
eabb99c675 Erwan
- fix armadillo cloak test + fix damage assignation step. A side effect is that when clicking on "Go", the game goes to the Damage step instead of going to the combat step. I believe this is acceptable but let me know if this feels weird when playing
- daily build
2009-09-25 13:38:08 +00:00
wagic.the.homebrew@gmail.com
433897bf38 Erwan - daily build based on rev 902 2009-09-22 14:53:12 +00:00
wagic.jeck
7510ee165f Jeck - Daily build, deck renaming, small keypad bugfix, profileFile() fix, proposed new iconspsp.png.
* Decks now support naming and renaming. Also added a "Switch decks without saving" option.
 * Removed unused static const char * menuTexts, from old 6-deck limited system
 * Keypad didn't display correctly when not given a title, and was never destructed. Fixed.
 * profileFile() default behavior was to fall back to RESPATH/player. Fixed.
 * New iconspsp.png, updated look to seem like PSP buttons, added some extra (unused) button icons.
2009-09-22 02:47:48 +00:00
wagic.jeck
1ba7f108b0 Jeck - Cache is using map<> again. The implementation is cleaner and seems a little faster. 2009-09-19 23:20:43 +00:00
wagic.jeck
0d3686e65a Jeck - Cache fix, booster duplicate fix.
* Restored OptionItem saving fix.
 * Booster duplicate replacement was picking random cards from the wrong set. My fault, but I've fixed it :)
 * The problem with cache had nothing to do with memory fragmentation, but I've switched to an array rather than map<> just in case. The actual issue was that in GameStateDeckViewer, I'd given the cache unlimited space, thinking that AttemptNew would recover from any bad_allocs. Unfortunately, the image loading routines and similar stuff called by various implementations of WResource::Attempt() could fail halfway through, leaking memory. 

The temporary solution is to set a proper limit (8000000 px, more or less) and (in case we still run out of memory) test to make certain CACHE_SPACE_RESERVED can be malloc'd/free'd. The proper solution would be to keep byte-perfect records of memory used (right now we're kinda fuzzy-- we track pixels per image and bytes per sound, but not the space for jquads or other incidentals) instead of testing a malloc, and potentially cleaning up all calls inside of Attempt() so they fail without leaks. That's what I'm working on now.

Still, it's nice to have identified the problem. This version of the cache should be fully functional, it's just a bit inelegant.
2009-09-19 21:11:35 +00:00
wagic.jeck
8ba34dafca Jeck - WResourceManager / Cache should now be leak free. Demo mode still crashes around EnstackBlocker. 2009-09-18 01:20:46 +00:00
wagic.the.homebrew@gmail.com
c80245b3e8 Erwan - daily build template.exe 2009-09-14 14:09:01 +00:00