Commit Graph

3841 Commits

Author SHA1 Message Date
Xawotihs
024c30d909 Added user and system path for QT_CONFIG, added meego policy file, updated meego rules file, removed now useless Meego Res.txt file 2011-08-21 18:55:16 +00:00
wagic.the.homebrew
cb0f2b373f - Fix a bug where JFileSystem would return duplicate results in function scanfolder (can lead to "card id collision" in the previous builds) 2011-08-21 12:53:57 +00:00
wagic.the.homebrew
87d60cd79e - Improper GetfileInstance calls were preventing from correctly initializing the JGEFileSystem (Todo: init earlier, prevent from calling GetfileInstance if not initialized ?)
- fixed a problem with the test suite
2011-08-21 10:04:38 +00:00
wagic.the.homebrew
37c6b06ee0 - removed broken support for non "stored" zip files for card images 2011-08-21 09:43:00 +00:00
wagic.the.homebrew
e27cf56fa2 - Support for Zip Filesystem. It is now possible to zip the entire Res folder ("store" method preferred, zip so that the root of the zip has ai, player, etc...) in one single file for read only. Write access is done in another folder (hardcoded to be User/ for now, can be updated depending on platforms, etc...
-- zipFS has several limitations...
--- in a general way, seekg doesn't work... so getting a file's size needs to be done through JFileSystem.
--- getLine on files open with zipFS doesn't work so great. Not sure if it is a normal issue because files are open in binary or not... JFileSystem therefore offers a "readIntoString" function that needs to be used instead of the usual "getline" technique. However getLine can then be used on a stream connected to the string.

-- tested on Windows and PSP, I also made sure android still works, but haven't tested zip support on Android.
-- I tried to maintain backwards compatibility, but this might break on some platforms, if I broke some platforms and you can't find a way to fix them, please contact me and we'll figure something out
-- This removes wagic::ifstream. I didn't reimplement the securities that were involved in this, apologies for that. Might be useful to reimplement such securities in JFileSystem
-- I haven't tested options/profiles in a deep way, it is possible I broke that.
2011-08-21 09:04:59 +00:00
guzhenjie1@gmail.com
14bd7b7a24 Corrected Galepowder Mage. 2011-08-16 15:35:32 +00:00
Xawotihs
feec26fc8e Meego harmattan packaging files 2011-08-15 22:04:37 +00:00
Xawotihs
fc592a4ed7 Fixed difficulty settings bug introduced in r3247 2011-08-15 17:32:45 +00:00
Xawotihs
2c34a88ff0 Reuse swipe code of Android with Qt, associate "swipe left" to "other cards" in the shop. 2011-08-14 18:13:28 +00:00
Xawotihs
c188b4d104 Fixed "Werror" related compilation problems on Linux and Meego. 2011-08-14 18:09:02 +00:00
Xawotihs
8f1e97f8f9 Fixed compilation problem with VC2010 2011-08-14 14:42:37 +00:00
Xawotihs
f1b44d5330 Trophies icon usable by click/touch 2011-08-12 23:00:31 +00:00
Xawotihs
30f8304918 Meego harmattan support, swipe down for cancel/interrupt, swipe up for next phase/combat assignment, tap&hold for menu, deactivate refresh when windows is not active. 2011-08-11 22:26:07 +00:00
Xawotihs
5414cd940e Defined usage of double buttons input for PSP only, it caused some annoying exit with touch inputs 2011-08-11 21:56:27 +00:00
guzhenjie1@gmail.com
b2f1252e50 Corrected Puresteel Paladin. 2011-08-11 15:44:17 +00:00
Xawotihs
88157d7c95 Fixed compilation problems in non-PSP, non-FMOD, non-Phonon cases 2011-08-10 20:56:51 +00:00
Xawotihs
6631452067 Fixed undefined NEW compilation problem 2011-08-07 20:42:35 +00:00
Xawotihs
4dd8eaadad Touch events are now handled before key events 2011-08-07 19:48:01 +00:00
wagic.the.homebrew
765b6b0412 - Moved Cast Restriction variables "out" of CardPrimitives (replaced with a pointer). This frees 64bytes off of CardPrimitives on Windows, I assume something similar on the PSP, which gives a result of more than 500kB freed
- fix for issue 716 (text not rendered in some cases) 
Test suite passes
2011-08-07 05:05:28 +00:00
wagic.the.homebrew
9f3a42d0c6 - removed "image_name" variable from MTGCard. this should free roughly 200kB with the current amount of MTGCard objects we have. (Which counterbalances the "roughly 150kB in Introduced in CardP Primitives recently :( ) 2011-08-07 04:01:56 +00:00
guzhenjie1@gmail.com
22305c2d27 Added missed subtype of Greatsword, Kite Shield and Swiftfoot Boots. 2011-08-05 16:47:23 +00:00
omegablast2002@yahoo.com
bcfc790cda fixed a typo in the rules, it works in current tho i imagine this could have been the cause of a couple wonky problems.
we created lord target chooser with "mountains" instead of "mountain"<--actual land name.
2011-08-05 09:38:28 +00:00
Xawotihs
eac5a35b43 Cleaned up my phasebar code and merged it into the overall item selection code 2011-08-04 05:57:10 +00:00
omegablast2002@yahoo.com
46dfe03099 fix psp build, guiphasebar int order error. 2011-08-03 16:27:28 +00:00
omegablast2002@yahoo.com
5cd779094d changed it to 1.4f 2011-08-03 14:56:12 +00:00
guzhenjie1@gmail.com
af18fb0172 Corrected mana cost of Personal Sanctuary. 2011-08-03 13:01:03 +00:00
omegablast2002@yahoo.com
07662b08f6 fixed a warning tried as error in MTGGamePhase... 2011-08-03 12:25:09 +00:00
Xawotihs
56c68e799c Fixed compilation problem on VC2010 2011-08-02 21:48:05 +00:00
Xawotihs
097c40149d Phase bar is now clickable/touchable and animated. 2011-08-01 21:26:12 +00:00
guzhenjie1@gmail.com
32a5b7bb92 Corrected rarity of Thran Golem and Throne of Empires. 2011-08-01 15:21:53 +00:00
wagic.the.homebrew
78efba08b1 - fix for counters slowness on psp 2011-07-30 14:29:12 +00:00
wagic.the.homebrew
fe4b0a11e3 - JP Translation update by Shilf
- put tutorials back in Rules/classic, to help debugging the bug with controls
2011-07-30 03:38:39 +00:00
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