Skip to content

Commit

Permalink
Whatever, typo, GlassShield should be an item + making all added item…
Browse files Browse the repository at this point in the history
…s discovered
  • Loading branch information
Intybyte committed Dec 7, 2024
1 parent 9736b3b commit 27332ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CustomItems/Patches/ItemManagerPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ internal class ItemManagerPatch
public static void Postfix(
ItemManager __instance,
List<InventoryItem> ___workingItems,
List<SetBase> ___workingSets)
List<SetBase> ___workingSets,
List<string> ___discoveredItemSets)
{
Debug.Log("Init start");
itemManager = __instance;
Expand Down Expand Up @@ -48,6 +49,7 @@ public static void Postfix(
registry.Init();
___workingItems.AddRange(registry.addedItems.Values);
___workingSets.AddRange(registry.addedSets.Values);
___discoveredItemSets.AddRange(registry.addedSets.Keys);
}
}
}
2 changes: 1 addition & 1 deletion CustomItems/Registry/ItemRegistry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void Init()
.Sprite("Glass Shield");

var glassShield = ScriptableObject.CreateInstance<GlassShield>()
.DefineKind(ItemRarity.COMMON, ItemType.WEAPON)
.DefineKind(ItemRarity.COMMON, ItemType.INVENTORY)
.Tags(ItemTag.STONE);

glassShieldEffects.BuildOn(glassShield);
Expand Down

0 comments on commit 27332ba

Please sign in to comment.