Skip to content

Commit

Permalink
Fixed broken mod reference in black blade
Browse files Browse the repository at this point in the history
  • Loading branch information
Vek17 committed Mar 28, 2022
1 parent 90f2c2c commit e65b610
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
## Version 0.0.1
* Non final experimental release without stability garentees
## 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
2 changes: 1 addition & 1 deletion Repository.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Releases": [
{
"Id": "TabletopTweaks-Core",
"Version": "0.1.0"
"Version": "0.2.0"
}
]
}
2 changes: 1 addition & 1 deletion TabletopTweaks-Core/Info.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Original file line number Diff line number Diff line change
Expand Up @@ -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<UnitPartBlackBlade>();
part.AddBlackBlade(BlackBlade, base.Context, base.Fact);
}
Expand Down
2 changes: 1 addition & 1 deletion TabletopTweaks-Core/NewUnitParts/UnitPartBlackBlade.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public class UnitPartBlackBlade : OldStyleUnitPart {
[JsonProperty]
private string EnhancementBonus;

private static readonly BlueprintUnitProperty ProgressionProperty = BlueprintTools.GetModBlueprint<BlueprintUnitProperty>(modContext: TTTContext, "BlackBladeProgressionProperty");
private static readonly BlueprintUnitProperty ProgressionProperty = BlueprintTools.GetBlueprint<BlueprintUnitProperty>("100a63da46bd49e2a53392566a45ca41"); // Black Blade Property hard coded to maintain save compatability
private static readonly BlueprintWeaponEnchantment[] Enhancements = new BlueprintWeaponEnchantment[] {
BlueprintTools.GetBlueprint<BlueprintWeaponEnchantment>("d42fc23b92c640846ac137dc26e000d4"), //+1
BlueprintTools.GetBlueprint<BlueprintWeaponEnchantment>("eb2faccc4c9487d43b3575d7e77ff3f5"), //+2
Expand Down

0 comments on commit e65b610

Please sign in to comment.