internal static void FixBloodlineSpell(BlueprintAbility spell, String bloodlineId, String addSpellId) { var addSpellFeat = Library.Get <BlueprintFeature>(addSpellId); addSpellFeat.SetNameDescriptionIcon(spell.Name, string.Format(RES.FixBloodlineSpellDescription_info, spell.Description), spell.Icon); // Fix the spell, and the spell recommendations. var addSpell = addSpellFeat.GetComponent <AddKnownSpell>(); var oldSpell = addSpell.Spell; oldSpell.RemoveRecommendNoFeatureGroup(bloodlineId); spell.AddRecommendNoFeature(addSpellFeat); addSpell.Spell = spell; }
internal static void FixBloodlineSpell(BlueprintAbility spell, String bloodlineId, String addSpellId) { var addSpellFeat = library.Get <BlueprintFeature>(addSpellId); var prefix = Main.lc.GetTranslate("Wish.SorcererBloodlineSpellDesc"); addSpellFeat.SetNameDescriptionIcon(spell.Name, $"{prefix}{spell.Description}", spell.Icon); // Fix the spell, and the spell recommendations. var addSpell = addSpellFeat.GetComponent <AddKnownSpell>(); var oldSpell = addSpell.Spell; oldSpell.RemoveRecommendNoFeatureGroup(bloodlineId); spell.AddRecommendNoFeature(addSpellFeat); addSpell.Spell = spell; }
internal static void FixBloodlineSpell(BlueprintAbility spell, String bloodlineId, String addSpellId) { var addSpellFeat = library.Get <BlueprintFeature>(addSpellId); var prefix = "At 3rd level, and every two levels thereafter, a sorcerer learns an additional spell, derived from her bloodline. These spells are in addition to the number of spells given at new levels.\n"; addSpellFeat.SetNameDescriptionIcon(spell.Name, $"{prefix}{spell.Description}", spell.Icon); // Fix the spell, and the spell recommendations. var addSpell = addSpellFeat.GetComponent <AddKnownSpell>(); var oldSpell = addSpell.Spell; oldSpell.RemoveRecommendNoFeatureGroup(bloodlineId); spell.AddRecommendNoFeature(addSpellFeat); addSpell.Spell = spell; }