diff --git a/ArtifactOfSequencing/ArtifactOfSequencing.cs b/ArtifactOfSequencing/ArtifactOfSequencing.cs index e1de29a..055bfa3 100644 --- a/ArtifactOfSequencing/ArtifactOfSequencing.cs +++ b/ArtifactOfSequencing/ArtifactOfSequencing.cs @@ -45,7 +45,7 @@ namespace Chev // Artifact info Artifact.nameToken = "Artifact of Sequencing"; - Artifact.descriptionToken = "Spawn with a single item of every tier. Any picked up items will be converted to the starting item of the same tier."; + Artifact.descriptionToken = "Spawn with a starting item of every tier. Any picked up items will be converted to the starting item of the same tier."; Artifact.smallIconSelectedSprite = LoadIcon(ArtifactOfSequencing.Properties.Resources.texArtifactSequencingEnabled); Artifact.smallIconDeselectedSprite = LoadIcon(ArtifactOfSequencing.Properties.Resources.texArtifactSequencingDisabled); @@ -83,9 +83,11 @@ namespace Chev /// private ItemDef RandomItem(ItemTier tier) { - ItemDef[] itemDefs = typeof(ItemCatalog).GetFieldValue("itemDefs"); + // Get all available items by tier + ItemIndex[] itemIndexesOfTier = Run.instance.availableItems.Where(item => ItemCatalog.GetItemDef(item).tier == tier).ToArray(); - ItemDef[] itemsOfTier = itemDefs.Where(item => item.tier == tier).ToArray(); + // Get ItemDefs from item indexes + ItemDef[] itemsOfTier = itemIndexesOfTier.Select(item => ItemCatalog.GetItemDef(item)).ToArray(); return itemsOfTier[_random.Next(0, itemsOfTier.Length)]; } diff --git a/ArtifactOfSequencing/Properties/texArtifactSequencingDisabled.png b/ArtifactOfSequencing/Properties/texArtifactSequencingDisabled.png index 1a6baaa..60a5e86 100644 Binary files a/ArtifactOfSequencing/Properties/texArtifactSequencingDisabled.png and b/ArtifactOfSequencing/Properties/texArtifactSequencingDisabled.png differ diff --git a/ArtifactOfSequencing/Properties/texArtifactSequencingEnabled.png b/ArtifactOfSequencing/Properties/texArtifactSequencingEnabled.png index d144c63..0fd2711 100644 Binary files a/ArtifactOfSequencing/Properties/texArtifactSequencingEnabled.png and b/ArtifactOfSequencing/Properties/texArtifactSequencingEnabled.png differ diff --git a/ArtifactOfSequencing/artifactSequencingDisabled.svg b/ArtifactOfSequencing/artifactSequencingDisabled.svg new file mode 100644 index 0000000..bf12fed --- /dev/null +++ b/ArtifactOfSequencing/artifactSequencingDisabled.svg @@ -0,0 +1,71 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + diff --git a/ArtifactOfSequencing/artifactSequencingEnabled.svg b/ArtifactOfSequencing/artifactSequencingEnabled.svg new file mode 100644 index 0000000..69d9617 --- /dev/null +++ b/ArtifactOfSequencing/artifactSequencingEnabled.svg @@ -0,0 +1,128 @@ + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + +