Skip to content

Commit

Permalink
Updated Aivu weapons
Browse files Browse the repository at this point in the history
  • Loading branch information
Vek17 committed Jun 16, 2024
1 parent a3dcfdd commit 8c4f256
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* Azata
* Updated Aivu's breath weapon DC to 10 + 1/2 Hit Dice + Consitution Modifier + Azata Mythic Level
* Updated Aivu's stat scaling again to match the Havoc Dragon progression talbe based on the Hit Dice given by Owlcat
* Updated Aivu's weapon scaling

## Version 1.4.1
* Support for 2.3.0
Expand Down
1 change: 1 addition & 0 deletions TabletopTweaks-Reworks/Config/Blueprints.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"DragonAzataHeroismEffect": "5847d741-bd29-4b5a-aca7-4dab796ef4ec",
"DragonAzataStatGrowth": "45516388-8586-4d97-939b-e1bebb7fd142",
"DragonAzataTailSweep": "3862aecb-6951-4920-aad0-8324885ed044",
"DragonAzataWeaponOverrides": "c2a8a064-e9b0-4ce6-bc0d-e60d5e920b9d",
"LichDCProperty": "6d6551ff-9188-4ac0-8f8c-f31f877f8b96",
"TricksterPerception3Area": "7ab43cac-b718-48a9-96fd-0d68a7e3fcea",
"TricksterPerception3Buff": "935d1c3d-1f1f-44ad-9202-60f595c17da7",
Expand Down
33 changes: 33 additions & 0 deletions TabletopTweaks-Reworks/NewContent/Classes/Azata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using Kingmaker.UnitLogic.Mechanics;
using Kingmaker.UnitLogic.Mechanics.Components;
using Kingmaker.UnitLogic.Mechanics.Properties;
using TabletopTweaks.Core.NewComponents;
using TabletopTweaks.Core.NewComponents.OwlcatReplacements;
using TabletopTweaks.Core.NewComponents.Properties;
using TabletopTweaks.Core.Utilities;
Expand All @@ -29,6 +30,38 @@ public static void AddAzataFeatures() {
var DragonAzataArchetype = BlueprintTools.GetBlueprintReference<BlueprintArchetypeReference>("6e6135c91c2f84e46b7bb49f2158a9ce");
var DragonClass = BlueprintTools.GetBlueprintReference<BlueprintCharacterClassReference>("01a754e7c1b7c5946ba895a5ff0faffc");

var DragonAzataWeaponOverrides = Helpers.CreateBlueprint<BlueprintFeature>(TTTContext, "DragonAzataWeaponOverrides", bp => {
bp.SetName(TTTContext, "Dragon Weapon Overrides");
bp.SetDescription(TTTContext, "");
bp.ReapplyOnLevelUp = true;
bp.IsClassFeature = true;
bp.HideInUI = true;
bp.AddComponent<BonusStatDamageMultiplerReplacement>(c => {
c.CheckWeaponCategory = true;
c.WeaponCategory = WeaponCategory.Bite;
c.Multiplier = 1.5f;
});
bp.AddComponent<BonusStatDamageMultiplerReplacement>(c => {
c.CheckWeaponCategory = true;
c.WeaponCategory = WeaponCategory.Claw;
c.Multiplier = 1.0f;
});
bp.AddComponent<BonusStatDamageMultiplerReplacement>(c => {
c.CheckWeaponCategory = true;
c.WeaponCategory = WeaponCategory.Wing;
c.Multiplier = 0.5f;
});
bp.AddComponent<BonusStatDamageMultiplerReplacement>(c => {
c.CheckWeaponCategory = true;
c.WeaponCategory = WeaponCategory.Tail;
c.Multiplier = 1.5f;
});
bp.AddComponent<SecondaryWeaponOverride>(c => {
c.CheckWeaponCategory = true;
c.WeaponCategory = WeaponCategory.Tail;
c.IsSecondary = false;
});
});
var DragonAzataStatGrowth = Helpers.CreateBlueprint<BlueprintFeature>(TTTContext, "DragonAzataStatGrowth", bp => {
bp.SetName(TTTContext, "Mythic Draconic Growth");
bp.SetDescription(TTTContext, "Unlike normal animals of its kind, Aivu's Hit Dice, abilities, " +
Expand Down
5 changes: 5 additions & 0 deletions TabletopTweaks-Reworks/Patches/Azata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ static void PatchAivu() {
var DragonClass = BlueprintTools.GetBlueprintReference<BlueprintCharacterClassReference>("01a754e7c1b7c5946ba895a5ff0faffc");
var DragonAzataArchetype = BlueprintTools.GetBlueprint<BlueprintArchetype>("6e6135c91c2f84e46b7bb49f2158a9ce");

var DragonAzataWeaponOverrides = BlueprintTools.GetModBlueprintReference<BlueprintFeatureReference>(TTTContext, "DargonAzataWeaponOverrides");
var DragonAzataStatGrowth = BlueprintTools.GetModBlueprintReference<BlueprintFeatureReference>(TTTContext, "DragonAzataStatGrowth");
var DragonAzataTailSweep = BlueprintTools.GetModBlueprintReference<BlueprintUnitFactReference>(TTTContext, "DragonAzataTailSweep");
var DragonAzataDeadlyTail = BlueprintTools.GetModBlueprintReference<BlueprintUnitFactReference>(TTTContext, "DragonAzataDeadlyTail");
Expand All @@ -109,6 +110,10 @@ static void PatchAivu() {
c.m_PetType = PetType.AzataHavocDragon;
c.m_Feature = DragonAzataStatGrowth;
});
bp.AddComponent<AddFeatureToPet>(c => {
c.m_PetType = PetType.AzataHavocDragon;
c.m_Feature = DragonAzataWeaponOverrides;
});
TTTContext.Logger.LogPatch(bp);
});
//Reimplement Breath Weapon
Expand Down

0 comments on commit 8c4f256

Please sign in to comment.