diff --git a/http-api/src/main/java/net/runelite/http/api/loottracker/LootRecord.java b/http-api/src/main/java/net/runelite/http/api/loottracker/LootRecord.java index a8e04ae..1784672 100644 --- a/http-api/src/main/java/net/runelite/http/api/loottracker/LootRecord.java +++ b/http-api/src/main/java/net/runelite/http/api/loottracker/LootRecord.java @@ -41,4 +41,10 @@ public class LootRecord private Collection drops; private Instant time; private Integer world; + private int amount = 1; + + public LootRecord(String eventId, LootRecordType type, Object metadata, Collection drops, Instant time, Integer world) + { + this(eventId, type, metadata, drops, time, world, 1); + } } diff --git a/http-service/src/main/java/net/runelite/http/service/loottracker/LootTrackerController.java b/http-service/src/main/java/net/runelite/http/service/loottracker/LootTrackerController.java index 5e24fdb..2d22add 100644 --- a/http-service/src/main/java/net/runelite/http/service/loottracker/LootTrackerController.java +++ b/http-service/src/main/java/net/runelite/http/service/loottracker/LootTrackerController.java @@ -72,9 +72,9 @@ public void storeLootRecord(@RequestBody Collection records) meterRegistry.counter("runelite loottracker", "type", record.getType().name(), "name", record.getEventId()) - .increment(); + .increment(record.getAmount()); } } } } -} \ No newline at end of file +}