From df57c01bd86c79b75e38e951a067097123358c4c Mon Sep 17 00:00:00 2001 From: Rico <97664519+Rico-Rodriguez@users.noreply.github.com> Date: Thu, 12 Feb 2026 15:17:08 -1000 Subject: [PATCH] Fix typo in TRSInventoryLayoutItem naming --- osrs/interfaces/handlers/inventory_layout.simba | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/osrs/interfaces/handlers/inventory_layout.simba b/osrs/interfaces/handlers/inventory_layout.simba index 138881eb..8b0d435b 100644 --- a/osrs/interfaces/handlers/inventory_layout.simba +++ b/osrs/interfaces/handlers/inventory_layout.simba @@ -11,22 +11,22 @@ You can configure the layouts manually but the recommended way is to use type (* -## TRSInventoryLayouItem +## TRSInventoryLayoutItem Type that represents a single inventory layout item. *) - TRSInventoryLayouItem = record + TRSInventoryLayoutItem = record Item: TRSItem; Amount: Integer; end; (* -## TRSInventoryLayouItem.ToJSON +## TRSInventoryLayoutItem.ToJSON ```pascal -function TRSInventoryLayouItem.ToJSON(): TJSONItem; +function TRSInventoryLayoutItem.ToJSON(): TJSONItem; ``` Convert the `TRSInventoryLayoutItem` into a `TJSONItem`. *) -function TRSInventoryLayouItem.ToJSON(): TJSONItem; +function TRSInventoryLayoutItem.ToJSON(): TJSONItem; begin Result := new TJSONObject(); Result.AddString('Item', Self.Item); @@ -40,7 +40,7 @@ Type that represents an entire inventory layout. *) TRSInventoryLayoutSlots = record Name: String; - Items: array [0..27] of TRSInventoryLayouItem; + Items: array [0..27] of TRSInventoryLayoutItem; end; (* @@ -66,7 +66,7 @@ Main type to user {ref}`Inventory Layouts`. *) TRSInventoryLayout = record Layout: TRSInventoryLayoutSlots; - Holding: array [0..27] of TRSInventoryLayouItem; + Holding: array [0..27] of TRSInventoryLayoutItem; BankItems: TRSBankItemArray; end; @@ -80,7 +80,7 @@ This is automatically called for you when it's needed. *) procedure TRSInventoryLayout.SetupBankItems(); var - items: array of TRSInventoryLayouItem; + items: array of TRSInventoryLayoutItem; i, hi, j, count: Integer; item: TRSItem; begin