loottracker: add standard Casket

This commit is contained in:
leejt
2020-06-08 21:51:48 -07:00
committed by Adam
parent 90aa9ecc09
commit 48705635a2

View File

@@ -198,6 +198,8 @@ public class LootTrackerPlugin extends Plugin
"H.A.M. Member", "Woman"
);
private static final String CASKET_EVENT = "Casket";
private static final Set<Character> VOWELS = ImmutableSet.of('a', 'e', 'i', 'o', 'u');
@Inject
@@ -685,6 +687,7 @@ public class LootTrackerPlugin extends Plugin
|| HERBIBOAR_EVENT.equals(eventType)
|| HESPORI_EVENT.equals(eventType)
|| SEEDPACK_EVENT.equals(eventType)
|| CASKET_EVENT.equals(eventType)
|| lootRecordType == LootRecordType.PICKPOCKET)
{
WorldPoint playerLocation = client.getLocalPlayer().getWorldLocation();
@@ -719,6 +722,13 @@ public class LootTrackerPlugin extends Plugin
lootRecordType = LootRecordType.EVENT;
takeInventorySnapshot();
}
if (event.getMenuOption().equals("Open") && event.getId() == ItemID.CASKET)
{
eventType = CASKET_EVENT;
lootRecordType = LootRecordType.EVENT;
takeInventorySnapshot();
}
}
@Schedule(