-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
976 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
using BlueprintCore.Blueprints.CustomConfigurators.Classes; | ||
using BlueprintCore.Utils; | ||
using Kingmaker.Blueprints; | ||
using Kingmaker.Blueprints.Classes; | ||
using Kingmaker.Blueprints.Classes.Selection; | ||
using Kingmaker.UnitLogic.FactLogic; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using TabletopTweaks.Core.Utilities; | ||
|
||
namespace TomeOfTheFirebird.Modified_Content.Classes | ||
{ | ||
class Witch | ||
{ | ||
public static void FixIcons() | ||
{ | ||
if (Settings.IsDisabled("FixWitchSpellIcons")) | ||
return; | ||
|
||
var bloodlineselector = BlueprintTool.Get<BlueprintFeatureSelection>("381cf4c890815d049a4420c6f31d063f"); | ||
|
||
foreach (var v in bloodlineselector.m_AllFeatures) | ||
{ | ||
var v2 = BlueprintTools.GetBlueprint<BlueprintProgression>(v.Guid); | ||
if (v2 != null) | ||
{ | ||
ProgressionConfigurator.For(v2).ModifyLevelEntries(x => | ||
{ | ||
foreach (var q in x.m_Features) | ||
{ | ||
var feature = q.Get(); | ||
AddKnownSpell referant = feature.GetComponent<AddKnownSpell>(); | ||
if (referant != null) | ||
{ | ||
FeatureConfigurator.For(feature).SetIcon(referant.m_Spell.Get().Icon).Configure(); | ||
} | ||
Main.TotFContext.Logger.LogPatch($"Patched Icon on", feature); | ||
} | ||
}).Configure(); | ||
} | ||
} | ||
|
||
} | ||
|
||
} | ||
} |
1 change: 1 addition & 0 deletions
1
TomeOfTheFirebird/Modified Content/ImprovedMultiarchetypeProjct/FighterCombatBoosts.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
TomeOfTheFirebird/Modified Content/ImprovedMultiarchetypeProjct/WitchPatronUpgrade.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using BlueprintCore.Utils; | ||
using Kingmaker.Blueprints.Classes; | ||
using Kingmaker.Blueprints.Classes.Selection; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace TomeOfTheFirebird.Modified_Content.ImprovedMultiarchetypeProjct | ||
{ | ||
class WitchPatronUpgrade | ||
{ | ||
public static void Handle() | ||
{ | ||
List<BlueprintProgression> MasterList = new(); | ||
BlueprintFeatureSelection master = BlueprintTool.Get<BlueprintFeatureSelection>("381cf4c890815d049a4420c6f31d063f"); | ||
foreach(var patron in master.m_AllFeatures) | ||
{ | ||
var progression = BlueprintTool.Get<BlueprintProgression>(patron.Guid.ToString()); | ||
if (progression != null)//Failsafe for when I do Celestial Agenda | ||
{ | ||
|
||
} | ||
|
||
} | ||
|
||
|
||
} | ||
|
||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
TomeOfTheFirebird/Modified Content/Items/RadianceUpgrades.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace TomeOfTheFirebird.Modified_Content.Items | ||
{ | ||
class RadianceUpgrades | ||
{ | ||
//Rescue Yaniel Upgrade - I THINK this would just be making the enhancement upgrade | ||
//When wielded by a paladin, this sacred weapon provides spell resistance of 5 + the paladin’s class level to the wielder and anyone adjacent to her. It also enables the paladin to use greater dispel magic (once per round as a standard action) at the class level of the paladin. Only the area dispel is possible, not the targeted dispel or counterspell versions of greater dispel magic. | ||
|
||
|
||
//Vs Deskari - keep the +6 | ||
//This +3 cold iron longsword becomes a +5 holy defiantUE cold iron longsword in the hands of a paladin or a lawful good mythic creature. If the creature wielding this weapon is a paladin with mythic tiers, she can also grant the weapon the brilliant energy special ability on command. Dismissing the brilliant energy ability is a free action. | ||
|
||
//Defiant: This special ability can only be placed on melee weapons. A defiant weapon helps its wielder stay alive in desperate conditions. It stays in its wielder’s hand even if she is panicked, stunned, or unconscious. She adds the weapon’s enhancement bonus as a bonus on checks to stabilize when dying and on saving throws to end ongoing conditions such as disease, poison, and hold person. If the wielder possesses Heroic Defiance, Heroic Recovery, Improved Great Fortitude, Improved Iron Will, or Improved Lightning Reflexes, she gains a number of additional daily uses equal to the weapon’s enhancement bonus that can be used on any of these feats. | ||
|
||
//When wielded by a paladin or a lawful good mythic creature, this weapon provides spell resistance equal to 5 + the character’s paladin class level (if any) + the character’s mythic tier(if any) to the wielder and anyone within 10 feet of her.It also enables the wielder to use mythic greater dispel magic once per round as a standard action, with a caster level equal to either the wielder’s paladin class level or double her mythic tier, whichever is higher.Mythic greater dispel magic functions as greater dispel magic including the benefits of the mythic dispel magic spell, but when the wielder dispels a spell, she heals 1d6 points of damage for every spell level of the dispelled spell instead of healing 1d4 points of damage. | ||
|
||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
TomeOfTheFirebird/New Components/Prerequisites/PrerequisiteArchetypeCantTakeWithX.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
using JetBrains.Annotations; | ||
using Kingmaker.Blueprints; | ||
using Kingmaker.Blueprints.Classes.Prerequisites; | ||
using Kingmaker.Blueprints.Classes.Selection; | ||
using Kingmaker.UnitLogic; | ||
using Kingmaker.UnitLogic.Class.LevelUp; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace TomeOfTheFirebird.New_Components.Prerequisites | ||
{ | ||
class PrerequisiteArchetypeCantTakeWithX : Prerequisite | ||
{ | ||
|
||
public List<BlueprintArchetypeReference> blockedArchetypes = new(); | ||
|
||
public BlueprintFeatureSelectionReference blocked; | ||
|
||
public override bool CheckInternal([CanBeNull] FeatureSelectionState selectionState, [NotNull] UnitDescriptor unit, [CanBeNull] LevelUpState state) | ||
{ | ||
if (selectionState.Selection is BlueprintFeatureSelection selection) | ||
{ | ||
if (selection.ToReference<BlueprintFeatureSelectionReference>().Equals(blocked)) | ||
{ | ||
foreach(var arch in blockedArchetypes) | ||
{ | ||
if (unit.Progression.IsArchetype(arch)) | ||
return false; | ||
} | ||
|
||
} | ||
} | ||
|
||
return true; | ||
} | ||
|
||
public override string GetUITextInternal(UnitDescriptor unit) | ||
{ | ||
return ""; | ||
} | ||
} | ||
} |
Oops, something went wrong.