Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Disciple of the Pike's Weapon Training #757

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Disciple of the Pike can only choose Weapon Training in each group on…
…ce, and disabling the Advanced Weapon Training setting will address it. Implement the same workaround as for Sohei for Disciple.
cookEsandcream committed Dec 23, 2024
commit 9bfd328ce6a4eb75560e14e898be02ffa9ee3a22
5 changes: 5 additions & 0 deletions TabletopTweaks-Base/Bugfixes/Classes/Fighter.cs
Original file line number Diff line number Diff line change
@@ -94,6 +94,7 @@ void PatchAdvancedWeaponTraining() {
var AdvancedWeapontrainingSelection = BlueprintTools.GetModBlueprint<BlueprintFeatureSelection>(TTTContext, "AdvancedWeaponTrainingSelection");

var SoheiWeaponRankUpTrainingSelection = BlueprintTools.GetBlueprint<BlueprintFeatureSelection>("bcb63879905b4b00b44b6309d137935e");
var PikeDiscipleWeaponRankUpTrainingSelection = BlueprintTools.GetBlueprint<BlueprintFeatureSelection>("bc050eac79b34d4abf63e2f1152badad");

WeaponTrainingSelection.TemporaryContext(bp => {
bp.m_AllFeatures = bp.m_AllFeatures.Where(feature => !AdvancedWeapontrainingSelection.m_AllFeatures.Contains(feature)).ToArray();
@@ -116,6 +117,10 @@ void PatchAdvancedWeaponTraining() {
SoheiWeaponRankUpTrainingSelection.TemporaryContext(bp => {
bp.IgnorePrerequisites = true;
bp.HideInCharacterSheetAndLevelUp = false;
});
PikeDiscipleWeaponRankUpTrainingSelection.TemporaryContext(bp => {
bp.IgnorePrerequisites = true;
bp.HideInCharacterSheetAndLevelUp = false;
});

AdvancedWeapontrainingSelection.m_AllFeatures.ForEach(feature => {