示例#1
0
        static void createRestorationDomain()
        {
            var pharasma = library.Get <BlueprintFeature>("458750bc214ab2e44abdeae404ab22e9");

            var descriptors = new SpellDescriptor[] { SpellDescriptor.Shaken, SpellDescriptor.Daze, SpellDescriptor.Fatigue, SpellDescriptor.Sickened, SpellDescriptor.Staggered };
            var icon        = Helpers.GetIcon("caae1dc6fcf7b37408686971ee27db13");

            var resource = Helpers.CreateAbilityResource("RestorativeTouchResource", "", "", "", null);

            resource.SetIncreasedByStat(3, StatType.Wisdom);

            var abilities = new List <BlueprintAbility>();

            foreach (var d in descriptors)
            {
                var a = Helpers.CreateAbility(d.ToString() + "RestorativeTouchAbility",
                                              "Restortaive Touch: " + d.ToString(),
                                              "You can touch a creature, letting the healing power of your deity flow through you to relieve the creature of a minor condition. Your touch can remove the dazed, fatigued, shaken, sickened, or staggered condition. You choose which condition is removed. You can use this ability a number of times per day equal to 3 + your Wisdom modifier.",
                                              "",
                                              icon,
                                              AbilityType.Supernatural,
                                              Kingmaker.UnitLogic.Commands.Base.UnitCommand.CommandType.Standard,
                                              AbilityRange.Touch,
                                              "",
                                              "",
                                              Helpers.CreateRunActions(Helpers.Create <ContextActionRemoveBuffsByDescriptor>(c => c.SpellDescriptor = d)),
                                              resource.CreateResourceLogic(),
                                              Common.createAbilitySpawnFx("224fb8fd952ec4d45b6d3436a77663d9", anchor: Kingmaker.UnitLogic.Abilities.Components.Base.AbilitySpawnFxAnchor.SelectedTarget,
                                                                          position_anchor: Kingmaker.UnitLogic.Abilities.Components.Base.AbilitySpawnFxAnchor.None,
                                                                          orientation_anchor: Kingmaker.UnitLogic.Abilities.Components.Base.AbilitySpawnFxAnchor.None
                                                                          )
                                              );
                a.setMiscAbilityParametersTouchFriendly();
                abilities.Add(a);
            }

            var wrapper = Common.createVariantWrapper("RestorativeTouchBase", "", abilities.ToArray());

            wrapper.SetName("Restorative Touch");
            var restorative_touch = Common.AbilityToFeature(wrapper, false);

            restorative_touch.AddComponent(resource.CreateAddAbilityResource());

            var healing_domain           = library.Get <BlueprintProgression>("b0a26ee984b6b6945b884467aa2f1baa");
            var healing_domain_secondary = library.Get <BlueprintProgression>("599fb0d60358c354d8c5c4304a73e19a");


            var healing_domain_base = library.Get <BlueprintFeature>("303cf1c933f343c4d91212f8f4953e3c");

            var spell_list = library.CopyAndAdd <BlueprintSpellList>("033b2b6a8899be844ae8aa91d4dab477", "RestorationSubdomainSpellList", "");

            Common.excludeSpellsFromList(spell_list, a => false);
            restoration_domain = createSubdomain("RestorationSubdomain", "Restoration Subdomain",
                                                 "Your touch staves off pain and death, and your healing magic is particularly vital and potent.\n" +
                                                 $"{wrapper.Name}: {wrapper.Description}\n" +
                                                 "Healer's Blessing: At 6th level, all of your cure spells are treated as if they were empowered, increasing the amount of damage healed by half (+50%). This does not apply to damage dealt to undead with a cure spell. This does not stack with the Empower Spell metamagic feat.\n"
                                                 + "Domain Spells: Remove Sickness, Remove Disease, Lesser, Cure Serious Wounds, Neutralize Poison, Break Enchantment, Heal, Restoration, Greater, Protection from Spells, Heal, Mass.",
                                                 healing_domain,
                                                 new BlueprintFeature[] { healing_domain_base },
                                                 new BlueprintFeature[] { restorative_touch },
                                                 spell_list
                                                 );
            Common.replaceDomainSpell(restoration_domain, library.Get <BlueprintAbility>("4093d5a0eb5cae94e909eb1e0e1a6b36"), 2);
            Common.replaceDomainSpell(restoration_domain, library.Get <BlueprintAbility>("e7240516af4241b42b2cd819929ea9da"), 4);
            Common.replaceDomainSpell(restoration_domain, library.Get <BlueprintAbility>("7792da00c85b9e042a0fdfc2b66ec9a8"), 5);
            restoration_domain.AddComponents(Helpers.PrerequisiteNoFeature(healing_domain), Helpers.PrerequisiteNoFeature(pharasma));

            restoration_domain_secondary = library.CopyAndAdd(restoration_domain, "RestorationSubdomainSecondaryProgression", "");
            restoration_domain_secondary.RemoveComponents <LearnSpellList>();

            restoration_domain_secondary.AddComponents(Helpers.PrerequisiteNoFeature(restoration_domain),
                                                       Helpers.PrerequisiteNoFeature(healing_domain),
                                                       Helpers.PrerequisiteNoFeature(healing_domain_secondary));
            restoration_domain.AddComponents(Helpers.PrerequisiteNoFeature(restoration_domain_secondary));

            cleric_domain_selection.AllFeatures           = cleric_domain_selection.AllFeatures.AddToArray(restoration_domain);
            cleric_secondary_domain_selection.AllFeatures = cleric_secondary_domain_selection.AllFeatures.AddToArray(restoration_domain_secondary);
        }
