pfps
158e7d683e
Add a utility confirm function to encapsulate gui-switching and use it in several places (more to come)
2017-01-24 19:14:40 +00:00
Agetian
bb661eb54e
- Parameter consistency in Natural Order.
2017-01-24 17:43:12 +00:00
Agetian
0ba88f3ce5
- Improved SacAndUpgrade AI, now it works with Eldritch Evolution and requires fewer parameters in scripts.
2017-01-24 17:42:03 +00:00
Agetian
e4ddffc0a8
- Logic correction.
2017-01-24 15:31:18 +00:00
Agetian
689768d40f
- Imports cleanup.
2017-01-24 15:10:19 +00:00
Agetian
65f129617c
- Temporarily putting in the code that would use the original prompting method if running on LibGdx (mobile Forge) since mobile Forge has no way of showing the card to the player without going through the getGui().confirm method, which creates a custom card view and prompt there.
...
- Probably should be organized better (it's not very clean to branch out for a particular port in top-tier GUI code), but I'm not sure how to make this better. Please feel free to improve.
2017-01-24 15:05:01 +00:00
Agetian
a4a3ad99eb
- Instantly show the card Scry is inquiring about to avoid specifically having to mouse over the prompt to take a look at it.
2017-01-24 14:01:17 +00:00
Agetian
b62a99724a
- Made the Scry dialog show the card it's inquiring about to the player when the mouse is over the prompt area.
2017-01-24 13:54:44 +00:00
Agetian
654f2b3f95
- Simpler Clone Legion RepeatCards parameter.
2017-01-24 13:40:07 +00:00
Agetian
19ce03e235
- Fixed Clone Legion.
2017-01-24 12:31:18 +00:00
Agetian
8fe64ed124
- Simplified checkApiLogic in ChangeZoneAi by refactoring SameName logic into a separate method doSameNameLogic.
2017-01-24 12:28:00 +00:00
Agetian
5a88d2b943
- Moved SacAndUpgrade AI logic from SpecialCardAi to ChangeZoneAi (not card-specific, can be generalized further).
...
- We may want to eventually do something about ChangeZoneAi since it has become very "fat" and has a ton of convoluted routines for a dozen different effects.
2017-01-24 12:23:40 +00:00
Agetian
5e0c6bbaee
- Moved ManaRitual AI logic to ManaEffectAi (no longer card-specific).
2017-01-24 11:16:25 +00:00
Agetian
b12a14b26a
- Formatting fix.
2017-01-24 11:09:54 +00:00
Agetian
b2d8cc4a87
- Some additional limitations in ManaRitual AI.
2017-01-24 11:05:13 +00:00
Agetian
318543db38
- Trying to restore the new SpellAbilityAi format for ManaEffectAi.
...
- Limited mana ritual AI a bit more, it's bad at prioritizing instants for it.
2017-01-24 10:59:59 +00:00
Agetian
f241292bae
- Removed an unnecessary parameter in a new method.
2017-01-24 10:40:06 +00:00
Agetian
f292d63c68
- Added a way to specify AILifeThreshold for cards which do not have a life cost but which deal damage or make the player lose life.
...
- Added AI life activation threshold to Smallpox and Pox to prevent the AI from killing itself with them.
2017-01-24 10:38:56 +00:00
Agetian
6000083a60
- Experimental improvements to allow the AI to consider ManaRitual in Main1.
2017-01-24 09:57:51 +00:00
Agetian
b46a32abfa
- Temporarily reverted ManaEffectAi changes since they prevent ManaEffectAi from working completely and I'm not sure how this format should be written properly to make it work (e.g. ManaRitual does not work at all) and Main2 phase restriction should probably be local to ManaRitual, not global... Please feel free to revert this commit to submit an improved version
2017-01-24 09:41:04 +00:00
Agetian
b1bfbc96a5
- Added NeedsToPlay to Accursed Centaur
2017-01-24 09:31:04 +00:00
Agetian
d6f684e287
- Optimize BirthingPod AI by avoiding filtering library at every iteration; move ManaRitual AI in alphabetic order.
2017-01-24 09:11:04 +00:00
Hanmac
3494a8e435
SpecialCardAi: add some Tweaks for ManaRitual, also try to convert ManaEffectAi into new SpellAbilityAi format
2017-01-24 06:15:56 +00:00
pfps
9dd423776f
Add spell description for Preeminent Captain triggered ability and turn into DB
2017-01-23 22:41:28 +00:00
pfps
84c4acf6d1
Add spell description for Mentor of the Meek triggered ability
2017-01-23 22:24:09 +00:00
pfps
1117defc09
Change about 25 lands with ETB drawbacks to code the ability as DB and move the ability description from Text field to the ability
2017-01-23 18:15:30 +00:00
Agetian
3f28c3c3d6
- Better castable material detection in ManaRitual AI, now accounts for non-permanents that the AI is willing to cast.
2017-01-23 17:52:06 +00:00
Agetian
33dce1114b
- Prioritize mana rituals to try to maximize potential mana.
2017-01-23 17:29:39 +00:00
Agetian
6a2baaef71
- Slight improvement to ManaRitual AI logic.
2017-01-23 17:24:29 +00:00
pfps
0090b1116f
Change Breeding Pool replacement ability to a drawback and move old card text there.
2017-01-23 16:47:12 +00:00
Agetian
65d97cfbd5
- Imports cleanup.
2017-01-23 16:34:59 +00:00
Agetian
7352b7aec0
- Improved AI for Bomat Courier (this logic can also be used for other potential cards that require you to discard your hand and that then refill your hand from exile; may be expanded to other zones too if necessary).
2017-01-23 16:34:33 +00:00
pfps
8b4bfbaae4
Show static abilities for instants and sorceries that are NOT secondary instead of those that are
2017-01-23 16:01:29 +00:00
Agetian
4233e1dbc4
- Adding deck conversion tools that I'm using to convert MTGDecks.net deck lists and XMage cube definitions. Might be useful as a basis for converters from other deck formats too.
2017-01-23 15:16:57 +00:00
Agetian
5c6a184720
- Morph ability should not be playable without paying its mana cost. Is there a better way of detecting "without paying its mana cost" except judging by description?
2017-01-23 14:41:57 +00:00
Agetian
09c35b07ca
- Comment fix.
2017-01-23 12:11:05 +00:00
Agetian
b0e9d0820f
- Made AILogic ManaRitual more generic.
...
- Marked more cards to be used with this AILogic.
2017-01-23 12:10:25 +00:00
Agetian
e5acf1fa15
- Implemented some rudimentary mana ritual AI.
...
- Marked Dark Ritual as AI-playable. Other similar cards can probably now also use AI ManaRitual for this purpose.
2017-01-23 11:41:51 +00:00
Agetian
8447c6cda6
- Renamed AI BirthingPod to AI SacAndUpgrade.
2017-01-23 10:59:48 +00:00
Agetian
57a6dbf442
- Fixed DB name in Parting Thoughts.
2017-01-23 10:53:09 +00:00
Agetian
2aea3d02c8
- Added missing description part to Parting Thoughts.
2017-01-23 10:52:27 +00:00
Agetian
06c3eaabba
- Debug line removal.
2017-01-23 10:48:00 +00:00
Agetian
50dc536bdd
- Decoupled the sac target and search goal in AI BirthingPod.
2017-01-23 10:47:26 +00:00
Agetian
280e4d10b2
- Make AILogic BirthingPod obey card restrictions specified in AIPreference SacCost (for the purpose of being flexible for not only Birthing Pod but Natural Order and potentially other cards). Now this AI Logic probably needs a better name.
2017-01-23 10:21:46 +00:00
Agetian
dffee55c52
- Some clarifications in comments.
2017-01-23 10:05:10 +00:00
Agetian
915e369211
- Extended Birthing Pod AI to potentially work with other cards that upgrade creatures.
...
- Made Natural Order use the variant of this AI logic to be able to search for cards that are better than what we currently have (can certainly be expanded and made more precise by actually evaluating sac creature against the goal creature).
2017-01-23 09:58:35 +00:00
Agetian
e13f016740
- Improved Birthing Pod AI.
2017-01-23 08:24:05 +00:00
Agetian
9c58609ee5
- Added a comment to Birthing Pod script.
2017-01-23 07:18:34 +00:00
Agetian
a0da5da10d
- Added AI logic for Birthing Pod and made it AI playable (TODO: make it avoid using the roundabout override mechanism for preferences to make the code cleaner)
2017-01-23 07:15:16 +00:00
Agetian
299be821e7
- Added CNS and CN2 booster box definitions.
2017-01-23 05:50:54 +00:00