Skip to content

Commit

Permalink
compatibility for 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
pheonix99 committed Nov 22, 2023
1 parent fbbc9ce commit 8018d5d
Show file tree
Hide file tree
Showing 10 changed files with 59 additions and 19 deletions.
8 changes: 8 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ NOW REQUIRES TabletopTweaks Core Module and ModMenu

## Changelog


### 1.4.18

Update for 2.2 / Lord Of Nothing (limited testing)

Added Summoner Interop (untested until summoner updates)


### 1.4.17

Fixed duplication of new mercies in menu
Expand Down
15 changes: 8 additions & 7 deletions TomeOfTheFirebird/Helpers/InteropHelpers.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
using BlueprintCore.Blueprints.CustomConfigurators.UnitLogic.Abilities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Kingmaker.Armies.TacticalCombat.Grid.TacticalCombatGrid;


namespace TomeOfTheFirebird.Helpers
{
Expand All @@ -22,7 +17,13 @@ public static AbilityConfigurator AddSpellToMedium(this AbilityConfigurator spel

public static AbilityConfigurator AddSpellToSummoner(this AbilityConfigurator spell, int level)
{

if (Settings.IsSummonerModEnabled())
{
spell.AddToSpellList(level, "d1ae05197677491eb236e0aa97080da1", true);

//Second summoner spell list
//92e4f9a45b6148dc87a7cc6aab966fd9
}

return spell;
}
Expand Down
5 changes: 3 additions & 2 deletions TomeOfTheFirebird/Helpers/MakerTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,12 @@ public static AbilityConfigurator MakeSpell(string systemName, string displayNam

LocalizedString name = null;
LocalizedString desc = null;
Main.TotFContext.Logger.Log("About to try localization");
Main.LogDebug("About to try localization");
try
{
name = LocalizationTool.CreateString(systemName + ".Name", displayName);
desc = LocalizationTool.CreateString(systemName + ".Desc", description);
Main.TotFContext.Logger.Log("Localization done");
Main.LogDebug("Localization done");
}
catch(Exception e)
{
Expand All @@ -235,6 +235,7 @@ public static AbilityConfigurator MakeSpell(string systemName, string displayNam


var config = AbilityConfigurator.NewSpell(systemName, guid.ToString(),school, specialization, descriptors).SetDisplayName(name).SetDescription(desc).AddSpellComponent(school).SetLocalizedSavingThrow(savestring);
Main.LogDebug("AbilityConfigurator.NewSpell called");
if (icon != null)
config.SetIcon(icon);
if (durationString != null)
Expand Down
2 changes: 1 addition & 1 deletion TomeOfTheFirebird/Info.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Id": "TomeOfTheFirebird",
"DisplayName": "Tome Of The Firebird",
"Author": "pheonix99",
"Version": "1.4.17",
"Version": "1.4.18",
"ManagerVersion": "0.21.3",
"AssemblyName": "TomeOfTheFirebird.dll",
"EntryMethod": "TomeOfTheFirebird.Main.Load",
Expand Down
8 changes: 8 additions & 0 deletions TomeOfTheFirebird/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ static void OnSaveGUI(UnityModManager.ModEntry modEntry)

}

public static void LogDebug(string msg)
{
#if DEBUG
Main.TotFContext.Logger.Log(msg);
#endif

}


}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class AzataMythicList
*
* Level 7
* Prismatic Spray
* Holy Word / Word
* Holy Word / Word Of Chaos
* Greater Azata Aspect (as Angelic Aspect but custom)
*/

Expand Down
17 changes: 16 additions & 1 deletion TomeOfTheFirebird/New Content/Spells/EarthTremor.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using BlueprintCore.Blueprints.CustomConfigurators.UnitLogic.Abilities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand All @@ -8,6 +9,20 @@ namespace TomeOfTheFirebird.New_Content.Spells
{
class EarthTremor
{
public static void Make()
{



}

private static AbilityConfigurator SetupSubAbility(AbilityConfigurator abilityConfigurator)
{


return abilityConfigurator;
}

/*
* [PFS Legal] Earth Tremor
Source Ultimate Wilderness pg. 228
Expand Down
12 changes: 6 additions & 6 deletions TomeOfTheFirebird/New Content/WitchPatrons.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ void MakeEnchantment()
spells.Add("feb70aab86cc17f4bb64432c83737ac2");//COTW - command
spells.Add("fd4d9fd7f87575d47aafe2a64a6e2d8d");//COTW - laughter
spells.Add("e6048d85fc3294f4c92b21c8d7526b1f");//COTW - Cacophonus call
spells.Add("dd2918e4a77c50044acba1ac93494c36");//
spells.Add("d7cbd2004ce66a042aeab2e95a3c5c61");
spells.Add("dd2918e4a77c50044acba1ac93494c36");//Overwhelming Greif
spells.Add("d7cbd2004ce66a042aeab2e95a3c5c61");//Dominate Person
spells.Add("d316d3d94d20c674db2c24d7de96f6a7");//COTW - serentity
spells.Add("cbf3bafa8375340498b86a3313a11e2f");
spells.Add("");//irresiststable dange
Expand Down Expand Up @@ -212,13 +212,13 @@ void MakeMountain()
spells.Add("85067a04a97416949b5d1dbf986d93f3");
spells.Add("5181c2ed0190fc34b8a1162783af5bf4");
spells.Add("EarthTremor");//COTW used battering blast, lolno go for that tremor attack spell
spells.Add("d1afa8bc28c99104da7d784115552de5");
spells.Add("d1afa8bc28c99104da7d784115552de5");//Spike Stones
spells.Add("7c5d556b9a5883048bf030e20daebe31");//COTW used stoneskin, communal - using
spells.Add("e243740dfdb17a246b116b334ed0b165");//COTW used Stone To Flesh - hilariously niche but I don't think this game could cope with Flesh To Stone. Using
spells.Add("e243740dfdb17a246b116b334ed0b165");//COTW used Stone To Flesh - hilariously niche but I don't think this game could cope with Flesh To Stone. Need Replacement!
spells.Add("3ecd589cf1a55df42a3b66940ee93ea4");//Summong Greater Earth Elemental

spells.Add("65254c7a2cf18944287207e1de3e44e8");//Summong Elder Earth Elemental
spells.Add("01300baad090d634cb1a1b2defe068d6");//Summong Elder Earth Elemental
spells.Add("01300baad090d634cb1a1b2defe068d6");//Clashing Rocks
//Mountain (Heroes of the Wild pg. 13): 2nd — stone fist, 4th — stone call, 6th — stone shape, 8th — spike stones, 10th — wall of stone, 12th — flesh to stone, 14th — stone tell, 16th — repel metal or stone, 18th — clashing rocks.
}

Expand Down Expand Up @@ -298,7 +298,7 @@ void MakeSummer()
spells.Add("");//FlamingSphere - needs replacer
spells.Add("bf0accce250381a44b857d4af6c8e10d");//Searing Light
spells.Add("");//Greater flaming
spells.Add("WallOfFireAbility");//Wall of fire - from EC!
spells.Add("80189142f7c640f39195defdc9777b27");//Wall of fire - from EC!
spells.Add("093ed1d67a539ad4c939d9d05cfe192c");
spells.Add("1fca0ba2fdfe2994a8c8bc1f0f2fc5b1");//Sunbeam
spells.Add("e96424f70ff884947b06f41a765b7658");//Sunburst
Expand Down
7 changes: 7 additions & 0 deletions TomeOfTheFirebird/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ public static bool IsMediumModEnabled()
.Any();
}

public static bool IsSummonerModEnabled()
{
return UnityModManager.modEntries.Where(
mod => mod.Info.Id.Equals("WOTR_MAKING_FRIENDS") && mod.Enabled && !mod.ErrorOnLoading)
.Any();
}


private static string GetKey(string partialKey)
{
Expand Down
2 changes: 1 addition & 1 deletion TomeOfTheFirebird/TomeOfTheFirebird.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="ILRepack.MSBuild.Task" Version="2.0.13" />
<PackageReference Include="WW-Blueprint-Core" Version="2.8.0" />
<PackageReference Include="WW-Blueprint-Core" Version="2.8.4" />
</ItemGroup>
<!-- DLL Merging -->
<Target Name="ILRepack" AfterTargets="Build">
Expand Down

0 comments on commit 8018d5d

Please sign in to comment.