Skip to content

Commit

Permalink
fix: some things moved to SRL-T
Browse files Browse the repository at this point in the history
  • Loading branch information
Torwent committed Sep 30, 2024
1 parent 362c970 commit 644d4fa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
11 changes: 0 additions & 11 deletions utils/items/items.simba
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,11 @@ This file contains useful methods to extend the **TRSItem** and allow things lik
{$I WaspLib/utils.simba}
{$ENDIF}

function TRSItemArray.RandomValue(): TRSItem; constref;
begin
if Self <> [] then
Result := Self[Random(0, High(Self))];
end;

(*
## TRSItem.Reorder
```pascal
function TRSItem.Reorder(LowToHi: Boolean = True): TRSItem;
```
Used to retrieve reordered items.
Items that have several "doses" or "portions" like a Saradomin brew (1..4) might need to be reordered sometimes.
Expand Down Expand Up @@ -59,7 +52,6 @@ end;
```pascal
function TRSItem.GetPortions(): Int32;
```
Get the amount of portions in the multi dose item (an item with "(x..z)").
*)
function TRSItem.GetPortions(): Int32;
Expand All @@ -86,7 +78,6 @@ end;
```pascal
function TRSItem.GetPortion(): Int32;
```
Get the portion number of one specific Item.
Example:
Expand All @@ -113,7 +104,6 @@ end;
```pascal
function TRSItem.GetArray(): TRSItemArray;
```
Used to retrieve an item array of our multi dose/portion item.
Example:
Expand Down Expand Up @@ -157,7 +147,6 @@ end;
```pascal
function TRSItem.GetSingle(Lo: Boolean = True): TRSItem;
```
Used to retrieve the lowest or highest dose of our multi dose/portion item.
Example:
Expand Down
17 changes: 0 additions & 17 deletions utils/string.simba
Original file line number Diff line number Diff line change
Expand Up @@ -216,20 +216,3 @@ const
begin
Result := ExecRegExpr(REGEX, System.Trim(Self));
end;


function TStringArray.ToLower(): TStringArray;
var
i: Int32;
begin
for i := 0 to High(Self) do
Result += Self[i].Lower();
end;

function TStringArray.RandomValue(): String; constref;
begin
if Self <> [] then
Result := Self[System.Random(Low(Self), High(Self))];
end;


0 comments on commit 644d4fa

Please sign in to comment.