Commit Graph

67 Commits

Author SHA1 Message Date
Agetian
e8fd2a77f2 - For now, disabling ACTIVELY_DESTROY_ARTS_AND_NONAURA_ENCHS in Default AI profile, but keeping it enabled in the Reckless/Aggro profile (for the AI to be more aggressive in removing the opposing threats when given a chance).
- Imports cleanup.
2017-01-20 17:46:01 +00:00
Agetian
e3e97cd2e6 - Added global options to control the min CMC the AI would use permission against (disabled in both default profiles at the moment).
- Implemented some simple AI for Daze and Force of Will such that the AI does not waste them so much on every single opportunity (quite basic, needs further expansion).
- Fixed Force of Will disappearing from the AI card pool when it was trying to cast it without having a valid blue card to exile in hand.
- Marked Daze and Force of Will as AI-playable (should at least be more or less on par with other permission for the most part).
2017-01-20 17:41:43 +00:00
Agetian
f484f02f4d - Added an experimental (and disabled by default in all profiles) AI profile option ACTIVELY_DESTROY_ARTS_AND_NONAURA_ENCHS, which makes the AI more willing to not hold back using removal on artifacts and global (non-aura) enchantments that have "suspicious" (potentially beneficial for the opponent/disruptive for the AI) intrinsic static or triggered abilities.
- Currently very basic and requires tweaking and expansion, from hence it's disabled by default until I experiment enough with it, see how it works in practice and tweak it to account for other cases and corner cases that may be viable (and prove that it does not make the AI take stupider decisions than without this option).
2017-01-17 16:11:26 +00:00
Sloth
6e09f5dd9a AI Profile update:
- Quest opponents can now have a Profile assigned in their metadata.
- Opponents with the Reckless profile will now attack more aggressively.
- Opponents without Profile will have the Default Profile (and not a random one).
2015-11-24 08:55:51 +00:00
Agetian
5549604d0d - Tweak spell prediction when deciding whether to move equipment or not.
- Enable spell prediction (works for AttachAi only at the moment).
- The Default AI profile will only move equipment from one creature to another if the one it's currently attached to is useless, but will consider it a priority task to move equipment away from useless creatures.
- The Reckless AI profile will always move equipment from worse creatures to better ones but will prioritize getting as many threats and other permanents out before moving creatures around (currently - even if the creature the equipment is attached to was rendered useless).
2014-09-20 08:01:58 +00:00
Agetian
f55ae8ab95 - Disable all prediction for Main 2 spells until I can figure out the stack overflow issue. 2014-09-20 04:48:53 +00:00
Agetian
cdcb9c84be - Added a way to disable predictive analysis for spells in Main 2 via an AI property PREDICT_SPELLS_FOR_MAIN2 (currently prediction is enabled by default for all profiles). 2014-09-19 04:39:44 +00:00
Agetian
cf70a969b1 - At least for now, added an AI profile property RESERVE_MANA_FOR_MAIN2_CHANCE that indicates a chance that the AI would want to reserve mana for a main 2 phase spell. Currently set to 0 for all profiles (the AI will not reserve mana).
- The AI will obey mana reservations either if the spell ability is explicitly marked as low priority with SVar LowPriorityAI or, if it's not marked as low priority, depending on the random chance as specified in RESERVE_MANA_FOR_MAIN2_CHANCE.
2014-09-18 11:47:45 +00:00
Agetian
8c6d9615a8 - Raise the max mulligan limit to 3 cards for Reckless AI. 2014-09-11 12:26:18 +00:00
Agetian
fb50fab9d6 - Attempt to stay on two AI profiles for now (Default and Reckless). Set the Default AI to move equipment only from useless creatures to useful ones, seems reasonable (will keep testing). 2014-09-09 18:55:11 +00:00
Agetian
7e7a069455 - Added a new AI profile property: MOVE_EQUIPMENT_TO_BETTER_CREATURES. Defines whether the AI will always move equipment to better creatures if it has mana ('always'), only move if the currently equipped creature becomes useless ('from_useless_only'), or never moves equipment around ('never').
- Added a new AI profile: Tricky (doesn't mulligan too heavily, moves equipment around from useless creatures).
- Default AI profile will not move equipment around (similar to how Forge operated before this change).
- Reckless AI profile will always move equipment to new more powerful creatures if it has enough mana and doesn't have other Main 2 plans.
- Some related refactoring.
2014-09-09 18:34:11 +00:00
teferi
076783aac4 reverting module refactoring changes 2014-03-02 14:19:50 +00:00
teferi
3ae604d414 extracting res folder from gui module and moving it to the bundles module 2014-02-28 09:18:40 +00:00
Agetian
b8b3fff684 - Changed the representation of booleans in AI profile config files to match the preference file conventions.
- Sorted the options in AI profile config files in alphabetical order.
2013-12-29 08:17:32 +00:00
Agetian
33a08f67ec - Changed the way AI cheating works. The old option "Smooth AI Land" is now replaced with a global toggle "Enable AI Cheating" which allows the AI personalities (profiles) that have various cheat options set in them to utilize those cheat options to gain card advantage over the human.
- Currently there is only one cheat option (CHEAT_WITH_MANA_ON_SHUFFLE) which works like the old Smooth AI Land option by allowing the AI to cheat-shuffle appropriate lands into appropriate places in the library to minimize mana lock.
- Both default AI personalities (Default.ai and Reckless.ai) currently have CHEAT_WITH_MANA_ON_SHUFFLE set to True, which emulates the old Smooth AI Land functionality: if the "Enable AI Cheating" option is enabled, both profiles will cheat-shuffle. If disabled, neither profile will cheat-shuffle.
- Overall, it is now possible to set AI cheating on a per-profile basis and it's also possible to globally disable AI cheating even for personalities that normally do cheat.
- When adding new AI cheating options, don't forget to check for the value of the global toggle which is FPref.UI_ENABLE_AI_CHEATS.
2013-12-29 07:42:07 +00:00
Agetian
55aa4350b9 - Fixed the Phasing icon not appearing immediately when the card phases in/out.
- Added support for an additional sound effect that is played when a card phases in/out (phasing.wav is played if available).
- Added the "CHEAT_WITH_MANA_ON_SHUFFLE" option to the stock AI profiles (not used yet, to be implemented soon).
- Organized the AI profile config files a little bit by sorting the options.
2013-12-29 06:13:42 +00:00
jendave
9f0308dd66 Start of re-org into modules 2013-11-08 10:05:52 +00:00