loot tracker: add Wintertodt supply crate
This commit is contained in:
@@ -237,6 +237,8 @@ public class LootTrackerPlugin extends Plugin
|
|||||||
|
|
||||||
private static final String CASKET_EVENT = "Casket";
|
private static final String CASKET_EVENT = "Casket";
|
||||||
|
|
||||||
|
private static final String WINTERTODT_SUPPLY_CRATE_EVENT = "Supply crate (Wintertodt)";
|
||||||
|
|
||||||
// Soul Wars
|
// Soul Wars
|
||||||
private static final String SPOILS_OF_WAR_EVENT = "Spoils of war";
|
private static final String SPOILS_OF_WAR_EVENT = "Spoils of war";
|
||||||
private static final Set<Integer> SOUL_WARS_REGIONS = ImmutableSet.of(8493, 8749, 9005);
|
private static final Set<Integer> SOUL_WARS_REGIONS = ImmutableSet.of(8493, 8749, 9005);
|
||||||
@@ -786,6 +788,7 @@ public class LootTrackerPlugin extends Plugin
|
|||||||
|| HALLOWED_SEPULCHRE_COFFIN_EVENT.equals(eventType)
|
|| HALLOWED_SEPULCHRE_COFFIN_EVENT.equals(eventType)
|
||||||
|| HERBIBOAR_EVENT.equals(eventType)
|
|| HERBIBOAR_EVENT.equals(eventType)
|
||||||
|| HESPORI_EVENT.equals(eventType)
|
|| HESPORI_EVENT.equals(eventType)
|
||||||
|
|| WINTERTODT_SUPPLY_CRATE_EVENT.equals(eventType)
|
||||||
|| eventType.endsWith("Bird House")
|
|| eventType.endsWith("Bird House")
|
||||||
|| eventType.startsWith("H.A.M. chest")
|
|| eventType.startsWith("H.A.M. chest")
|
||||||
|| lootRecordType == LootRecordType.PICKPOCKET)
|
|| lootRecordType == LootRecordType.PICKPOCKET)
|
||||||
@@ -843,6 +846,12 @@ public class LootTrackerPlugin extends Plugin
|
|||||||
takeInventorySnapshot();
|
takeInventorySnapshot();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (event.getMenuOption().equals("Open") && (event.getId() == ItemID.SUPPLY_CRATE || event.getId() == ItemID.EXTRA_SUPPLY_CRATE))
|
||||||
|
{
|
||||||
|
setEvent(LootRecordType.EVENT, WINTERTODT_SUPPLY_CRATE_EVENT);
|
||||||
|
takeInventorySnapshot();
|
||||||
|
}
|
||||||
|
|
||||||
if (event.getMenuOption().equals("Open") && event.getId() == ItemID.SPOILS_OF_WAR)
|
if (event.getMenuOption().equals("Open") && event.getId() == ItemID.SPOILS_OF_WAR)
|
||||||
{
|
{
|
||||||
setEvent(LootRecordType.EVENT, SPOILS_OF_WAR_EVENT);
|
setEvent(LootRecordType.EVENT, SPOILS_OF_WAR_EVENT);
|
||||||
|
|||||||
Reference in New Issue
Block a user