Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ThyWoof committed Apr 14, 2023
1 parent 01aea3a commit 5194df8
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 33 deletions.
2 changes: 1 addition & 1 deletion SolastaUnfinishedBusiness/Infusions/InfusionsBuilders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public static void Build()
powers.Add(power);
}

var masterPower = BuildInfuseItemPowerInvocation(2, name, sprite, FeatureDefinitionPowerSharedPoolBuilder
var masterPower = BuildInfuseItemPowerInvocation(1, name, sprite, FeatureDefinitionPowerSharedPoolBuilder
.Create($"Power{name}")
.SetGuiPresentation(name, Category.Feature, sprite)
.SetSharedPool(ActivationTime.Action, InventorClass.InfusionPool)
Expand Down
6 changes: 1 addition & 5 deletions SolastaUnfinishedBusiness/Subclasses/MartialTactician.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,10 @@ internal MartialTactician()
.AddFeaturesAtLevel(3, BuildEverVigilant(), BuildSharpMind(), GambitPool, Learn4Gambit)
.AddFeaturesAtLevel(7, BuildSharedVigilance(), BuildGambitPoolIncrease(), Learn2Gambit, unlearn, BuildGambitDieSize(DieType.D8))
.AddFeaturesAtLevel(10, strategicPlan, BuildGambitDieSize(DieType.D10))
.AddFeaturesAtLevel(15, BuildBattleClarity(), Learn2Gambit, unlearn)
.AddFeaturesAtLevel(15, BuildBattleClarity(), BuildGambitPoolIncrease(), Learn2Gambit, unlearn)
.AddFeaturesAtLevel(18, BuildTacticalSurge(), BuildGambitDieSize(DieType.D12))
.AddToDB();

// BACKWARD COMPATIBILITY
BuildGambitPoolIncrease(); // build PowerUseModifierTacticianGambitPool01
BuildGambitPoolIncrease(); // build PowerUseModifierTacticianGambitPool02

BuildGambits();
}

Expand Down
11 changes: 9 additions & 2 deletions SolastaUnfinishedBusiness/Subclasses/RoguishAcrobat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ internal RoguishAcrobat()
.AddFeaturesAtLevel(3,
proficiencyAcrobatConnoisseur,
attributeModifierAcrobatDefender,
featureAcrobatWarrior, powerHeroicUncannyDodge)
featureAcrobatWarrior)
.AddFeaturesAtLevel(9,
featureSetSwiftWind)
.AddFeaturesAtLevel(13,
Expand Down Expand Up @@ -223,6 +223,13 @@ public IEnumerator DefenderBeforeAttackHitConfirmed(
yield break;
}

var rulesetMe = me.RulesetCharacter;

if (!rulesetMe.CanUsePower(_featureDefinitionPower))
{
yield break;
}

if (!me.CanReact())
{
yield break;
Expand All @@ -248,7 +255,7 @@ public IEnumerator DefenderBeforeAttackHitConfirmed(

attackModifier.damageRollReduction = Int32.MaxValue;

GameConsoleHelper.LogCharacterUsedPower(me.RulesetCharacter, _featureDefinitionPower);
GameConsoleHelper.LogCharacterUsedPower(rulesetMe, _featureDefinitionPower);
}
}
}
37 changes: 14 additions & 23 deletions SolastaUnfinishedBusiness/Subclasses/SorcerousSorrAkkath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,23 +180,24 @@ internal SorcerousSorrAkkath()

const string TOUCH_OF_DARKNESS_NAME = $"FeatureSet{Name}{TouchOfDarkness}";

var effectTouchOfDarkness = EffectDescriptionBuilder
.Create()
.SetDurationData(DurationType.Instantaneous)
.SetParticleEffectParameters(VampiricTouch)
.SetTargetingData(Side.Enemy, RangeType.MeleeHit, 1, TargetType.IndividualsUnique)
.SetEffectForms(
EffectFormBuilder
.Create()
.SetDamageForm(DamageTypeNecrotic, 8, DieType.D8, 0, HealFromInflictedDamage.Half)
.Build())
.Build();

var powerTouchOfDarknessFixed = FeatureDefinitionPowerBuilder
.Create($"Power{Name}{TouchOfDarkness}Fixed")
.SetGuiPresentation(TOUCH_OF_DARKNESS_NAME, Category.Feature, VampiricTouch)
.SetUsesFixed(ActivationTime.Action, RechargeRate.LongRest, 1, 3)
.SetUseSpellAttack()
.SetEffectDescription(
EffectDescriptionBuilder
.Create()
.SetDurationData(DurationType.Instantaneous)
.SetParticleEffectParameters(VampiricTouch)
.SetTargetingData(Side.Enemy, RangeType.MeleeHit, 1, TargetType.IndividualsUnique)
.SetEffectForms(
EffectFormBuilder
.Create()
.SetDamageForm(DamageTypeNecrotic, 8, DieType.D8, 0, HealFromInflictedDamage.Half)
.Build())
.Build())
.SetEffectDescription(effectTouchOfDarkness)
.AddToDB();

powerTouchOfDarknessFixed.SetCustomSubFeatures(
Expand All @@ -207,17 +208,7 @@ internal SorcerousSorrAkkath()
.SetGuiPresentation(TOUCH_OF_DARKNESS_NAME, Category.Feature, VampiricTouch)
.SetUsesFixed(ActivationTime.Action, RechargeRate.SorceryPoints, 4, 0)
.SetUseSpellAttack()
.SetEffectDescription(
EffectDescriptionBuilder
.Create(VampiricTouch)
.SetDurationData(DurationType.Instantaneous)
.SetTargetingData(Side.Enemy, RangeType.MeleeHit, 1, TargetType.IndividualsUnique)
.SetEffectForms(
EffectFormBuilder
.Create()
.SetDamageForm(DamageTypeNecrotic, 8, DieType.D8, 0, HealFromInflictedDamage.Full)
.Build())
.Build())
.SetEffectDescription(effectTouchOfDarkness)
.AddToDB();

powerTouchOfDarknessPoints.SetCustomSubFeatures(
Expand Down
4 changes: 2 additions & 2 deletions SolastaUnfinishedBusiness/Subclasses/WayOfTheDiscordance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ internal WayOfTheDiscordance()
.SetEffectForms(
EffectFormBuilder
.Create()
.SetDamageForm(DamageTypePsychic, 1, DieType.D4)
.SetDamageForm(DamageTypeNecrotic, 1, DieType.D4)
.Build())
.Build())
.AddToDB();
Expand Down Expand Up @@ -88,7 +88,7 @@ internal WayOfTheDiscordance()
EffectFormBuilder
.Create()
.HasSavingThrow(EffectSavingThrowType.HalfDamage)
.SetDamageForm(DamageTypePsychic, 2 + i, DieType.D6)
.SetDamageForm(DamageTypeNecrotic, 2 + i, DieType.D6)
.Build(),
EffectFormBuilder
.Create()
Expand Down

0 comments on commit 5194df8

Please sign in to comment.