From 1836cbba12fa976f708f66799c040165dc753cc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=85=B0=EF=B8=8F=F0=9F=85=B0=EF=B8=8F=F0=9F=85=B0?= =?UTF-8?q?=EF=B8=8F1=EF=B8=8F=E2=83=A36=EF=B8=8F=E2=83=A32=EF=B8=8F?= =?UTF-8?q?=E2=83=A3=20=E2=9C=94=EF=B8=8F?= Date: Mon, 5 Jan 2026 19:54:28 -0600 Subject: [PATCH] feat: Added $__allitems - Add inventory allitems special identifier to list all item names --- MixItUp.Base/Model/Currency/InventoryModel.cs | 3 +++ MixItUp.Base/Util/SpecialIdentifierStringBuilder.cs | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/MixItUp.Base/Model/Currency/InventoryModel.cs b/MixItUp.Base/Model/Currency/InventoryModel.cs index 73a44a39a..997fa0c2d 100644 --- a/MixItUp.Base/Model/Currency/InventoryModel.cs +++ b/MixItUp.Base/Model/Currency/InventoryModel.cs @@ -189,6 +189,9 @@ public InventoryModel() [JsonIgnore] public string UniqueItemsTotalSpecialIdentifier { get { return string.Format("{0}uniqueitemstotal", this.SpecialIdentifier); } } + [JsonIgnore] + public string AllItemsSpecialIdentifier { get { return string.Format("{0}allitems", this.SpecialIdentifier); } } + [JsonIgnore] public string RandomItemSpecialIdentifier { get { return string.Format("{0}randomitem", this.SpecialIdentifier); } } diff --git a/MixItUp.Base/Util/SpecialIdentifierStringBuilder.cs b/MixItUp.Base/Util/SpecialIdentifierStringBuilder.cs index 1f1c29027..ee24ea883 100644 --- a/MixItUp.Base/Util/SpecialIdentifierStringBuilder.cs +++ b/MixItUp.Base/Util/SpecialIdentifierStringBuilder.cs @@ -831,6 +831,11 @@ await this.ReplaceNumberBasedRegexSpecialIdentifier(RandomNumberRegexSpecialIden { this.ReplaceSpecialIdentifier(inventory.UniqueItemsTotalSpecialIdentifier, inventory.Items.Count().ToString()); } + + if (this.ContainsSpecialIdentifier(inventory.AllItemsSpecialIdentifier)) + { + this.ReplaceSpecialIdentifier(inventory.AllItemsSpecialIdentifier, string.Join(", ", inventory.Items.Values.Select(i => i.Name))); + } } if (this.ContainsSpecialIdentifier(UnicodeRegexSpecialIdentifier))