示例#2
0
        static void createLightningDomain()
        {
            var shelyn = library.Get <BlueprintFeature>("b382afa31e4287644b77a8b30ed4aa0b");
            var buff   = Helpers.CreateBuff("LightningRodBuff",
                                            "Lightning Rod",
                                            "As a swift action when you cast a spell with the electricity descriptor, you can designate one creature within line of sight. The spell’s damage against that creature increases by 50%, as if affected by the Empower Spell feat. This additional damage results from divine power that is not subject to being reduced by electricity resistance, and you take an equal amount of electricity damage immediately after you cast the spell.\n"
                                            + "The spell can deal this additional damage only once, even if it could affect the target multiple times.\n"
                                            + "You can use this ability once per day at 8th level and one additional time per day for every 4 cleric levels you have beyond 8th.",
                                            "",
                                            Helpers.GetIcon("d2cff9243a7ee804cb6d5be47af30c73"),
                                            null,
                                            Helpers.Create <SpellManipulationMechanics.DamageBoostAndReflection>(d =>
            {
                d.change_damage_type         = true;
                d.change_reflect_damage_type = true;
                d.reflect_damage             = true;
                d.remove_self_on_apply       = true;
                d.damage_type         = Kingmaker.Enums.Damage.DamageEnergyType.Holy;
                d.reflect_damage_type = Kingmaker.Enums.Damage.DamageEnergyType.Electricity;
                d.descriptor          = SpellDescriptor.Electricity;
                d.only_from_caster    = true;
                d.only_spells         = true;
            }),
                                            Helpers.Create <UniqueBuff>()
                                            );

            buff.Stacking = StackingType.Stack;
            var resource = Helpers.CreateAbilityResource("LightningRodResource", "", "", "", null);

            resource.SetIncreasedByLevelStartPlusDivStep(1, 12, 1, 4, 1, 0, 0.0f, new BlueprintCharacterClass[] { cleric_class, druid_class, inquisitor_class });

            var ability = Helpers.CreateAbility("LightningRodAbility",
                                                buff.Name,
                                                buff.Description,
                                                "",
                                                buff.Icon,
                                                AbilityType.Supernatural,
                                                Kingmaker.UnitLogic.Commands.Base.UnitCommand.CommandType.Swift,
                                                AbilityRange.Long,
                                                Helpers.oneRoundDuration,
                                                "",
                                                Helpers.CreateRunActions(Common.createContextActionApplyBuff(buff, Helpers.CreateContextDuration(1), dispellable: false)),
                                                resource.CreateResourceLogic()
                                                );

            ability.setMiscAbilityParametersSingleTargetRangedHarmful(true);
            ability.CanTargetSelf = false;

            var feature = Common.AbilityToFeature(ability, false);

            feature.AddComponent(Helpers.CreateAddAbilityResource(resource));

            var air_domain           = library.Get <BlueprintProgression>("750bfcd133cd52f42acbd4f7bc9cc365");
            var air_domain_secondary = library.Get <BlueprintProgression>("d7169e8978d9e9d418398eab946c49e5");
            var air_domain_druid     = library.Get <BlueprintProgression>("3aef017b78329db4fa53fe8560069886");

            var air_domain_greater  = library.Get <BlueprintFeature>("8a8e3f80abc04c34b98324823d14b057");
            var air_domain_capstone = library.Get <BlueprintFeature>("d5a54e5a3876f5a498abad99b1984cb5");

            var spell_list = library.CopyAndAdd <BlueprintSpellList>("9678d121f669f864d9da5dabf1ca1ce0", "LightningSubdomainSpellList", "");

            Common.excludeSpellsFromList(spell_list, a => false);

            lightning_domain = createSubdomain("LightningSubdomain", "Lightning Subdomain",
                                               "You can manipulate lightning, mist, and wind, and are resistant to electricity damage.\nLightning Arc: As a standard action, you can unleash an arc of electricity targeting any foe within 30 feet as a ranged touch attack. This arc of electricity deals 1d6 points of electricity damage + 1 point for every two levels you possess in the class that gave you access to this domain. You can use this ability a number of times per day equal to 3 + your Wisdom modifier.\n"
                                               + ability.Name + ": " + ability.Description + "\n"
                                               + "Domain Spells: Shocking Grasp, Flame Blade (deals electricity damage and gains the electricity descriptor instead of fire), Lightning Bolt, Air Walk, Cloudkill, Chain Lightning, Elemental Body IV (Air), Shout, Greater, Elemental Swarm (Air).",
                                               air_domain,
                                               new BlueprintFeature[] { air_domain_greater, air_domain_greater, air_domain_capstone },
                                               new BlueprintFeature[] { feature, null, null },
                                               spell_list
                                               );

            Common.replaceDomainSpell(lightning_domain, library.Get <BlueprintAbility>("ab395d2335d3f384e99dddee8562978f"), 1);
            Common.replaceDomainSpell(lightning_domain, CallOfTheWild.NewSpells.flame_blade_electric, 2);
            lightning_domain.AddComponents(Helpers.PrerequisiteNoFeature(air_domain), Helpers.PrerequisiteNoFeature(shelyn));

            lightning_domain.LevelEntries[1].Level = 8;

            lightning_domain_secondary = library.CopyAndAdd(lightning_domain, "LightningSubdomainSecondaryProgression", "");
            lightning_domain_secondary.RemoveComponents <LearnSpellList>();

            lightning_domain_secondary.AddComponent(Helpers.PrerequisiteNoFeature(lightning_domain));

            lightning_domain_druid                 = library.CopyAndAdd(lightning_domain_secondary, "LightningSubdomainDruidProgression", "");
            lightning_domain_druid.Classes         = new BlueprintCharacterClass[] { druid_class };
            lightning_domain_druid.ComponentsArray = new BlueprintComponent[] { Helpers.PrerequisiteNoFeature(air_domain_druid), Helpers.PrerequisiteClassLevel(druid_class, 1) };
            air_domain_druid.AddComponent(Helpers.PrerequisiteNoFeature(lightning_domain_druid));

            air_domain.AddComponents(Helpers.PrerequisiteNoFeature(lightning_domain), Helpers.PrerequisiteNoFeature(lightning_domain_secondary));
            air_domain_secondary.AddComponents(Helpers.PrerequisiteNoFeature(lightning_domain), Helpers.PrerequisiteNoFeature(lightning_domain_secondary));
            var air_domain_base = library.Get <BlueprintFeature>("39b0c7db785560041b436b558c9df2bb");

            air_domain_base.SetNameDescription(library.Get <BlueprintAbility>("b3494639791901e4db3eda6117ad878f"));

            var spells_feature_druid = library.CopyAndAdd <BlueprintFeature>("01c9f3756c9d2e1488b6a2d29dd9d37f", "LightningDomainSpellListDruidFeature", "");

            spells_feature_druid.ReplaceComponent <AddSpecialSpellList>(a => a.SpellList = spell_list);
            lightning_domain_druid.LevelEntries = new LevelEntry[] { Helpers.LevelEntry(1, lightning_domain_druid.LevelEntries[0].Features.ToArray().AddToArray(spells_feature_druid)),
                                                                     lightning_domain_druid.LevelEntries[1] };

            cleric_domain_selection.AllFeatures           = cleric_domain_selection.AllFeatures.AddToArray(lightning_domain);
            cleric_secondary_domain_selection.AllFeatures = cleric_secondary_domain_selection.AllFeatures.AddToArray(lightning_domain_secondary);
            druid_domain_selection.AllFeatures            = druid_domain_selection.AllFeatures.AddToArray(lightning_domain_druid);
            blight_druid_domain_selection.AllFeatures     = blight_druid_domain_selection.AllFeatures.AddToArray(lightning_domain_druid);
        }
        static void createRageDomain()
        {
            var barbarian  = library.Get <BlueprintCharacterClass>("f7d7eb166b3dd594fb330d085df41853");
            var groetus    = library.Get <BlueprintFeature>("c3e4d5681906d5246ab8b0637b98cbfe");
            var zon_kuthon = library.Get <BlueprintFeature>("f7eed400baa66a744ad361d4df0e6f1b");

            var rage_feature         = library.Get <BlueprintFeature>("2479395977cfeeb46b482bc3385f4647");
            var rage_power_selection = library.Get <BlueprintFeatureSelection>("28710502f46848d48b3f0d6132817c4e");

            var fake_barbarian = library.CopyAndAdd(barbarian, "FakeBarbarianClass", "");
            var rage_resource  = library.Get <BlueprintAbilityResource>("24353fcf8096ea54684a72bf58dedbc9");

            rage_resource.SetIncreasedByLevelStartPlusDivStep(0, 1, 4, 1, 2, 0, 0.0f, new BlueprintCharacterClass[] { barbarian });
            rage_resource.SetIncreasedByStat(0, StatType.Constitution);
            var rage_buff = library.Get <BlueprintBuff>("da8ce41ac3cd74742b80984ccc3c9613");
            var feature   = Helpers.CreateFeature("RageRageSubdomainFeature",
                                                  "Rage",
                                                  "At 8th level, you can enter a fearsome rage, like a barbarian, for a number of rounds per day equal to your cleric level + your constitution modifier.",
                                                  "",
                                                  rage_feature.Icon,
                                                  FeatureGroup.None,
                                                  Helpers.CreateAddFact(rage_feature),
                                                  Helpers.Create <FakeClassLevelMechanics.AddFakeClassLevel>(a => { a.fake_class = fake_barbarian; a.value = Helpers.CreateContextValue(AbilityRankType.Default); }),
                                                  Helpers.CreateContextRankConfig(ContextRankBaseValueType.ClassLevel, classes: new BlueprintCharacterClass[] { cleric_class, druid_class, inquisitor_class },
                                                                                  progression: ContextRankProgression.Div2),
                                                  Helpers.CreateContextRankConfig(ContextRankBaseValueType.ClassLevel, classes: new BlueprintCharacterClass[] { cleric_class, druid_class, inquisitor_class },
                                                                                  type: AbilityRankType.StatBonus),
                                                  Helpers.Create <IncreaseResourceAmountBySharedValue>(i => { i.Resource = rage_resource; i.Value = Helpers.CreateContextValue(AbilityRankType.StatBonus); })
                                                  );

            feature.ReapplyOnLevelUp = true;


            var new_rage_power = library.CopyAndAdd(rage_power_selection, "RageSubdomainRagePowerSelection", "");

            new_rage_power.SetNameDescription(new_rage_power.Name,
                                              "At 12th and 16th level, you can select one rage power. You cannot select any rage power that possesses a level requirement, but otherwise your barbarian level is equal to 1/2 your cleric level.");

            ClassToProgression.addClassToBuff(fake_barbarian, new BlueprintArchetype[0], rage_buff, barbarian);
            foreach (var f in new_rage_power.AllFeatures)
            {
                ClassToProgression.addClassToFeat(fake_barbarian, new BlueprintArchetype[0], ClassToProgression.DomainSpellsType.NoSpells, f, barbarian);
            }


            var destruction_domain           = library.Get <BlueprintProgression>("269ff0bf4596f5248864bc2653a2f0e0");
            var destruction_domain_secondary = library.Get <BlueprintProgression>("8edced7121849414f8b1dc77a119b4a2");
            var destruction_domain_druid     = library.Get <BlueprintProgression>("7a73be7fab8efd34b8449e0fbba8399e");

            var destruction_domain_greater = library.Get <BlueprintFeature>("b047e72c88cbdfe409ea0aaea3dfddf6");

            var spell_list = library.CopyAndAdd <BlueprintSpellList>("6f9fe425726026d4f9c28c32d5d03481", "RageSubdomainSpellList", "");

            Common.excludeSpellsFromList(spell_list, a => false);
            rage_domain = createSubdomain("RageSubdomain", "Rage Subdomain",
                                          "You revel in ruin and devastation, and can deliver particularly destructive attacks.\n"
                                          + "Destructive Smite: You gain the the supernatural ability to make a melee attack with a morale bonus on damage rolls equal to 1/2 your level in the class that gave you access to this domain (minimum 1).\n"
                                          + feature.Name + ": " + feature.Description + "\n"
                                          + "Domain Spells: True Strike, Boneshaker, Rage, Fear, Boneshatter, Harm, Disintegrate, Horrid Wilting, Tsunami.",
                                          destruction_domain,
                                          new BlueprintFeature[] { destruction_domain_greater },
                                          new BlueprintFeature[] { feature },
                                          spell_list
                                          );

            Common.replaceDomainSpell(rage_domain, library.Get <BlueprintAbility>("4c3d08935262b6544ae97599b3a9556d"), 2); //bull strength

            rage_domain.AddComponents(Helpers.PrerequisiteNoFeature(destruction_domain),
                                      Helpers.PrerequisiteNoFeature(groetus),
                                      Helpers.PrerequisiteNoFeature(zon_kuthon)
                                      );

            rage_domain.LevelEntries = rage_domain.LevelEntries.AddToArray(Helpers.LevelEntry(12, new_rage_power),
                                                                           Helpers.LevelEntry(16, new_rage_power)
                                                                           );
            rage_domain.UIGroups[0].Features.Add(new_rage_power);

            rage_domain_secondary = library.CopyAndAdd(rage_domain, "RageSubdomainSecondaryProgression", "");
            rage_domain_secondary.RemoveComponents <LearnSpellList>();

            rage_domain_secondary.AddComponents(Helpers.PrerequisiteNoFeature(rage_domain),
                                                Helpers.PrerequisiteNoFeature(destruction_domain),
                                                Helpers.PrerequisiteNoFeature(destruction_domain_secondary));
            rage_domain.AddComponents(Helpers.PrerequisiteNoFeature(destruction_domain_secondary));
            rage_domain_druid                 = library.CopyAndAdd(destruction_domain_secondary, "RageSubdomainDruidProgression", "");
            rage_domain_druid.Classes         = new BlueprintCharacterClass[] { druid_class };
            rage_domain_druid.ComponentsArray = new BlueprintComponent[] { Helpers.PrerequisiteNoFeature(destruction_domain_druid), Helpers.PrerequisiteClassLevel(druid_class, 1) };
            destruction_domain_druid.AddComponent(Helpers.PrerequisiteNoFeature(rage_domain_druid));
            destruction_domain.AddComponents(Helpers.PrerequisiteNoFeature(rage_domain), Helpers.PrerequisiteNoFeature(rage_domain_secondary));
            destruction_domain_secondary.AddComponents(Helpers.PrerequisiteNoFeature(rage_domain), Helpers.PrerequisiteNoFeature(rage_domain_secondary));

            var destruction_domain_base         = rage_domain.LevelEntries[0].Features[0];
            var destruction_domain_base_ability = library.Get <BlueprintActivatableAbility>("e69898f762453514780eb5e467694bdb");

            destruction_domain_base.SetNameDescription(destruction_domain_base_ability.Name, destruction_domain_base_ability.Description);

            var spells_feature_druid = library.CopyAndAdd <BlueprintFeature>("01c9f3756c9d2e1488b6a2d29dd9d37f", "RageDomainSpellListDruidFeature", "");

            spells_feature_druid.ReplaceComponent <AddSpecialSpellList>(a => a.SpellList = spell_list);
            rage_domain_druid.LevelEntries = new LevelEntry[] { Helpers.LevelEntry(1, rage_domain_druid.LevelEntries[0].Features.ToArray().AddToArray(spells_feature_druid)),
                                                                rage_domain.LevelEntries[1],
                                                                rage_domain.LevelEntries[2],
                                                                rage_domain.LevelEntries[3] };

            cleric_domain_selection.AllFeatures           = cleric_domain_selection.AllFeatures.AddToArray(rage_domain);
            cleric_secondary_domain_selection.AllFeatures = cleric_secondary_domain_selection.AllFeatures.AddToArray(rage_domain_secondary);
            blight_druid_domain_selection.AllFeatures     = blight_druid_domain_selection.AllFeatures.AddToArray(rage_domain_druid);
        }
