Commit Graph

3593 Commits

Author SHA1 Message Date
wagic.the.homebrew
794be140ce - graphical representation of counters. see graphics/counters/quest.jpg for an example
- rewrote some code dealing with text formatting for a card when rendering in text mode. I could swear my code has been reverted. If somebody has good reason to believe we should re-process the string formatting on every frame, please let me now. I believe my change can help rendering speed of text mode a lot.
- counters change to vector instead of array
2011-07-29 17:43:45 +00:00
wagic.the.homebrew
9631171ad1 Cleanup of some Trigger code 2011-07-28 13:51:42 +00:00
omegablast2002@yahoo.com
2e5222bf5d fixed an issue with @discarded...the trigger would only fire once becuase i was not passing the constructors variable for once to the object.... 2011-07-28 11:30:37 +00:00
wagic.the.homebrew
ef5e011e23 - Removed "isClone" flag. This flag was error prone. The "core" classes now have decent copy constructors, and ideally long term we should create copy constructors for the abilities that have additional pointers in them.
-- The test suite passes but this is a big change. I might have introduced some memory leaks or bugs. I might have fixed some bugs, too
2011-07-27 14:31:27 +00:00
omegablast2002@yahoo.com
a26125ee4c readded arbor elfs ability. 2011-07-26 17:23:01 +00:00
omegablast2002@yahoo.com
8bb53ff12f added incrementing of "damageCount" the variable that tracks the damage dealt to a player, to "infect" damaging...this is a rules correction, a creature with "infect" still "deals damage"...it just does it differently.
this fixes an issue with infect creatures not triggering "bloodthirst" ...all other cases this was working correctly, bloodthirst however checks the damageCount.....
2011-07-26 16:56:01 +00:00
omegablast2002@yahoo.com
c1ac119af5 fixed dark depths with while tag. 2011-07-26 16:39:50 +00:00
omegablast2002@yahoo.com
11473e0fb5 added "while" tag to this's i added it to lords a while ago to fix a similar issue where the lords were taking on the "oneshot" variable of their abilities in cases where you really didn't want them too...
its basically an over ride....
2011-07-26 16:39:12 +00:00
omegablast2002@yahoo.com
1f049bdd0c caribou range fixed...typo in the cost...please test cards before adding them, it is very obvious that cards are being added without so much as testing their abilities when i have done 6 typo fixes since release...typos that deemed the card completely un-usable...such as caribou range which would sacrifice the enchantment if you wanted to gain a life. 2011-07-26 15:29:02 +00:00
omegablast2002@yahoo.com
8c99022deb corrected fresh meat, tho it still has a problem...currently we don't keep a count of token creatures that went to the grave...i might look into it later on, tho very very very few cards actually care about this....so if it requires too much code impact, then it will remain simply counting the cards which exist in the grave. 2011-07-26 15:22:42 +00:00
omegablast2002@yahoo.com
c52b8b6983 Reveillark fix...since apparently everyone is reporting this....
if you are going to use the trigger + ability from trigger effect...make sure you create the trigger before you remove the card from play...otherwise the trigger never gets a chance to see it's source leaving play.
2011-07-26 15:14:37 +00:00
omegablast2002@yahoo.com
72d91769d7 safe-ing up some of the getEff checks...i think the rare "trample" crash was actually caused by a check against a "player" as getnextopponent().... 2011-07-23 11:42:59 +00:00
omegablast2002@yahoo.com
42d2ff8661 removed a typo in "dark depths" 2011-07-23 11:14:45 +00:00
omegablast2002@yahoo.com
691914247f updated the kicker workaround into real support...kicker workaround for "if casted" should not be needed any longer...
fixed binding grasp text.
2011-07-23 10:37:27 +00:00
omegablast2002@yahoo.com
444d13b457 added an "ifnot|if then" ability, with the option to turn on kicker payment menu choice, it created issue with the cards which were using the "kicker" workaround to show that a card was cast...
the ability checks against any of the current cast restriction checks and is written in the following syntax
example phaige the untouchable is 
auto=ifnot casted(this) then wingame opponent
if|ifnot condiation then ability
this can also be used in && abilities such as this card
pulse of the grid
auto=draw:2 && target(*|myhand) reject && if type(*|opponenthand)~morethan~type(*|myhand) then moveto(myhand) all(this)

