Erwan
-fixed a memory leak - Added P02 and PTK - New way to create tokens in the parser, much more flexible, see the Hive in RV. Tokens can now be written as other cards, with a rarity of "T". I suggest their id to be the negative value of the card that generates them when possible. Naming convention for images is the same as before: a negative id such as -1138 will need a [id]t.jpg image (1138t.jpg). Positive ids work as "normal" pictures
This commit is contained in:
@@ -37,6 +37,7 @@ generic/targetController_life.txt
|
||||
generic/targetController_life2.txt
|
||||
generic/targetController_damage.txt
|
||||
generic/tokens.txt
|
||||
generic/tokens2.txt
|
||||
generic/trample.txt
|
||||
generic/trample_vs_indestructible.txt
|
||||
generic/trample_vs_multiblock.txt
|
||||
|
||||
39
projects/mtg/bin/Res/test/generic/tokens2.txt
Normal file
39
projects/mtg/bin/Res/test/generic/tokens2.txt
Normal file
@@ -0,0 +1,39 @@
|
||||
#Bug:Segfault in GuiPlay.cpp
|
||||
[INIT]
|
||||
SECONDMAIN
|
||||
[PLAYER1]
|
||||
inplay:135253
|
||||
manapool:{5}
|
||||
[PLAYER2]
|
||||
inplay:hypnotic specter
|
||||
[DO]
|
||||
135253
|
||||
eot
|
||||
eot
|
||||
next
|
||||
#upkeep
|
||||
next
|
||||
#draw
|
||||
next
|
||||
#main
|
||||
next
|
||||
#combat begins
|
||||
next
|
||||
#attackers
|
||||
-135253
|
||||
next
|
||||
#blockers
|
||||
hypnotic specter
|
||||
next
|
||||
#damage
|
||||
next
|
||||
#end combat
|
||||
eot
|
||||
next
|
||||
[ASSERT]
|
||||
UPKEEP
|
||||
[PLAYER1]
|
||||
inplay:135253
|
||||
[PLAYER2]
|
||||
inplay:hypnotic specter
|
||||
[END]
|
||||
Reference in New Issue
Block a user