Skip to content

Commit

Permalink
feat(api): add amount to LootRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
iProdigy committed Apr 20, 2024
1 parent d9e623f commit edf0d37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,10 @@ public class LootRecord
private Collection<GameItem> drops;
private Instant time;
private Integer world;
private int amount = 1;

public LootRecord(String eventId, LootRecordType type, Object metadata, Collection<GameItem> drops, Instant time, Integer world)
{
this(eventId, type, metadata, drops, time, world, 1);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ public void storeLootRecord(@RequestBody Collection<LootRecord> records)
meterRegistry.counter("runelite loottracker",
"type", record.getType().name(),
"name", record.getEventId())
.increment();
.increment(record.getAmount());
}
}
}
}
}
}

0 comments on commit edf0d37

Please sign in to comment.