示例#4
0
        static void createStormsDomain()
        {
            var gozreh = library.Get <BlueprintFeature>("4af983eec2d821b40a3065eb5e8c3a72");
            var difficult_terrain_buff = library.CopyAndAdd <BlueprintBuff>("762f5da59182e9b4b90c62ed3142b732", "GaleAuraEffectBuff", "");

            var area_buff = Common.createBuffAreaEffect(difficult_terrain_buff, 20.Feet(), Helpers.CreateConditionsCheckerAnd(Helpers.Create <ContextConditionIsEnemy>(), Common.createContextConditionHasFact(NewSpells.immunity_to_wind, false)));
            //area_buff.GetComponent<AddAreaEffect>().AreaEffect.Fx = Common.createPrefabLink("9f9ebe136ce5a9345b5b016f011c5aa6");

            var buff = Helpers.CreateBuff("GaleAuraBuff",
                                          "Gale Aura",
                                          "At 6th level, as a standard action, you can create a 20-foot aura of gale-like winds that slows the progress of enemies. Creatures in the aura cannot take a 5-foot step. Enemies in the aura treat each square that brings them closer to you as difficult terrain. They can move normally in any other direction. You can use this ability for a number of rounds per day equal to your cleric level. The rounds do not need to be consecutive.",
                                          "",
                                          Helpers.GetIcon("093ed1d67a539ad4c939d9d05cfe192c"),
                                          Common.createPrefabLink("9f9ebe136ce5a9345b5b016f011c5aa6")
                                          );


            var resource = Helpers.CreateAbilityResource("GaleAuraResource", "", "", "", null);

            resource.SetIncreasedByLevel(0, 1, new BlueprintCharacterClass[] { cleric_class, druid_class, inquisitor_class });

            var ability = Helpers.CreateActivatableAbility("GaleAuraToggleAbility",
                                                           buff.Name,
                                                           buff.Description,
                                                           "",
                                                           buff.Icon,
                                                           buff,
                                                           AbilityActivationType.WithUnitCommand,
                                                           Kingmaker.UnitLogic.Commands.Base.UnitCommand.CommandType.Standard,
                                                           null,
                                                           resource.CreateActivatableResourceLogic(ActivatableAbilityResourceLogic.ResourceSpendType.NewRound)
                                                           );

            var feature = Common.ActivatableAbilityToFeature(ability, false);

            feature.AddComponent(Helpers.CreateAddAbilityResource(resource));

            var weather_domain = library.Get <BlueprintProgression>("c18a821ee662db0439fb873165da25be");
            var weather_domain_domain_secondary = library.Get <BlueprintProgression>("d124d29c7c96fc345943dd17e24990e8");
            var weather_domain_domain_druid     = library.Get <BlueprintProgression>("4a3516fdc4cda764ebd1279b22d10205");

            var weather_domain_greater = library.Get <BlueprintFeature>("8e44306af595c8d44aad2f1260fd7be2");

            var spell_list = library.CopyAndAdd <BlueprintSpellList>("eba577470b8ee8443bb4552433451990", "StormsSubdomainSpellList", "700ec962456941d79fc50144be87c97a");

            Common.excludeSpellsFromList(spell_list, a => false);
            storm_domain = createSubdomain("StormsSubdomain", "Storms Subdomain",
                                           "With power over storm and sky, you can call down the wrath of the gods upon the world below.\nStorm Burst: As a standard action, you can create a storm burst targeting any foe within 30 feet as a ranged touch attack. The storm burst deals 1d6 points of damage + 1 point for every two levels you possess in the class that gave you access to this domain. In addition, the target is buffeted by winds and rain, causing it to take a –2 penalty on attack rolls for 1 round. You can use this ability a number of times per day equal to 3 + your Wisdom modifier.\n"
                                           + ability.Name + ": " + ability.Description + "\n"
                                           + "Domain Spells: Obscuring Mist, Summon Small Elemental, Call Lightning, Sleet Storm, Call Lightning Storm, Sirocco, Scouring Winds, Sunburst, Tsunami.",
                                           weather_domain,
                                           new BlueprintFeature[] { weather_domain_greater },
                                           new BlueprintFeature[] { feature },
                                           spell_list
                                           );
            Common.replaceDomainSpell(storm_domain, library.Get <BlueprintAbility>("cad052ef098f9f247ab73ae4c37ac687"), 5);
            storm_domain.AddComponents(Helpers.PrerequisiteNoFeature(weather_domain), Helpers.PrerequisiteNoFeature(gozreh));

            storm_domain.LevelEntries[1].Level = 6;

            storm_domain_secondary = library.CopyAndAdd(storm_domain, "StormSubdomainSecondaryProgression", "");
            storm_domain_secondary.RemoveComponents <LearnSpellList>();

            storm_domain_secondary.AddComponents(Helpers.PrerequisiteNoFeature(storm_domain),
                                                 Helpers.PrerequisiteNoFeature(weather_domain),
                                                 Helpers.PrerequisiteNoFeature(weather_domain_domain_secondary));
            storm_domain.AddComponents(Helpers.PrerequisiteNoFeature(storm_domain_secondary));
            storm_domain_druid                 = library.CopyAndAdd(storm_domain_secondary, "StormSubdomainDruidProgression", "");
            storm_domain_druid.Classes         = new BlueprintCharacterClass[] { druid_class };
            storm_domain_druid.ComponentsArray = new BlueprintComponent[] { Helpers.PrerequisiteNoFeature(weather_domain_domain_druid), Helpers.PrerequisiteClassLevel(druid_class, 1) };
            weather_domain_domain_druid.AddComponent(Helpers.PrerequisiteNoFeature(storm_domain_druid));
            weather_domain.AddComponents(Helpers.PrerequisiteNoFeature(storm_domain), Helpers.PrerequisiteNoFeature(storm_domain_secondary));
            weather_domain_domain_secondary.AddComponents(Helpers.PrerequisiteNoFeature(storm_domain), Helpers.PrerequisiteNoFeature(storm_domain_secondary));
            var weather_domain_base = library.Get <BlueprintFeature>("1c37869ee06ca33459f16f23f4969e7d");

            weather_domain_base.SetNameDescription(library.Get <BlueprintAbility>("f166325c271dd29449ba9f98d11542d9"));

            var spells_feature_druid = library.CopyAndAdd <BlueprintFeature>("01c9f3756c9d2e1488b6a2d29dd9d37f", "StormsDomainSpellListDruidFeature", "");

            spells_feature_druid.ReplaceComponent <AddSpecialSpellList>(a => a.SpellList = spell_list);
            storm_domain_druid.LevelEntries = new LevelEntry[] { Helpers.LevelEntry(1, storm_domain_druid.LevelEntries[0].Features.ToArray().AddToArray(spells_feature_druid)),
                                                                 storm_domain_druid.LevelEntries[1] };

            cleric_domain_selection.AllFeatures           = cleric_domain_selection.AllFeatures.AddToArray(storm_domain);
            cleric_secondary_domain_selection.AllFeatures = cleric_secondary_domain_selection.AllFeatures.AddToArray(storm_domain_secondary);
            druid_domain_selection.AllFeatures            = druid_domain_selection.AllFeatures.AddToArray(storm_domain_druid);
            blight_druid_domain_selection.AllFeatures     = blight_druid_domain_selection.AllFeatures.AddToArray(storm_domain_druid);
        }
        static void createCurseSubdomain()
        {
            var shelyn = library.Get <BlueprintFeature>("b382afa31e4287644b77a8b30ed4aa0b");
            var icon   = Helpers.GetIcon("582009cf6013790469d6e98e5210477a"); //eyebite

            var resource = Helpers.CreateAbilityResource("CurseSubdomainMalignEyeResource", "", "", "", null);

            resource.SetIncreasedByStat(3, StatType.Wisdom);

            var buff = Helpers.CreateBuff("CurseSubdomainMalignEyeBuff",
                                          "",
                                          "",
                                          "",
                                          null,
                                          null,
                                          Helpers.Create <NewMechanics.SavingThrowBonusAgainstCaster>(s => { s.Descriptor = ModifierDescriptor.UntypedStackable; s.Value = -2; })
                                          );

            var ability = Helpers.CreateAbility("CurseSubdomainMalignEyeAbility",
                                                "Malign Eye",
                                                "As a standard action, you can afflict one target within close range with your malign eye, causing it to take a –2 penalty on all saving throws against your spells. The effect lasts for 1 minute or until the target hits you with an attack. You can use this ability for a number of times per day equal to 3 + your Wisdom modifier.",
                                                "",
                                                icon,
                                                AbilityType.Supernatural,
                                                Kingmaker.UnitLogic.Commands.Base.UnitCommand.CommandType.Standard,
                                                AbilityRange.Close,
                                                "",
                                                "",
                                                Helpers.CreateRunActions(Common.createContextActionApplyBuff(buff, Helpers.CreateContextDuration(1, DurationRate.Minutes), dispellable: false)),
                                                resource.CreateResourceLogic(),
                                                Common.createAbilitySpawnFx("cbfe312cb8e63e240a859efaad8e467c", anchor: Kingmaker.UnitLogic.Abilities.Components.Base.AbilitySpawnFxAnchor.SelectedTarget,
                                                                            position_anchor: Kingmaker.UnitLogic.Abilities.Components.Base.AbilitySpawnFxAnchor.None,
                                                                            orientation_anchor: Kingmaker.UnitLogic.Abilities.Components.Base.AbilitySpawnFxAnchor.None
                                                                            )
                                                );

            ability.setMiscAbilityParametersSingleTargetRangedHarmful(true);
            var malign_eye = Common.AbilityToFeature(ability, false);

            malign_eye.AddComponent(resource.CreateAddAbilityResource());


            var luck_domain           = library.Get <BlueprintProgression>("8bd8cfad69085654b9118534e4aa215e");
            var luck_domain_secondary = library.Get <BlueprintProgression>("1ba7fc652568a524db218ccff2f9ed90");


            var luck_domain_base = library.Get <BlueprintFeature>("2b3818bf4656c1a41b93467755662c78");

            var spell_list = library.CopyAndAdd <BlueprintSpellList>("9e756552e9b05ce459feac658dd2d8fb", "CurseSubdomainSpellList", "");

            Common.excludeSpellsFromList(spell_list, a => false);
            curse_domain = createSubdomain("CurseSubdomain", "Curse Subdomain",
                                           "You are infused with power to curse others, and your mere presence can spread misfortune.\n" +
                                           $"{ability.Name}: {ability.Description}\n" +
                                           "Divine Fortune: At 6th level, as a standard action, you can bless yourself with divine luck. For the next half your level in the class that gave you access to this domain rounds you roll two times on every d20 roll and take the best result. You can use this ability once per day at 6th level, and one additional time per day for every 6 levels in the class that gave you access to this domain beyond 6th.\n"
                                           + "Domain Spells: True Strike, Aid, Protection From Energy, Protection from Energy, Communal, Break Enchantment, Cat's Grace, Mass, Restoration, Greater, Euphoric Tranquility, Heal, Mass",
                                           luck_domain,
                                           new BlueprintFeature[] { luck_domain_base },
                                           new BlueprintFeature[] { malign_eye },
                                           spell_list
                                           );
            Common.replaceDomainSpell(curse_domain, library.Get <BlueprintAbility>("8bc64d869456b004b9db255cdd1ea734"), 1);
            Common.replaceDomainSpell(curse_domain, library.Get <BlueprintAbility>("989ab5c44240907489aba0a8568d0603"), 3); //bestow curse
            Common.replaceDomainSpell(curse_domain, library.Get <BlueprintAbility>("3167d30dd3c622c46b0c0cb242061642"), 6); //eyebite
            curse_domain.AddComponents(Helpers.PrerequisiteNoFeature(luck_domain), Helpers.PrerequisiteNoFeature(shelyn));

            curse_domain_secondary = library.CopyAndAdd(restoration_domain, "CurseSubdomainSecondaryProgression", "");
            curse_domain_secondary.RemoveComponents <LearnSpellList>();

            curse_domain_secondary.AddComponents(Helpers.PrerequisiteNoFeature(curse_domain),
                                                 Helpers.PrerequisiteNoFeature(luck_domain),
                                                 Helpers.PrerequisiteNoFeature(luck_domain_secondary));
            restoration_domain.AddComponents(Helpers.PrerequisiteNoFeature(curse_domain_secondary));

            cleric_domain_selection.AllFeatures           = cleric_domain_selection.AllFeatures.AddToArray(curse_domain);
            cleric_secondary_domain_selection.AllFeatures = cleric_secondary_domain_selection.AllFeatures.AddToArray(curse_domain_secondary);
        }