Commit Graph

905 Commits

Author SHA1 Message Date
wagic.the.homebrew@gmail.com
11ffebf29f Erwan
-bug fix (credits cheat with empty deck evil twin mode)
-bug fix ("combat ends" message instead of "Combat Damage(2)" in stack)
2009-09-15 13:35:08 +00:00
jean.chalard
ce39961d78 J :
* Fix the filename
2009-09-15 12:28:19 +00:00
leungclj
3d5a9caeca JON4TH4N - (ALA) updated, tested 100% working 2009-09-15 10:26:42 +00:00
wagic.jeck
505ee8d1eb Jeck - I somehow managed to break the test suite. Rolled back my changes to r843, won't commit until they're properly debugged. 2009-09-15 01:53:02 +00:00
wagic.jeck
1b468bde14 Jeck - Replaced ok_quad with ok_tex, which won't expire until the duel is over. 2009-09-14 21:09:58 +00:00
wagic.jeck
a84ed94954 Jeck - Cache Leakfix. Quads now individually lock/unlock. Demo still crashes PSP. 2009-09-14 20:54:49 +00:00
wagic.jeck
5467fd379f Jeck - Signed/unsigned fix in resource manager, options save fix. 2009-09-14 18:30:47 +00:00
solo81@web.de
0eb79c23b9 Fixes, Clean Up, Reordering (LRW) 2009-09-14 17:55:46 +00:00
solo81@web.de
124354125e Removed Wall of Blood (MRD) 2009-09-14 16:42:36 +00:00
solo81@web.de
1f20520420 Fixes, Clean Up, Reordering (MRD) 2009-09-14 16:41:13 +00:00
wagic.the.homebrew@gmail.com
c80245b3e8 Erwan - daily build template.exe 2009-09-14 14:09:01 +00:00
wagic.the.homebrew@gmail.com
67755a4428 Erwan
- fix prowess of the fair
- add "other " keyword to all targets. ex: @movedTo(other elf|graveyard)
2009-09-14 14:07:30 +00:00
wagic.jeck
ce31194358 Jeck - Daily build recompile as release version. Is this or the debug version preferred? 2009-09-14 09:10:54 +00:00
wagic.jeck
0a38623746 Jeck - Minor fixes to cache: Splash.jpg releases properly, pspicons no longer use the same quad. 2009-09-14 08:46:18 +00:00
wagic.jeck
d55fc91112 Jeck - [Requires JGE rebuild] Extensive cache improvements.
* Numerous cache fixes, reduced filesystem access.
 * Cache fails very gracefully. 
 * Cache is now a templated class, with individual caches per data-type.
 * Much easier to extend.
 * Extensively debugged. Try compiling with -DDEBUG_CACHE.
 * Caches limits can be set on a per-item basis.
 * hgeParticleSystemInfo are now cached, mana particles now fall back to defaults.
 * Samples are not cached, but track filesystem misses using the cache backbone. 
 * Avatars are cached. Default baka avatar is now baka.jpg, to prevent collision with player.

A note on the retrieval types: 
  RETRIEVE_MANAGE puts a resource into a seperate, managed resource list.
    Managed resources are guarenteed valid for the lifetime of the program. 
    Retrieving a managed quad promotes the associated texture to managed. Don't do that by mistake.
    Calls to Resources.Refresh() will attempt to reload managed resources in place.

  RETRIVE_LOCK (and by extension, RETRIEVE_VRAM), returns a resource after locking it.
    A resource may have many locks, and remains in cache until they are all released. 
    If the resource is managed, it returns it unmodified.

A note on quads:
Unlike all other RetrieveWhatever() functions, the default behavior for RetrieveQuad is RETRIEVE_LOCK. Worse, Release(JQuad*) is slow, and will /always/ release one lock from the associated texture.   

There's a long and complicated explanation for this, involving support for live relinking of textures to existing quads, but basically what it means is that we only use RetrieveQuad for quads we intend to store and later Release(). If a temporary quad is needed, the preferred method is to use NEW JQuad* and SAFE_DELETE with RetrieveTexture(). RetrieveTempQuad is also provided, but is only guaranteed until the next call to the cache.

Note that RetrieveCard has none of these problems.
2009-09-14 08:28:49 +00:00
wagic.the.homebrew@gmail.com
a696b65ffb Erwan
- fix compilation issues
2009-09-13 12:52:24 +00:00
wagic.the.homebrew@gmail.com
7ce2c563e1 Erwan
- Fixed empty ActionStack "interrupt" messages
- If no attackers are declared, go straight to Combat end phase
- Once First strike damage is declared, attacking player needs to "actively" request a next phase event to go to the next damage step
- Second Damage step is called "Combat Damage (2)"
- UserRequestNextPhase is to be used knowing that it might not succeed
- Step change for GuiCombat is now computed at GameObserver::nextGamePhase

