loot tracker: Add Spoils of war (Soul Wars)
Ignore player loot while in Soul Wars regions
This commit is contained in:
@@ -227,6 +227,10 @@ public class LootTrackerPlugin extends Plugin
|
||||
|
||||
private static final String CASKET_EVENT = "Casket";
|
||||
|
||||
// Soul Wars
|
||||
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<Character> VOWELS = ImmutableSet.of('a', 'e', 'i', 'o', 'u');
|
||||
|
||||
@Inject
|
||||
@@ -487,8 +491,8 @@ public class LootTrackerPlugin extends Plugin
|
||||
@Subscribe
|
||||
public void onPlayerLootReceived(final PlayerLootReceived playerLootReceived)
|
||||
{
|
||||
// Ignore Last Man Standing player loots
|
||||
if (isPlayerWithinMapRegion(LAST_MAN_STANDING_REGIONS))
|
||||
// Ignore Last Man Standing and Soul Wars player loots
|
||||
if (isPlayerWithinMapRegion(LAST_MAN_STANDING_REGIONS) || isPlayerWithinMapRegion(SOUL_WARS_REGIONS))
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -763,6 +767,7 @@ public class LootTrackerPlugin extends Plugin
|
||||
|| SEEDPACK_EVENT.equals(eventType)
|
||||
|| CASKET_EVENT.equals(eventType)
|
||||
|| BIRDNEST_EVENT.equals(eventType)
|
||||
|| SPOILS_OF_WAR_EVENT.equals(eventType)
|
||||
|| eventType.endsWith("Bird House")
|
||||
|| eventType.startsWith("H.A.M. chest")
|
||||
|| lootRecordType == LootRecordType.PICKPOCKET)
|
||||
@@ -808,6 +813,12 @@ public class LootTrackerPlugin extends Plugin
|
||||
setEvent(LootRecordType.EVENT, CASKET_EVENT);
|
||||
takeInventorySnapshot();
|
||||
}
|
||||
|
||||
if (event.getMenuOption().equals("Open") && event.getId() == ItemID.SPOILS_OF_WAR)
|
||||
{
|
||||
setEvent(LootRecordType.EVENT, SPOILS_OF_WAR_EVENT);
|
||||
takeInventorySnapshot();
|
||||
}
|
||||
}
|
||||
|
||||
@Schedule(
|
||||
|
||||
Reference in New Issue
Block a user