From fa9379d18360e11559cb27dfe3314c7c183bd2b1 Mon Sep 17 00:00:00 2001 From: Sean Petrie Date: Fri, 3 Sep 2021 17:58:23 -0500 Subject: [PATCH] Added Exploiter Wizard to Arcanist logic --- CHANGELOG.md | 4 ++++ Repository.json | 2 +- TabletopTweaks/NewContent/ArcanistExploits/Familiar.cs | 5 ++--- TabletopTweaks/NewContent/ArcanistExploits/ItemCrafting.cs | 2 +- .../NewContent/ArcanistExploits/MetamagicKnowledge.cs | 2 +- TabletopTweaks/NewContent/ArcanistExploits/QuickStudy.cs | 2 +- TabletopTweaks/Utilities/FeatTools.cs | 7 +++++++ 7 files changed, 17 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cfd37c7c..9f8ca5db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## Version 1.0.2 +* updated arcane reservoir fix to be self healing +* fixed issue where new Arcanist exploits were not available to exploiter wizard + ## Version 1.0.1 * fixed arcane reservoir sometimes removing too many points on rest * fixed second breath diff --git a/Repository.json b/Repository.json index 956f8084..88d7ee08 100644 --- a/Repository.json +++ b/Repository.json @@ -2,7 +2,7 @@ "Releases": [ { "Id": "TabletopTweaks", - "Version": "1.0.0" + "Version": "1.0.2" } ] } \ No newline at end of file diff --git a/TabletopTweaks/NewContent/ArcanistExploits/Familiar.cs b/TabletopTweaks/NewContent/ArcanistExploits/Familiar.cs index 751e939c..bde25555 100644 --- a/TabletopTweaks/NewContent/ArcanistExploits/Familiar.cs +++ b/TabletopTweaks/NewContent/ArcanistExploits/Familiar.cs @@ -7,8 +7,7 @@ namespace TabletopTweaks.NewContent.ArcanistExploits { static class Familiar { public static void AddFamiliar() { - //Used Assets - var ArcanistExploitSelection = Resources.GetBlueprint("b8bf3d5023f2d8c428fdf6438cecaea7"); + //Used Asset var WitchFamiliarSelection = Resources.GetBlueprint("29a333b7ccad3214ea3a51943fa0d8e9"); var ArcanistExploitFamiliar = Helpers.CreateBlueprint("ArcanistExploitFamiliar", bp => { @@ -22,7 +21,7 @@ public static void AddFamiliar() { bp.Ranks = 1; }); if (ModSettings.AddedContent.ArcanistExploits.DisableAll || !ModSettings.AddedContent.ArcanistExploits.Enabled["Familiar"]) { return; } - ArcanistExploitSelection.AddFeatures(ArcanistExploitFamiliar); + FeatTools.AddAsArcanistExploit(ArcanistExploitFamiliar); } } } diff --git a/TabletopTweaks/NewContent/ArcanistExploits/ItemCrafting.cs b/TabletopTweaks/NewContent/ArcanistExploits/ItemCrafting.cs index 21895020..ee7cafd6 100644 --- a/TabletopTweaks/NewContent/ArcanistExploits/ItemCrafting.cs +++ b/TabletopTweaks/NewContent/ArcanistExploits/ItemCrafting.cs @@ -25,7 +25,7 @@ public static void AddItemCrafting() { bp.IsClassFeature = true; }); if (ModSettings.AddedContent.ArcanistExploits.DisableAll || !ModSettings.AddedContent.ArcanistExploits.Enabled["ItemCrafting"]) { return; } - ArcanistExploitSelection.AddFeatures(ArcanistExploitItemCrafting); + FeatTools.AddAsArcanistExploit(ArcanistExploitItemCrafting); } } } diff --git a/TabletopTweaks/NewContent/ArcanistExploits/MetamagicKnowledge.cs b/TabletopTweaks/NewContent/ArcanistExploits/MetamagicKnowledge.cs index 9b6cd9a4..4eec2549 100644 --- a/TabletopTweaks/NewContent/ArcanistExploits/MetamagicKnowledge.cs +++ b/TabletopTweaks/NewContent/ArcanistExploits/MetamagicKnowledge.cs @@ -41,7 +41,7 @@ public static void AddMetamagicKnowledge() { bp.IsClassFeature = true; }); if (ModSettings.AddedContent.ArcanistExploits.DisableAll || !ModSettings.AddedContent.ArcanistExploits.Enabled["MetamagicKnowledge"]) { return; } - ArcanistExploitSelection.AddFeatures(ArcanistExploitMetamagicKnowledge); + FeatTools.AddAsArcanistExploit(ArcanistExploitMetamagicKnowledge); } } } \ No newline at end of file diff --git a/TabletopTweaks/NewContent/ArcanistExploits/QuickStudy.cs b/TabletopTweaks/NewContent/ArcanistExploits/QuickStudy.cs index 20e8b031..7b52fdee 100644 --- a/TabletopTweaks/NewContent/ArcanistExploits/QuickStudy.cs +++ b/TabletopTweaks/NewContent/ArcanistExploits/QuickStudy.cs @@ -69,7 +69,7 @@ public static void AddQuickStudy() { }); if (ModSettings.AddedContent.ArcanistExploits.DisableAll || !ModSettings.AddedContent.ArcanistExploits.Enabled["QuickStudy"]) { return; } - ArcanistExploitSelection.AddFeatures(ArcanistExploitQuickStudy); + FeatTools.AddAsArcanistExploit(ArcanistExploitQuickStudy); } } } diff --git a/TabletopTweaks/Utilities/FeatTools.cs b/TabletopTweaks/Utilities/FeatTools.cs index e59abe17..122efdb7 100644 --- a/TabletopTweaks/Utilities/FeatTools.cs +++ b/TabletopTweaks/Utilities/FeatTools.cs @@ -37,6 +37,13 @@ public static void AddAsRogueTalent(BlueprintFeature feature) { }; TalentSelections.ForEach(selection => selection.AddFeatures(feature)); } + public static void AddAsArcanistExploit(BlueprintFeature feature) { + var TalentSelections = new BlueprintFeatureSelection[] { + Resources.GetBlueprint("2ba8a0040e0149e9ae9bfcb01a8ff01d"), //ExploiterExploitSelection + Resources.GetBlueprint("b8bf3d5023f2d8c428fdf6438cecaea7"), //ArcanistExploitSelection + }; + TalentSelections.ForEach(selection => selection.AddFeatures(feature)); + } public static BlueprintFeature CreateSkillFeat(string name, StatType skill1, StatType skill2, Action init = null) { var SkillFeat = Helpers.CreateBlueprint(name, bp => { bp.Ranks = 1;