Note: Combat damage to creatures is not assigned when AI attacks. As this seems to be a problem with the previous SVN version, I4m still committing this change
2009-09-13 12:42:18 +00:00
jean.chalard
1f67998d7a J :
* Some interface updates.
2009-09-13 10:57:55 +00:00
wagic.the.homebrew@gmail.com
7c4fbde7d3 Erwan
-Fix farhaven elf
2009-09-12 14:03:22 +00:00
jean.chalard
34d973c60d J :
* Create selection zones to remember the last card the cursor was on.
2009-09-12 12:57:50 +00:00
wagic.the.homebrew@gmail.com
23fb17e58e Erwan
- Added deathtouch (TODO: update Combat rules for damage on multiple blockers)
- Added intimidate (untested)
2009-09-12 12:40:14 +00:00
wagic.the.homebrew@gmail.com
baf49c9ebf Erwan
-fixed problem with lifelink+wither, although combat damages are not entirely correct. Once combat damages actually deal the correct amount of damage, let's put test "armadillo_cloak" back in the suite
2009-09-12 11:40:48 +00:00
wagic.the.homebrew@gmail.com
5bbf9137ad Erwan
-add missing file
2009-09-12 10:16:06 +00:00
wagic.the.homebrew@gmail.com
f34ba20478 Erwan
-fix Seedcradle Witch
2009-09-12 09:13:17 +00:00
solo81@web.de
8a8ab2f2c1 Fixed Survival of the Fittest (EXO) 2009-09-12 06:57:25 +00:00
wagic.the.homebrew@gmail.com
40f2fab205 Erwan
- Reverted Rockslide Elemental to fix test issue
- Removed old gatherer scripts
- Added "daily_build" directory for people who can't compile
2009-09-12 06:44:36 +00:00
leungclj
4b39301074 reverted & updated 2009-09-11 14:38:42 +00:00
leungclj
ca5187d54f JON4TH4N - (TSP) fix Kher Keep 2009-09-11 14:15:10 +00:00
leungclj
dd6d317dbb JON4TH4N - updated permanents with "lord" abilities which requires either cost or other conditions to trigger, they all requires "ueot".
Example: all creature gets +1/+1
auto=lord(creature) 1/1

Example2: pay {2} all other creatures get +2/+2 and flying until end of turn.

auto={2}:lord(creature) 2/2 other ueot && lord(creature) flying other ueot.

Example3: Whenever a player put a creature onto the battlefield, all creature that player controllers attack this turn if able.

auto=@movedTo(creature|battlefield):lord(creature|XYZ player) mustattack ueot
2009-09-11 10:57:56 +00:00
wagic.jeck
9d203619aa Jeck - Extremely minor speedup for cache access in GameStateDeckViewer, minor fix to WResourceManager::cleanup(). 2009-09-11 08:17:05 +00:00
leungclj
421d2655ee JON4TH4N - (FUT) fix Akroma's Memorial 2009-09-10 22:40:41 +00:00
leungclj
7e70aadc1d JON4TH4N - (M10) hypnotic specter can now fly 2009-09-10 22:22:49 +00:00
leungclj
ed20be6277 JON4TH4N - sets update 2009-09-10 12:56:39 +00:00
leungclj
5aa654d8fd JON4TH4N - (ALA) fixes, removed cards explanations are now included in the todo, much better the future references. 2009-09-10 07:08:25 +00:00
leungclj
85f6f15947 JON4TH4N - removed cards that "destroy target when comes into play" "may" is required, but that is incorrect. 2009-09-10 04:12:12 +00:00
wagic.the.homebrew@gmail.com
c0be024093 Erwan
- Put back delayed loading functionality for the Deck editor
2009-09-09 13:51:29 +00:00
wagic.jeck
91a9387e33 Jeck - Profile loading fix, minor options menu improvements, minor cleanup. 2009-09-09 11:11:17 +00:00
wagic.jeck
4993cc5dea Jeck - Cache now pretty damn near guarantees successful retrieval.
* The only fail condition is if all resources are locked, or the file doesn't exist at all.
2009-09-09 05:02:08 +00:00
wagic.jeck
e3d86f0824 Jeck - Improved cache size tracking. 2009-09-09 00:15:33 +00:00
wagic.jeck
a03c35e440 Jeck - Bugfix for createUsersFirstDeck and isDefault. 2009-09-08 19:28:07 +00:00
jean.chalard
457266184d J :
* Add a helper function.
2009-09-08 14:53:23 +00:00
wagic.the.homebrew@gmail.com
471da5d9d9 Erwan
-better fix for psp compilation
2009-09-08 14:11:47 +00:00
wagic.the.homebrew@gmail.com
bc74cea1aa Erwan
- fix psp compilation
2009-09-08 13:23:22 +00:00
wagic.the.homebrew@gmail.com
f9a2d8283a Erwan
- A few card fixes
2009-09-08 13:07:19 +00:00
wagic.jeck
c76d8a3976 Jeck - Separated GameStateDeckViewer.h code into GameStateDeckViewer.cpp. 2009-09-08 07:53:54 +00:00
wagic.jeck
ad7006e2de Jeck - Profile and cache improvements, booster duplicate likelihood reduced.
* Cache now tracks missing textures for RetrieveQuad, not just RetrieveCard/RetrieveTexture.
* Profile options are no longer overwritten when switching profiles.
* Main menu notifies of alternate profile- "Database: X" becomes "Profile: Y of X cards."
* Boosters iterates through cards, replacing duplicates. Stops after 15 tries to prevent infinite loops on small sets.
* Very simplistic theme switcher, only displays when alternate themes are present.
2009-09-08 03:23:19 +00:00
jean.chalard
a0b1da9810 J :
* Remove an unused variable.
2009-09-08 01:32:30 +00:00
jean.chalard
6f183fd8ec J :
* Temporarily remove the PIC1 option that prevents compilation.
* Fix the carriage returns.
2009-09-07 17:30:16 +00:00
jean.chalard
ea92876d7b J :
* Fix a little memory leak.
2009-09-07 17:18:46 +00:00
jean.chalard
e7fb9282ce J :
* Fix the last tests that didn't work, Rampage ability.
2009-09-07 16:40:03 +00:00