this adds a few cards in its current state, though the aim for this ability was removing the use of "kicker" workaround for cards like the divinity creatures.
i plan to extend this to support such effects as "if spentmana({b}{u}) then effect....and other conditional checks currently not possible even with workarounds.

I'm committing these now since im working on abilities for kiaos mod and don't want to have a 20 page changelog.

also added missing text to binding grasp, it was thought that it was bugged becuase it simply "ended" its effect....however this is a confusion since the effect was ending due to upcost not being paid, however the card text did not reflect that it had a upcost....
2011-07-23 10:36:03 +00:00
omegablast2002@yahoo.com
bd1c31b6f9 moved the parsing of cast restriction into abilityfactory and out of mtgability...this is so new abilities can take adventage of these checks through the use of AbilityFactory af. 2011-07-23 09:03:33 +00:00
guzhenjie1@gmail.com
48fe3251ce Corrected a typo of Goblin Tunneler. 2011-07-22 16:28:29 +00:00
guzhenjie1@gmail.com
41474ae6f7 Corrected a typo of Maelstrom Djinn.
Corrected three typo and added two missed cards in M12 card.dat.
2011-07-22 14:38:16 +00:00
Xawotihs
49944b629d Commit the 0.16.0 version without tutorials activated 2011-07-20 20:28:44 +00:00
omegablast2002@yahoo.com
e080b59db9 fixed the bringers of dawn...fixed avatar of fury... 2011-07-20 18:41:37 +00:00
omegablast2002@yahoo.com
e8b8079ef6 fixed a bug where you could equip opponents creatures with your equipment, it is quite possible that we have *always* been able too but no one has actually tried. anyways "myBattlefield" does not compare to "mybattlefield"...
i seriously think we devs should consider making all ability coding required lowercase. not card names and text, but coding such as targetchoosers "thisForEach(creature[Black;White]|myBattlefield) moveto(myGraveYard) ...<---this is not uniform...and leads to people using such coding in the source ....i think i suggested this once and was instantly shot down...however, this is the 2nd instance where a bug has arose from the comparing of capitalized vs lower case..becuase we all assume that every line is going to be dropped to lower case as the game reads them.....
2011-07-20 17:17:52 +00:00
Xawotihs
ace236e6a3 Improved maemo upgrade scripts and added 0.16.0 maemo release description 2011-07-19 21:32:56 +00:00
omegablast2002@yahoo.com
262c31b708 fixed fresh meat, and umbral mantle 2011-07-18 13:14:52 +00:00
Xawotihs
188a88a621 Readded a reference to zlib needed on unix. 2011-07-17 20:51:59 +00:00
Xawotihs
9dccc885d6 Updated the Qt project to work on Desktop/Maemo/Meego/Symbian. Removed all dependencies except Qt and OpenGl. 2011-07-17 18:18:17 +00:00
solo81@web.de
d81afa93c5 Corrected Giant Shark. 2011-07-15 13:24:40 +00:00
Xawotihs
c2879b0b6e Fixed a selection problem sometimes hapenning on the hand zone in touch/mouse mode and removed dead code. 2011-07-14 21:21:24 +00:00
guzhenjie1@gmail.com
9f80620f0a Corrected Sky Swallower. 2011-07-14 14:12:11 +00:00
wagic.the.homebrew
8c79e0644c Fix memory leak in ATransforms ability
- Blame is on me for the bad design behind the "isClone" flag, I need to get rid of that flag in the long term.
2011-07-14 13:49:46 +00:00
Xawotihs
bf416b0d36 Fixed Qt Creator project for Qt version on Windows. 2011-07-13 20:07:13 +00:00
omegablast2002@yahoo.com
a8837e95c6 fixed a heap corruption caused in atransformer was a mistake in the code.
also, if ai is adding counters and we're greater then or equal to the max amount that counter ability allows, eff = o.
2011-07-13 18:39:51 +00:00
guzhenjie1@gmail.com
69e55dfcbf Corrected Decree of Justice. 2011-07-13 13:43:47 +00:00
wagic.the.homebrew
d834d20c24 Fixed an incorrect card line the game was complaining about 2011-07-13 13:16:22 +00:00
wagic.the.homebrew
a44cd87ca3 Adding Kaio's latest wallpaper 2011-07-13 13:12:54 +00:00
wagic.the.homebrew
fe98b3ca68 Removing the feature that loads the "big" card instead of the thumbnail when the thumbnail does not exist. Too many people using incorrect HQ packages are complaining about performance issues, so this will make the problem go away, and force people creating those packages to make them correctly 2011-07-13 12:58:21 +00:00
omegablast2002@yahoo.com
7775a1e39f bringer of the red dawn:changed test to include a clean up step 2011-07-12 17:10:23 +00:00
omegablast2002@yahoo.com
dab1d92a0d edited the original test to allow "clean up" phase to do its thing. 2011-07-12 16:51:18 +00:00
guzhenjie1@gmail.com
9ad4f8b8cd Corrected Well of Discovery and Well of Life. 2011-07-12 15:30:26 +00:00
wagic.the.homebrew
cbebe0d4e8 -Fix for issue 710 (can't tap mana in story mode). Update your rules and campaigns folders!
-- Zeth, please verify that I didn't break your mods if you have time
-- The test suite does NOT pass in this revision (see issue 711), but I verified that the problem does not come from my change, so we need to dig
-- Campaigns creators will have to update their campaigns to make them compatible with Wagic 0.16. It consists in adding "include mtg.txt" at the top of each one of their rules.txt file.
2011-07-12 15:02:41 +00:00
omegablast2002@yahoo.com
825760fb6c corrected blood lust code 2011-07-12 10:57:13 +00:00
wagic.the.homebrew
9827e3f915 - Attempt at "fixing" issue 705: loading card frames (used for text mode) in 16bits instead of 32 2011-07-11 15:09:39 +00:00
wagic.the.homebrew
9d9db7198e Additional tweak for issue 693: reduce the size of some background images. I think the visual result is still ok. The images go from 480x272 to 450x255, and end up taking twice as less space in ram (512x256 instead of 512x512).
This helps a lot in the deck selection menus (duel and deck editor).
That, added to my previous fix, fixes issue 693 for me.
In general, we should try to avoid 512x512 32bits textures on the PSP. That happens with a 480x272 png image. One solution is to convert the file to a jpeg, and load it in 551 mode whenever possible. Another solution is what I did: use a 450x255 image instead. The best is of course to cumulate both, which divides the size in Ram by 4 on the PSP.
I'm ok with distributing lower res graphics on the psp, and higher res on other platforms, if that helps. Main culprits are 480x272 images (when there's too many of them)
2011-07-11 14:34:12 +00:00
guzhenjie1@gmail.com
1646ad4221 Added meta data for M12. 2011-07-11 14:30:10 +00:00
omegablast2002@yahoo.com
ff1a1dde86 updated a piece i forgot for type( restriction. this fixes feast for blood. 2011-07-11 12:59:44 +00:00
solo81@web.de
706c8c8883 - Added 181 new cards.
The BIG CARD SAFARI 2011 is over: After 4 months of intensive testing, i can proudly present you this huge card package. All these cards are working 100%. 
Card list --> First comment.

- Added 20 tests to save the cards whose code is not covered by already existing tests.

- Added Magic2012 (M12) with 75 completely new cards.
2011-07-10 21:36:15 +00:00
wagic.the.homebrew
3148a25f3a - Manual cache cleanup in the menu to help a bit with issue 693. This is unfortunately not enough, we are dealing with ram fragmentation problems here :( 2011-07-10 13:51:39 +00:00
wagic.the.homebrew
bf4e0d8908 - minor tweaks:
-- Res is the default folder in Res.txt, in case it exists, to avoid confusion when debugging
-- added sign_prx in the makefile, harmless if you have the default build.mak, but signs the app for you if you have the correct files
-- uninitialized variable warning fixed in Rules.cpp
2011-07-10 07:55:08 +00:00
guzhenjie1@gmail.com
f28638f12e Corrected subtype of Skywatcher Adept. 2011-07-10 05:50:01 +00:00
wagic.the.homebrew
4a6529ea55 - Reverting r3744. This fixes issue 707
-- I will open a new issue for the problem that r3744 was fixing
2011-07-10 04:36:55 +00:00
wagic.the.homebrew
e84ad44e47 - Extended TutorialMessages into a message system that shows up every time a new game is started.
-- instead of tutorial(my message), use message(my message) for such messages. 
-- Counting on people to use it, now that it's here ;)
2011-07-10 01:55:20 +00:00