Skip to content

Commit

Permalink
Update for 2.0.2c
Browse files Browse the repository at this point in the history
  • Loading branch information
Vek17 committed Oct 20, 2022
1 parent 3ebe3f5 commit bdd1727
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 9 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## Version 2.4.3
* Fixes
* Removed Overtip Fixes as they are now in vanilla.
* Spells
* Magical Vestment
* Now properly handles loading and area changes.

## Version 2.4.2
* Fixes
* General
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-Base",
"Version": "2.4.2"
"Version": "2.4.3"
}
]
}
19 changes: 19 additions & 0 deletions TabletopTweaks-Base/Bugfixes/Classes/Alchemist.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ static void Postfix() {
PatchBase();
PatchGrenadier();
PatchIncenseSynthesizer();
PatchVivisectionist();
}
static void PatchBase() {
PatchMutagens();
Expand Down Expand Up @@ -279,6 +280,24 @@ void PatchThickFog() {
TTTContext.Logger.LogPatch("Patched", IncenseFogThickFogBuff);
}
}
static void PatchVivisectionist() {
//PatchMedicalDiscovery();

void PatchMedicalDiscovery() {
if (TTTContext.Fixes.Alchemist.Archetypes["Grenadier"].IsDisabled("BrewPotions")) { return; }

var GrenadierArchetype = BlueprintTools.GetBlueprint<BlueprintArchetype>("6af888a7800b3e949a40f558ff204aae");
var BrewPotions = BlueprintTools.GetBlueprint<BlueprintFeature>("c0f8c4e513eb493408b8070a1de93fc0");

GrenadierArchetype.RemoveFeatures = GrenadierArchetype.RemoveFeatures.AppendToArray(new LevelEntry() {
Level = 1,
m_Features = new List<BlueprintFeatureBaseReference>() {
BrewPotions.ToReference<BlueprintFeatureBaseReference>()
}
}); ;
TTTContext.Logger.LogPatch("Patched", GrenadierArchetype);
}
}
}
}
}
2 changes: 1 addition & 1 deletion TabletopTweaks-Base/Bugfixes/UI/OvertipFixes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace TabletopTweaks.Base.Bugfixes.UI {
class OvertipFixes {

[HarmonyPatch(typeof(OvertipsVM), "OnEventDidTrigger", new[] { typeof(RuleSavingThrow) })]
//[HarmonyPatch(typeof(OvertipsVM), "OnEventDidTrigger", new[] { typeof(RuleSavingThrow) })]
static class DisplayFix_OvertipsVM_SavingThrow_Patch {
static readonly MethodInfo RuleSavingThrow_SuccessBonus = AccessTools.PropertyGetter(typeof(RuleSavingThrow), "SuccessBonus");
static readonly MethodInfo RuleSavingThrow_StatValue = AccessTools.PropertyGetter(typeof(RuleSavingThrow), "StatValue");
Expand Down
4 changes: 2 additions & 2 deletions TabletopTweaks-Base/Info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"Id": "TabletopTweaks-Base",
"ManagerVersion": "0.23.0",
"Repository": "https://raw.githubusercontent.com/Vek17/TabletopTweaks-Base/master/Repository.json",
"Requirements": [ "TabletopTweaks-Core-0.5.1" ],
"Requirements": [ "TabletopTweaks-Core-0.5.3" ],
"LoadAfter": [ "TabletopTweaks-Core" ],
"Version": "2.4.2"
"Version": "2.4.3"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Kingmaker.Blueprints.Classes;
using Kingmaker.Blueprints.Classes.Prerequisites;
using Kingmaker.Blueprints.Classes.Selection;
using Kingmaker.Designers.Mechanics.Facts;
using Kingmaker.UnitLogic.ActivatableAbilities;
using Kingmaker.UnitLogic.Buffs.Blueprints;
using Kingmaker.UnitLogic.FactLogic;
Expand Down Expand Up @@ -45,11 +46,11 @@ public static void AddFocusedWeapon() {
bp.SetDescription(FocusedWeaponBuff.m_Description);
bp.ParameterType = FeatureParameterType.WeaponCategory;
bp.m_Prerequisite = WeaponFocus.ToReference<BlueprintParametrizedFeatureReference>();
bp.AddComponent(Helpers.Create<AddFacts>(c => {
c.m_Facts = new BlueprintUnitFactReference[] {
FocusedWeaponToggleAbility.ToReference<BlueprintUnitFactReference>(),
};
}));
bp.AddComponent<AddFeatureIfHasFact>(c => {
c.m_Feature = FocusedWeaponToggleAbility.ToReference<BlueprintUnitFactReference>();
c.m_CheckedFact = FocusedWeaponToggleAbility.ToReference<BlueprintUnitFactReference>();
c.Not = true;
});
bp.AddPrerequisites(Helpers.Create<PrerequisiteClassLevel>(c => {
c.m_CharacterClass = FighterClass.ToReference<BlueprintCharacterClassReference>();
c.Level = 9;
Expand Down
1 change: 1 addition & 0 deletions TabletopTweaks-Base/TabletopTweaks-Base.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@
<Compile Include="Bugfixes\Features\Feats.cs" />
<Compile Include="Bugfixes\Features\MythicAbilities.cs" />
<Compile Include="Bugfixes\Features\MythicFeats.cs" />
<Compile Include="Bugfixes\Features\Tailwinds.cs" />
<Compile Include="Bugfixes\General\AreaOfEffectsTick.cs" />
<Compile Include="Bugfixes\General\ArmorEnhancementBonuses.cs" />
<Compile Include="Bugfixes\General\PrebuffCasterCLFix.cs" />
Expand Down

0 comments on commit bdd1727

Please sign in to comment.