Skip to content

Commit 2ecaf21

Browse files
committed
tweaks to a pauwelz PR
1 parent 356f3d9 commit 2ecaf21

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

osrs/data/data.simba

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Enum representing item definition keys.
8484
Record responsible for holding item price data.
8585
*)
8686
TItemPriceData = record
87-
high, highTime, low, lowTime: Integer;
87+
High, HighTime, Low, LowTime: Integer;
8888
end;
8989

9090
procedure TItemData.UpdateFile();
@@ -263,10 +263,10 @@ begin
263263
if Self.Disabled then Exit;
264264
if not Self.PricesJSON.Item[0].GetObject(id, json) then Exit;
265265

266-
Result.high := json.Item['high'].AsInt;
267-
Result.highTime := json.Item['highTime'].AsInt;
268-
Result.low := json.Item['low'].AsInt;
269-
Result.lowTime := json.Item['lowTime'].AsInt;
266+
Result.High := json.Item['high'].AsInt;
267+
Result.HighTime := json.Item['highTime'].AsInt;
268+
Result.Low := json.Item['low'].AsInt;
269+
Result.LowTime := json.Item['lowTime'].AsInt;
270270
end;
271271

272272
(*
@@ -285,7 +285,10 @@ function TItemData.GetPrice(item: TRSItem): Integer;
285285
var
286286
priceData: TItemPriceData;
287287
begin
288-
if item.SimplifyName().Equals('coins', False) then Exit(1);
288+
case item of
289+
'coins', 'Coins', '995', '996', '997', '998',
290+
'999', '1000', '1001', '1002', '1003', '1004': Exit(1);
291+
end;
289292

290293
priceData := Self.GetPriceData(item);
291294

0 commit comments

Comments
 (0)