Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
ThyWoof committed Jul 10, 2024
1 parent 2b299ff commit 45fd548
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
2 changes: 0 additions & 2 deletions SolastaUnfinishedBusiness/Feats/ArmorFeats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ namespace SolastaUnfinishedBusiness.Feats;

internal static class ArmorFeats
{
internal const string ConditionShieldTechniquesResistanceName = "ConditionShieldTechniquesResistance";

// this is entirely implemented on rulesetCharacterHero transpiler using context validations below
// they change max dexterity to 3 and remove any instance of Stealth Disadvantage checks
private static readonly FeatDefinition FeatMediumArmorMaster = FeatDefinitionBuilder
Expand Down
11 changes: 0 additions & 11 deletions SolastaUnfinishedBusiness/Patches/RulesetActorPatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
using SolastaUnfinishedBusiness.Api.Helpers;
using SolastaUnfinishedBusiness.Api.LanguageExtensions;
using SolastaUnfinishedBusiness.Behaviors.Specific;
using SolastaUnfinishedBusiness.Feats;
using SolastaUnfinishedBusiness.Interfaces;
using SolastaUnfinishedBusiness.Models;
using SolastaUnfinishedBusiness.Subclasses;
Expand Down Expand Up @@ -674,16 +673,6 @@ private static void EnumerateIDamageAffinityProvider(
.Where(definition => definition is IDamageAffinityProvider));
}
}

[UsedImplicitly]
public static void Postfix(RulesetActor __instance, ref int __result)
{
//TODO: convert to an interface if ever required
if (__instance.HasConditionOfType(ArmorFeats.ConditionShieldTechniquesResistanceName))
{
__result /= 2;
}
}
}

[HarmonyPatch(typeof(RulesetActor), nameof(RulesetActor.RollDiceAndSum))]
Expand Down

0 comments on commit 45fd548

Please sign in to comment.