Skip to content

Commit

Permalink
loot tracker: add amount to LootRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
iProdigy authored May 19, 2024
1 parent c01e6e2 commit 11867cd
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 11867cd

Please sign in to comment.