Commit Graph

3878 Commits

Author SHA1 Message Date
Xawotihs
02b04e6524 Adds a python script to create the resource zip package 2011-12-29 21:28:45 +00:00
omegablast2002@yahoo.com
be33659081 fix for cumulative upcost, extra cost were not being multiplied
[card]
name=Phyrexian Soulgorger
auto=cumulativeupcost[{S(creature|myBattlefield)}] sacrifice
text=Cumulative upkeep - Sacrifice a creature. (At the beginning of your upkeep, put an age counter on this permanent, then sacrifice it unless you pay its upkeep cost for each age counter on it.)
mana={3}
type=Snow Artifact Creature
subtype=Construct
power=8
toughness=8
[/card]
was only charging you 1 sacrifice per upkeep.

added thisTargetComparison, this(cantargetcard(targetchooser))...its a thisdescriptor that compares if the card can be targeted by a target chooser...
2011-12-29 19:55:45 +00:00
omegablast2002@yahoo.com
311c280427 removed undead alchemist. 2011-12-29 16:42:19 +00:00
wagic.the.homebrew
506952e2da - made Filedescriptors pool a compile-time option. This should fix some issues found in previous revision 2011-12-29 13:15:44 +00:00
wagic.the.homebrew
591f0e0d30 - fix for issue 772
- fixed some issues in zstream that prevented to use "getline" in zipped streams 
- added a "pooled buffers" system to keep a cache of file descriptors. This is potentially dangerous though, but shaves several seconds of loading time on the PSP. If problems arise on other platforms I'll make it a compilation parameter
- gracefully fail when calling manacost information on a not properly initialized mana cost
2011-12-28 16:14:08 +00:00
guzhenjie1@gmail.com
9e80314f6d Removed the blank space in the end of Crosis, the Purger. 2011-12-25 12:57:11 +00:00
omegablast2002@yahoo.com
b2a5ee774c corrected the card cycles that were using a loophole to use " may pay(", re-add Rupture Spire, corrected a couple badline errors. 2011-12-25 01:09:02 +00:00
omegablast2002@yahoo.com
53b1c4a742 2 major bug fixes and 1 minor fix
first somehow accidentally line 3616 mtgability.cpp removefromgame was adding an observer instead of removing it, this explains "abilities sometimes acting strangely or not being removed"...I'm surprised it didn't create memleaks or extremely visible side-effects...
2nd fixed a bug where triggered abilities would share a menu with activated abilities of a card when ever you had enough mana floating to pay an activated ability before the trigger resolved.

adjust the way ai calculates if it should use cards like wrath of god, though it is still open to using it at a random chance, i noticed that the method we use might not be the best.
an ability with an eff of 1 for example actually has a 10% chance of being choosen....
lets say rng rolls 3402
when you % this it simply takes the 2 last numbers making this roll 2...meaning that unless we assign no "random chance to do blah" the actual chance of ai using a stupid ability is 10%...I'm leaving that logic how it is tho I "unfactored"(?) it to make it easier to track the numbers, also added a debug trace to help see how often we hit "lottery chance" ...
fixed a minor crash from multiability trying to fetch menutext when no abilities existed in the vector anymore.

this patch introduces a new subkeyword for "may " which is syntax pay(manacost)
auto=may pay({w}) untap
this is to allow the card group that was coded using the activated ability loophole i described at the start. it works the same way as it did with the loophole only it is actually something we want to happen instead of a flaw in the engine...you float the mana same as before and when the may line is triggered it will check if payment can be made with exist mana if so then it displays the menutext for the ability, if that ability is choosen it then charges you the mana directly before activation. 

