Permalink
Browse files

Actor::GetBaseCasterLevel: some research notes

ugh!
  • Loading branch information...
1 parent 831ed15 commit 1bbdb0565cec338b63d3abc760c17f89facddc9f @lynxlynxlynx lynxlynxlynx committed Jan 12, 2014
Showing with 4 additions and 1 deletion.
  1. +4 −1 gemrb/core/Scriptable/Actor.cpp
@@ -4374,8 +4374,11 @@ ieDword Actor::GetXPLevel(int modified) const
}
// returns the guessed caster level by passed spell type
-// FIXME: add iwd2 support (should be more precise, as there are more class types)
// FIXME: add more logic for cross-type kits (like avengers)?
+// FIXME: iwd2 does the right thing at least for spells cast from spellbooks;
+// that is, it takes the correct level, not first or average or min or max.
+// We need to propagate the spellbook info all through here. :/
+// NOTE: this is only problematic for multiclassed actors
ieDword Actor::GetBaseCasterLevel(int spelltype, int flags) const
{
int level = 0;

0 comments on commit 1bbdb05

Please sign in to comment.