diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f3c293e..1b1f1fff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2 +1,5 @@ -## Version 0.0.1 -* Non final experimental release without stability garentees \ No newline at end of file +## Version 0.1.1 +* Fixed issue with the black blade part having in inaccessible static reference. This now exists as a hardcoded ID to maintain save compatability with older saves. + +## Version 0.1.0 +* Non final experimental release without stability guarantees \ No newline at end of file diff --git a/Repository.json b/Repository.json index 0fd986b6..f7eb65f8 100644 --- a/Repository.json +++ b/Repository.json @@ -2,7 +2,7 @@ "Releases": [ { "Id": "TabletopTweaks-Core", - "Version": "0.1.0" + "Version": "0.2.0" } ] } \ No newline at end of file diff --git a/TabletopTweaks-Core/Info.json b/TabletopTweaks-Core/Info.json index 496bb1d1..5cbd0ae9 100644 --- a/TabletopTweaks-Core/Info.json +++ b/TabletopTweaks-Core/Info.json @@ -9,5 +9,5 @@ "ManagerVersion": "0.23.0", "Repository": "https://raw.githubusercontent.com/Vek17/TabletopTweaks-Core/master/Repository.json", "Requirements": [], - "Version": "0.1.0" + "Version": "0.1.1" } \ No newline at end of file diff --git a/TabletopTweaks-Core/NewComponents/AbilitySpecific/AddBlackBlade.cs b/TabletopTweaks-Core/NewComponents/AbilitySpecific/AddBlackBlade.cs index 9d553442..f4f6c983 100644 --- a/TabletopTweaks-Core/NewComponents/AbilitySpecific/AddBlackBlade.cs +++ b/TabletopTweaks-Core/NewComponents/AbilitySpecific/AddBlackBlade.cs @@ -21,7 +21,8 @@ public class AddBlackBlade : UnitFactComponentDelegate, IUnitLevelUpHandler { } public void HandleUnitAfterLevelUp(UnitEntityData unit, LevelUpController controller) { - //TTTContext.Logger.Log($"Mode: {controller.State.Mode}"); + Main.TTTContext.Logger.Log($"Owner: {base.Owner.UniqueId}"); + Main.TTTContext.Logger.Log($"Blade: {BlackBlade.deserializedGuid.m_Guid}"); var part = base.Owner.Ensure(); part.AddBlackBlade(BlackBlade, base.Context, base.Fact); } diff --git a/TabletopTweaks-Core/NewUnitParts/UnitPartBlackBlade.cs b/TabletopTweaks-Core/NewUnitParts/UnitPartBlackBlade.cs index 86f5afab..13f81b3c 100644 --- a/TabletopTweaks-Core/NewUnitParts/UnitPartBlackBlade.cs +++ b/TabletopTweaks-Core/NewUnitParts/UnitPartBlackBlade.cs @@ -86,7 +86,7 @@ public class UnitPartBlackBlade : OldStyleUnitPart { [JsonProperty] private string EnhancementBonus; - private static readonly BlueprintUnitProperty ProgressionProperty = BlueprintTools.GetModBlueprint(modContext: TTTContext, "BlackBladeProgressionProperty"); + private static readonly BlueprintUnitProperty ProgressionProperty = BlueprintTools.GetBlueprint("100a63da46bd49e2a53392566a45ca41"); // Black Blade Property hard coded to maintain save compatability private static readonly BlueprintWeaponEnchantment[] Enhancements = new BlueprintWeaponEnchantment[] { BlueprintTools.GetBlueprint("d42fc23b92c640846ac137dc26e000d4"), //+1 BlueprintTools.GetBlueprint("eb2faccc4c9487d43b3575d7e77ff3f5"), //+2