Skip to content

Commit

Permalink
Added Exploiter Wizard to Arcanist logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Vek17 committed Sep 3, 2021
1 parent 2ba4d93 commit fa9379d
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Repository.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Releases": [
{
"Id": "TabletopTweaks",
"Version": "1.0.0"
"Version": "1.0.2"
}
]
}
5 changes: 2 additions & 3 deletions TabletopTweaks/NewContent/ArcanistExploits/Familiar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
namespace TabletopTweaks.NewContent.ArcanistExploits {
static class Familiar {
public static void AddFamiliar() {
//Used Assets
var ArcanistExploitSelection = Resources.GetBlueprint<BlueprintFeatureSelection>("b8bf3d5023f2d8c428fdf6438cecaea7");
//Used Asset
var WitchFamiliarSelection = Resources.GetBlueprint<BlueprintFeatureSelection>("29a333b7ccad3214ea3a51943fa0d8e9");

var ArcanistExploitFamiliar = Helpers.CreateBlueprint<BlueprintFeatureSelection>("ArcanistExploitFamiliar", bp => {
Expand All @@ -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);
}
}
}
2 changes: 1 addition & 1 deletion TabletopTweaks/NewContent/ArcanistExploits/ItemCrafting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
2 changes: 1 addition & 1 deletion TabletopTweaks/NewContent/ArcanistExploits/QuickStudy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
7 changes: 7 additions & 0 deletions TabletopTweaks/Utilities/FeatTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<BlueprintFeatureSelection>("2ba8a0040e0149e9ae9bfcb01a8ff01d"), //ExploiterExploitSelection
Resources.GetBlueprint<BlueprintFeatureSelection>("b8bf3d5023f2d8c428fdf6438cecaea7"), //ArcanistExploitSelection
};
TalentSelections.ForEach(selection => selection.AddFeatures(feature));
}
public static BlueprintFeature CreateSkillFeat(string name, StatType skill1, StatType skill2, Action<BlueprintFeature> init = null) {
var SkillFeat = Helpers.CreateBlueprint<BlueprintFeature>(name, bp => {
bp.Ranks = 1;
Expand Down

0 comments on commit fa9379d

Please sign in to comment.