Re: Indep grimoire slightly improved
Well, you're already keeping track of two concepts here:
1.) The spells you really have access to (defined by your research level), and
2.) the spells you can cast.
Right now #2 is just a cache of #1, regenerated every round, but if you allowed disabling spells by clicking on a toggle or something you just remove them from #2 (and put them on a list of "restricted" spells to remove every time you regenerate #2 from #1). The combat AI doesn't have to change at all, and since it's purely subtractive there's no worry about bugs that "enable" spells you haven't actually researched yet. I'm presuming that the Dom2 way would have necessitated adding *and* subtracting spells to/from the list as they were enabled/disabled.
Of course, maybe it's not as simple as that. For one thing, you have to also encode the "restricted" list as part of the .2h file for PBEM games.
-Max
__________________
Bauchelain - "Qwik Ben iz uzin wallhax! HAX!"
Quick Ben - "lol pwned"
["Memories of Ice", by Steven Erikson. Retranslated into l33t.]
|