static void addToVersatileChanneler(ChannelEntry entry) { if (versatile_channeler == null) { return; } var cleric = library.Get <BlueprintCharacterClass>("67819271767a9dd4fbfd4ae700befea0"); if (entry.scalesWithClass(cleric)) { if (entry.channel_type.isOf(ChannelType.Positive)) { var comp = versatile_channeler_positive.GetComponent <NewMechanics.ContextIncreaseCasterLevelForSelectedSpells>(); comp.spells = comp.spells.AddToArray(entry.ability); } else if (entry.channel_type.isOf(ChannelType.Negative)) { var comp = versatile_channeler_negative.GetComponent <NewMechanics.ContextIncreaseCasterLevelForSelectedSpells>(); comp.spells = comp.spells.AddToArray(entry.ability); } } if (entry.scalesWithClass(Warpriest.warpriest_class)) { if (entry.channel_type.isOf(ChannelType.Positive)) { var comp = versatile_channeler_positive_warpriest.GetComponent <NewMechanics.ContextIncreaseCasterLevelForSelectedSpells>(); comp.spells = comp.spells.AddToArray(entry.ability); } else if (entry.channel_type.isOf(ChannelType.Negative)) { var comp = versatile_channeler_negative_warpriest.GetComponent <NewMechanics.ContextIncreaseCasterLevelForSelectedSpells>(); comp.spells = comp.spells.AddToArray(entry.ability); } } }
static void addToWitchImprovedChannelHexScaling(ChannelEntry entry) { if (witch_channel_negative == null) { return; } if (!entry.scalesWithClass(Witch.witch_class)) { return; } if ((entry.channel_type & ChannelType.Negative) != ChannelType.None) { var comp = witch_channel_negative.GetComponent <NewMechanics.ContextIncreaseCasterLevelForSelectedSpells>(); comp.spells = comp.spells.AddToArray(entry.ability); } if ((entry.channel_type & ChannelType.Positive) != ChannelType.None) { var comp = witch_channel_positive.GetComponent <NewMechanics.ContextIncreaseCasterLevelForSelectedSpells>(); comp.spells = comp.spells.AddToArray(entry.ability); } }
static void addToChannelingScourge(ChannelEntry c) { if (channeling_scourge == null) { return; } var cleric = library.Get <BlueprintCharacterClass>("67819271767a9dd4fbfd4ae700befea0"); if (c.channel_type.isOf(ChannelType.Harm) && c.channel_type.isNotOf(ChannelType.BackToTheGrave) && c.scalesWithClass(cleric)) { var components = channeling_scourge.GetComponents <NewMechanics.ContextIncreaseCasterLevelForSelectedSpells>(); foreach (var component in components) { component.spells = component.spells.AddToArray(c.ability); } } }