this patch also include flip( ability, tho not intended originally for this version, I had previously had it finished and was polishing it right before I noticed the bugs above. since this keyword is not intended to add cards for this version, I wont go into massive details about it at this time.
2011-12-25 01:01:20 +00:00
Xawotihs
e5417319b8 - Android port fixes for the Qt frontend
- Coded a small resource downloader in QML from the Qt frontend. It's completly useless for the moment and it's poorly integrated
- Various tweaking in the Qt project file for Symbian and Android
2011-12-20 23:11:27 +00:00
punkeduard@gmail.com
3803d126bc Added mystical teachings, this card is so awesome 2011-12-20 06:27:39 +00:00
omegablast2002@yahoo.com
16072233ee changed quillspike test to use a creature with -1/-1 counters on it. quillspike was corrected a few revs back but test was written for the incorrectly coded quillspike. 2011-12-20 01:46:27 +00:00
techdragon.nguyen@gmail.com
e308d9cd47 fixed compilation error for android builds as referenced in forums. http://wololo.net/forum/viewtopic.php?f=16&t=3366 2011-12-20 00:00:00 +00:00
jean.chalard
07582eca45 Switch the default linux target to qt.
The old X11 version can still be built with make x11.
If this breaks some use cases, please tell me - it's hard to
predict. My minimal testing seems to indicate it works, and
make does the heavy lifting for us.
2011-12-18 12:40:47 +00:00
jean.chalard
d1a30f10a5 Add a rule to generate the qt Makefile 2011-12-18 12:15:50 +00:00
jean.chalard
d93fdb2d4a Fix the Linux build. 2011-12-18 09:40:35 +00:00
punkeduard@gmail.com
316d9b2c0d Added Ajani vs Nicole Bolas Dual deck series
fixed some primitives and updated unsupported.txt
2011-12-17 23:47:08 +00:00
techdragon.nguyen@gmail.com
04f6366619 changing pragma mark directives to use cross platform comment "//MARK: "
#pragma mark is specific to XCode
2011-12-17 15:56:47 +00:00
techdragon.nguyen@gmail.com
3bfb68f96c modified touch interface to be a little more fluid on iOS 2011-12-16 11:09:40 +00:00
techdragon.nguyen@gmail.com
4b137e0b6b added numeric support for iOS. Numbers were being ignored earlier 2011-12-15 17:51:29 +00:00
techdragon.nguyen@gmail.com
cab7a2a09f updated provisioning profile definitions 2011-12-15 11:30:47 +00:00
techdragon.nguyen@gmail.com
a6b2a43188 fixed compile error. sorry, missed this one on last check in 2011-12-15 11:26:26 +00:00
techdragon.nguyen@gmail.com
dc7d52c48c added new signature for SendCommand in JGE that takes in a command string and a parameter
added native keyboard handling in iOS
TODO: add same feature for Android tablets/phones
2011-12-15 11:11:08 +00:00
punkeduard@gmail.com
f9016f70ab Fixed some primitives
Updated unsupported.txt
Added the following undergraded cards:

Brutal Nightstalker
Dauthi Mindripper
Disciple of Griselbrand
Disciple of Griselbrand
Dying Wail
Ghost-Lit Stalker
Ghastly Discovery
Haunted Cadaver
Helm of the Ghastlord
Mindstab Thrull
Needle Specter
Sadistic Hypnotist
Shrieking Grotesque
Shrine of Limitless Power
Silent Specter
Soldier of Fortune
Splitting Headache
Trapfinder's Trick
2011-12-14 19:54:16 +00:00
techdragon.nguyen@gmail.com
8550b70e2e fixed issue with crashes on devices that only support openGL 1.1 2011-12-13 22:28:16 +00:00
omegablast2002@yahoo.com
8b7ae968a5 fixed Varchild's Crusader 2011-12-13 20:52:40 +00:00
wagic.the.homebrew
2e3331a0c0 - Speed improvements to the filesystem (partial fix for issue 767)
- minor speed improvement in the shop (removed a locked texture loading that wasn't necessary)
2011-12-13 15:14:47 +00:00
wagic.the.homebrew
54a2f949b7 - Fix case sensitivity issue for some card sounds
- added null checks for "shadow" textures
2011-12-12 13:10:33 +00:00
techdragon.nguyen@gmail.com
db664e2836 added some error handling for downloading core files. app will display a message if an error has occurred while downloading and then retry the download after user dismisses the alert.
TODO;  replace string literals with constants or static NSString objects.
2011-12-12 12:24:12 +00:00
punkeduard@gmail.com
59b1c8167e Fixed some primitives, changed Baru fist of kosa in _cards.dat
Updated the unsupported.txt file to reflect the 2 card afari added some days ago

Added some undergraded cards (crappy as not chosen discard)

Augur of Skulls
Bog Down
Brain Weevil
Cao Cao, Lord of Wei
Compulsive Research
Consult the Necrosages 
Cunning Advisor
Elder Mastery
Esper Charm
Funeral Charm
Mournwhelk
Piracy Charm
Tendrils of Despair
Three Tragedies
Unburden
Unnerve
Voices from the Void
Waking Nightmare
Wit's End
2011-12-12 04:21:22 +00:00
wagic.the.homebrew
c9fd53808f - fix compilation issue on psp
- attempt at reducing loading times on the PSP: I merged a few graphics files together, removed some unused calls from the initialization functions, and moved some other ones to have a more lazy approach. The PSP version remains fairly slow in some parts (especially loading, but also entering the shop, or starting a new game), so I will try to reduce file access as much as possible in the days to come. Not a release blocker IMO though, but I4d sure love if it were faster.
- uppercased "Track1.mp3" to be in line with the actual filename. Most likely this had been broken forever on case-sensitive OSes
- I removed costly calls from the textscroller. I believe it wasn't very useful in its previous state. Now it's only "advertising" for unlockable stuff, which I think is ok (and allows to refresh it every time the menu is loaded)
- As a counterpart, added a "% complete" progress bar in the menu, something I wanted to add a while ago.
2011-12-11 13:48:24 +00:00
techdragon.nguyen@gmail.com
f8f5c24304 reverted accidental change to modrules.xml
added missing appdelegate chagnes for previous changes.(iOS only)
removed system copy of bundled Res folder with app deployment (iOS only)
2011-12-11 10:04:55 +00:00
techdragon.nguyen@gmail.com
e58f96afad fixed iPad splash screen issues. fixed memory leak 2011-12-11 09:12:44 +00:00
techdragon.nguyen@gmail.com
128c60bc2b added download feature for iOS port
required libs: 
    * ZipArchive - Obj-C impl of zip
    * asi-http-request : http request help to assist with asynchoronous downloading of files
    * minizip : support for ZipArchive
    * 
Added default splash screen for iOS app.  (using the Wagic background to keep it neutral to module)

TODO: refine handling for iPad splash screen
    * add selection screen and input screen for location of downloadable content. (ie core files, image files, etc )
    * add support to opt out of backing up to iCloud for core files. Right now iOS will automatically backup all files under Documents folder to iCloud.  Consider only allowing player data to be backed up to iCloud.  All graphics and other assets are considered volatile.
2011-12-11 07:40:22 +00:00
punkeduard@gmail.com
071dca6b0a Added Premium Deck Series: Graveborn _cards.dat in sets 2011-12-11 03:59:45 +00:00
omegablast2002@yahoo.com
a3e101eb9c fix for issue 769, random modes including momir do not have meta data. 2011-12-10 12:56:36 +00:00
punkeduard@gmail.com
83ac157ebd Fixed some primitives related to the latest cards added
thirst for knowledge, baru, trollhide
2011-12-10 02:12:28 +00:00
wagic.the.homebrew
2030d34643 Fix for issue 766 ("cancel" on opponent deck selection goes to the deckeditor) 2011-12-10 01:05:59 +00:00
techdragon.nguyen@gmail.com
fe78345ef7 first draft of ad code for iOS. Not adding admob/adwhirl/adSesnse libs to this commit. You will need to download them to get the port to build under XCode 2011-12-08 20:50:36 +00:00
wagic.the.homebrew
69a0323c86 - Added cache for the count of AI decks, to reduce file access especially on victory screen. This fixes some massive lags on the PSP when winning a game
- bumped version number to 0.17
- removed some dead code in utils.h
2011-12-07 14:34:59 +00:00
solo81@web.de
17e506147e Added the result of the 2nd Grand Card Safari:
After months of research, card coding and testing, i proudly present you this high-end card package.

It contains 163 new cards! I never thought to find such a massive amount of codable cards on the current card-availability level Wagic has reached now.

Some cards look like they were coded in a much too complicated way, but believe me: There is no other way to make them work.

Talking about the card code, I have to thank Zethfox alot for coding the 'transforms((,newability...))" complex, which was very very useful. THANK YOU!

Added several tests to safe the code of the cards for future changes.

I think this is the last time i will be able to add such a huge number of new cards outside of the upcoming of a new set, we have reached the outer limits of what is doable with the current code. Let's hope there will be some new some time in the future, though i have my doubts there will be anything new in that section of Wagic for a long time.

Below, you will find the card list. Some really exciting cards are hitting the Wagic scene!

I need a break...
2011-12-07 00:12:25 +00:00
punkeduard@gmail.com
bf2f7f38f6 Fixed primitives:
life's finale, 
hedron crab,
Army of the Damned

made lotus cobra more user friendly reducing message boxes
2011-12-05 07:19:58 +00:00
wagic.the.homebrew
409d249051 Spanish translation update (including cards) by yomismo 2011-12-04 07:32:02 +00:00
punkeduard@gmail.com
524c7486f5 Fixed some cards
Pith Driller
Ruthless Invasion

Added some crappy ones

Ebony dragon
Abyssal Horror
2011-12-04 06:59:26 +00:00
omegablast2002@yahoo.com
c5d0883136 fix @discarded. 2011-12-01 12:11:48 +00:00
Xawotihs
3514476812 - Created a GamePhase type to ease debug.
- Modified the testsuite and gameobserver to be able to replay all the testcases based on the actions logged during the first pass. This allows to test the action logging and replay used during undo. It's only activated in multithreaded mode and it does not work on Momir tests.
-  Modified choice logging and replay to use menuId instead of ability index, as, for some obscur reasons related to Lord, those ability indexes may change.
- Fixed bug in nextphase logging wrongly generating click actions
- Added a "stack" zone to the click ability logging to be able to replay properly interrupt
- Fixed a wonderful bug mixing card names with zone names in the actions execution engine
- Added a "combatok" action logging/execution
- Added a "clone" virtual method to MTGCardInstance and Token to be able to clone correctly the right object type. Used that in MTGGameZones::removeCard
2011-11-29 21:50:16 +00:00
omegablast2002@yahoo.com
104d134c1f wolfbriar elemental added green to the token... 2011-11-29 11:00:05 +00:00
solo81@web.de
e880acda06 Corrected Bloodgift Demon. 2011-11-28 18:52:28 +00:00
omegablast2002@yahoo.com
d01a5531d9 fix for shop crash. in the shop there is no "game" so cards in booster packs are never assigned a observer as no observer is ever created at this point. 2011-11-27 14:25:24 +00:00
wagic.the.homebrew
4c56842cf5 - Fix PSP (and other non-debug) compilation. Yann please review.
- Fix memleak I introduced recently in modrules.cpp
2011-11-27 07:53:37 +00:00
Xawotihs
29132073de - Modified DeckManager class to not use a global instance anymore when used within the game engine
- Modified DuelLayers to not use a global MTGPhaseGame instance anymore
- Moved the reset of currentActionCard out of the ActionLayer render function : that fixes the remaing problematic tests in the multithreaded testsuite
- Added a method in ActionLayer converting a card ability into a menu index
- Used this new method in the game observer to log correctly AI ability actions
- Added a DumpAssert method in the game observer, it can be used to dump the game and assert in order to easy crash reproduction
- Cleaned up TargetList properties access
- Added an optimisation in GuiMana to not compute update code if the rendering is not used (multi-threaded mode)
- Added a deadlock detection in the test AI vs AI multithreaded mode
- Fixed minor bugs in test AI vs AI multithreaded mode
- Added a games/second counter in the test AI vs AI rendering
2011-11-23 19:11:48 +00:00