Guest User

Untitled

a guest
May 20th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.51 KB | None | 0 0
  1. function RunesExists: Boolean;
  2. var
  3.   I, J: Integer;
  4.   RuneArr: Array of ListItem;
  5.   TextArr: TStringArray;
  6.   InvItem: ListItem;
  7. begin
  8.   SetLength(RuneArr, 3);
  9.   SetLength(TextArr, 3);
  10.   RuneArr := [AirRune, WaterRune, LawRune];
  11.   TextArr := [AirRune.UpTextArr, WaterRune.UpTextArr, LawRune.UpTextArr];
  12.   for I := 1 to 28 do
  13.   begin
  14.     InvItem := GetInvItem(I);
  15.     for J := 0 to 2 do
  16.       if (CompareBlacklist(InvItem, RuneArr[J], TextArr[J], tab_Inv)) then
  17.         WriteLn('Found Rune')
  18.   end;
  19. end;
Add Comment
Please, Sign In to add comment