Skip to content

Commit 3644688

Browse files
authored
Rename shop functions for clarity
1 parent 34a51f8 commit 3644688

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

osrs/interfaces/mainscreen/shop.simba

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Main record to interact with the {ref}`Shop` interface.
4040
end;
4141

4242
(*
43-
## Bank.FindItemBoundaries
43+
## Shop.FindItemBoundaries
4444
```pascal
4545
function TRSShop.FindItemBoundaries(): TBoxArray;
4646
```
@@ -238,15 +238,15 @@ begin
238238
end;
239239

240240
(*
241-
## Shop.BuyItemValue
241+
## Shop.BuyAtValue
242242
```pascal
243-
function TRSShop.BuyItemValue(item: TRSItem; quantity: Integer; price: Integer): Boolean;
243+
function TRSShop.BuyAtValue(item: TRSItem; quantity: Integer; price: Integer): Boolean;
244244
```
245245
Attempts to buy the specified item from the shop at a specific price using the value option.
246246

247247
Example:
248248
```pascal
249-
WriteLn Shop.BuyItemValue('Coins', 10, 100);
249+
WriteLn Shop.BuyAtValue('Gold ore', 10, 100);
250250
```
251251
*)
252252
function TRSShop.BuyAtValue(item: TRSItem; quantity: Integer; price: Integer): Boolean;
@@ -306,7 +306,7 @@ Returns the price of an item in the shop by examining it.
306306

307307
Example:
308308
```pascal
309-
WriteLn Shop.GetPrice('Coins');
309+
WriteLn Shop.GetPrice('Gold ore');
310310
```
311311
*)
312312
function TRSShop.GetPrice(item: TRSItem): Integer;

0 commit comments

Comments
 (0)