Skip to content

Commit

Permalink
1.4.17
Browse files Browse the repository at this point in the history
  • Loading branch information
pheonix99 committed Sep 3, 2023
1 parent 6594a2f commit fbbc9ce
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 138 deletions.
7 changes: 7 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ NOW REQUIRES TabletopTweaks Core Module and ModMenu

## Changelog

### 1.4.17

Fixed duplication of new mercies in menu

Interoperabilty fix for Kinetic Lancer - no longer gets double metakinesis


### 1.4.16

Fix Mass Fly being disabled making things explode
Expand Down
2 changes: 1 addition & 1 deletion TomeOfTheFirebird/Info.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Id": "TomeOfTheFirebird",
"DisplayName": "Tome Of The Firebird",
"Author": "pheonix99",
"Version": "1.4.16",
"Version": "1.4.17",
"ManagerVersion": "0.21.3",
"AssemblyName": "TomeOfTheFirebird.dll",
"EntryMethod": "TomeOfTheFirebird.Main.Load",
Expand Down
38 changes: 0 additions & 38 deletions TomeOfTheFirebird/New Content/Archetypes/CinderAdept.cs

This file was deleted.

56 changes: 0 additions & 56 deletions TomeOfTheFirebird/New Content/Archetypes/KineticLancer.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
using TabletopTweaks.Core.Utilities;
using TomeOfTheFirebird.Helpers;
using TomeOfTheFirebird.New_Components;
using UniRx;
using static TabletopTweaks.Core.MechanicsChanges.MetamagicExtention;

namespace TomeOfTheFirebird.New_Content.Features
Expand Down Expand Up @@ -89,6 +90,19 @@ public static void Build()

}

public static void DoLast()
{
if (Settings.IsEnabled("TwinSpell"))
{
var lancer = BlueprintTool.Get<BlueprintArchetype>("022742CCA0CD414C98EED87F24AE5607");

if (lancer != null)
{
ArchetypeConfigurator.For(lancer).AddToRemoveFeatures(17, "MetakinesisDoubleFeature");
}
}
}

