Skip to content

Conversation

@BuckAMayzing
Copy link
Contributor

Please don't merge until reviewed by @mcb5637 and @cabarius. I'd like you both to take a quick look at the logic and double-check it.

It might also be worthwhile to pull this branch down and build just to verify that it's working fine for your test cases. It has worked for mine so far; I will check a couple more.

I didn't change the patch notes; this is more or less just the fix @mcb5637 put in, but done in a way that shouldn't have any unintended side effects.

Comment on lines 200 to 206
return spellbook.SureKnownSpells(level).Where(sp => sp.IsTemporary
|| sp.CopiedFromScroll
|| sp.IsFromMythicSpellList
|| sp.SourceItem != null
|| sp.SourceItemEquipmentBlueprint != null
|| sp.SourceItemUsableBlueprint != null
|| sp.IsMysticTheurgeCombinedSpell).Count();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mcb5637 - I inverted your boolean here to make the count easier to get.

Comment on lines 203 to 206
if(spellbook1.Blueprint.Spontaneous) {
actual -= CasterHelpers.CountExternallyAddedSpells(spellbook1, index);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In theory, we shouldn't have to worry about this on non-spontaneous spell books. If that's not the case, let me know. I think doing this for all spell books might cause extra spells to be learned for memorized books, though?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to test the heck out of this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No arguments here. Seems good in theory, but theory and practice are totally different things.

@BuckAMayzing BuckAMayzing force-pushed the fix-spontaneous-spell-calculations-for-scrolls branch 2 times, most recently from 636771a to abd67de Compare May 27, 2023 14:58
@BuckAMayzing BuckAMayzing force-pushed the fix-spontaneous-spell-calculations-for-scrolls branch 2 times, most recently from 8427dc9 to 2daea8b Compare June 2, 2023 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants