Ejemplo n.º 1
0
            static bool Prefix(AddSpecialSpellList __instance)
            {
                if (__instance.Owner.GetSpellbook(__instance.CharacterClass) == null)
                {
                    return(false);
                }

                return(true);
            }
Ejemplo n.º 2
0
 static private void FixSpecializationSchoolMainFeats()
 {
     //add AddSpecialSpellList for Arcanist
     foreach (string featId in config.SchoolSpecializationMainFeatIds)
     {
         var mainFeat = library.Get <BlueprintFeature>(featId);
         AddSpecialSpellList compWiz = mainFeat.GetComponent <AddSpecialSpellList>();
         if (compWiz == null)
         {
             throw new Exception($"Wrong at SchoolSavant.FixSpecializationSchoolMainFeats! compWiz of {mainFeat.name} get null.");
         }
         AddSpecialSpellList compArc = UnityEngine.Object.Instantiate(compWiz);
         compArc.CharacterClass = ArcanistClass.arcanist;
         mainFeat.AddComponent(compArc);
     }
 }