private static void SharedToggleStuff(ActivatableAbilityConfigurator toggle)
{
toggle.SetActivationType(Kingmaker.UnitLogic.ActivatableAbilities.AbilityActivationType.Immediately);
Expand Down
38 changes: 12 additions & 26 deletions TomeOfTheFirebird/New Content/Mercies/ExtraMercies.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using BlueprintCore.Actions.Builder;
using BlueprintCore.Actions.Builder.ContextEx;
using BlueprintCore.Blueprints.Configurators.Classes.Selection;
using BlueprintCore.Blueprints.CustomConfigurators.Classes;
using BlueprintCore.Blueprints.CustomConfigurators.Classes.Selection;
using BlueprintCore.Blueprints.CustomConfigurators.UnitLogic.Buffs;
using BlueprintCore.Conditions.Builder;
using BlueprintCore.Conditions.Builder.ContextEx;
using Kingmaker.Blueprints.Classes;
Expand Down Expand Up @@ -37,7 +39,7 @@ void BuildEnsorcelled()

BlueprintAbility dispel = BlueprintTools.GetBlueprint<BlueprintAbility>("b9be852b03568064b8d2275a6cf9e2de");
BlueprintCore.Blueprints.CustomConfigurators.Classes.FeatureConfigurator maker = MakerTools.MakeFeature("MercyEnsorcelled", "Mercy - Ensorcelled", "The paladin’s lay on hands also acts as dispel magic, using the paladin’s level as her caster level.", false, dispel.Icon);
maker.AddToGroups(FeatureGroup.Mercy);
//maker.AddToGroups(FeatureGroup.Mercy);
maker.AddPrerequisiteClassLevel("bfa11238e7ae3544bbeb4d0b92e897ec", 12);
maker.SetRanks(1);

Expand Down Expand Up @@ -84,16 +86,16 @@ void BuildInjured()


Sprite icon = BlueprintTools.GetBlueprint<BlueprintBuff>("9017213d83ccddb4ab720e0a0efe36ff").Icon;
BlueprintCore.Blueprints.CustomConfigurators.Classes.FeatureConfigurator maker = MakerTools.MakeFeature("MercyInjured", "Mercy - Injured", "The target gains fast healing 3 for a number of rounds equal to 1/2 the paladin’s level.", false, icon);
maker.AddToGroups(FeatureGroup.Mercy);
FeatureConfigurator maker = MakerTools.MakeFeature("MercyInjured", "Mercy - Injured", "The target gains fast healing 3 for a number of rounds equal to 1/2 the paladin’s level.", false, icon);
//maker.AddToGroups(FeatureGroup.Mercy);
maker.AddPrerequisiteClassLevel("bfa11238e7ae3544bbeb4d0b92e897ec", 9);
maker.SetRanks(1);



injured = maker.Configure();

BlueprintCore.Blueprints.CustomConfigurators.UnitLogic.Buffs.BuffConfigurator MercyFastHealingBuff = MakerTools.MakeBuff("MercyInjuredBuff", "Mercy: Injured", "Granted Fast Healing 3 by Lay On Hands", icon);
BuffConfigurator MercyFastHealingBuff = MakerTools.MakeBuff("MercyInjuredBuff", "Mercy: Injured", "Granted Fast Healing 3 by Lay On Hands", icon);
MercyFastHealingBuff.AddEffectContextFastHealing(bonus: new ContextValue() { Value = 3 }).SetIsClassFeature(true);
MercyFastHealingBuff.SetRanks(1);
ConditionsBuilder conditionsBuilder = ConditionsBuilder.New().CasterHasFact(injured.AssetGuidThreadSafe);
Expand Down Expand Up @@ -142,31 +144,15 @@ public static void AddToThings()
//string TTTExtraMercies = "6e76496c2748405d9946949977bd3e8d";
if (Settings.IsEnabled("mercyinjured"))
{
FeatureSelectionConfigurator.For("02b187038a8dce545bb34bbfb346428d").AddToAllFeatures(injured.AssetGuidThreadSafe).Configure();
try
{
//FeatureSelectionConfigurator.For(TTTExtraMercies).AddToAllFeatures(injured.AssetGuidThreadSafe).Configure();


}
catch (Exception e)
{
Main.TotFContext.Logger.Log("Outright error throwin trying to add to TTT selector");
}
FeatureConfigurator.For(injured).AddToGroups(FeatureGroup.Mercy).Configure();
//FeatureSelectionConfigurator.For("02b187038a8dce545bb34bbfb346428d").AddToAllFeatures(injured.AssetGuidThreadSafe).Configure();

}
if (Settings.IsEnabled("mercyensorcelled"))
{
FeatureSelectionConfigurator.For("02b187038a8dce545bb34bbfb346428d").AddToAllFeatures(ensorcelled.AssetGuidThreadSafe).Configure();
try
{
//FeatureSelectionConfigurator.For(TTTExtraMercies).AddToAllFeatures(ensorcelled.AssetGuidThreadSafe).Configure();


}
catch (Exception e)
{
Main.TotFContext.Logger.Log("Outright error throwin trying to add to TTT selector");
}
FeatureConfigurator.For(ensorcelled).AddToGroups(FeatureGroup.Mercy).Configure();
//FeatureSelectionConfigurator.For("02b187038a8dce545bb34bbfb346428d").AddToAllFeatures(ensorcelled.AssetGuidThreadSafe).Configure();

}
}
}
Expand Down
14 changes: 0 additions & 14 deletions TomeOfTheFirebird/New Content/WildTalents/AirsLeap.cs

This file was deleted.

3 changes: 0 additions & 3 deletions TomeOfTheFirebird/TomeOfTheFirebird.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,9 @@
<Compile Include="New Components\UnitPartDoTwinSpell.cs" />
<Compile Include="New Content\Archetypes\BanishingWarden.cs" />
<Compile Include="New Content\Archetypes\Beastmorph.cs" />
<Compile Include="New Content\Archetypes\CinderAdept.cs" />
<Compile Include="New Content\Archetypes\DivineConduit.cs" />
<Compile Include="New Content\Archetypes\DragonbloodChymist.cs" />
<Compile Include="New Content\Archetypes\EldritchScionSage.cs" />
<Compile Include="New Content\Archetypes\KineticLancer.cs" />
<Compile Include="New Content\Archetypes\SeasonalWitch.cs" />
<Compile Include="New Content\Bloodlines\PheonixBloodline.cs" />
<Compile Include="New Content\Bloodlines\DragonBloodlines.cs" />
Expand Down Expand Up @@ -334,7 +332,6 @@
<Compile Include="New Content\Spells\TODO\WardingWeapon.cs" />
<Compile Include="New Content\Spells\TODO\WingThorns.cs" />
<Compile Include="New Content\Spells\TODO\WreathOfBlades.cs" />
<Compile Include="New Content\WildTalents\AirsLeap.cs" />
<Compile Include="New Content\WildTalents\AirsReach.cs" />
<Compile Include="New Content\WildTalents\AngelicProtection.cs" />
<Compile Include="New Content\WildTalents\BasicKinesis.cs" />
Expand Down

0 comments on commit fbbc9ce

Please sign in to comment.