loottracker: add imp jars

Co-authored-by: Shawn Shadrix <shshadri@ncsu.edu>
This commit is contained in:
Adam
2022-03-12 10:33:11 -05:00
parent 28d4ceb2b5
commit 08359a0df0

View File

@@ -265,6 +265,22 @@ public class LootTrackerPlugin extends Plugin
// Mahogany Homes
private static final String MAHOGANY_CRATE_EVENT = "Supply crate (Mahogany Homes)";
// Impling jars
private static final Set<Integer> IMPLING_JARS = ImmutableSet.of(
ItemID.BABY_IMPLING_JAR,
ItemID.YOUNG_IMPLING_JAR,
ItemID.GOURMET_IMPLING_JAR,
ItemID.EARTH_IMPLING_JAR,
ItemID.ESSENCE_IMPLING_JAR,
ItemID.ECLECTIC_IMPLING_JAR,
ItemID.NATURE_IMPLING_JAR,
ItemID.MAGPIE_IMPLING_JAR,
ItemID.NINJA_IMPLING_JAR,
ItemID.CRYSTAL_IMPLING_JAR,
ItemID.DRAGON_IMPLING_JAR,
ItemID.LUCKY_IMPLING_JAR
);
private static final Set<Character> VOWELS = ImmutableSet.of('a', 'e', 'i', 'o', 'u');
@Inject
@@ -939,6 +955,11 @@ public class LootTrackerPlugin extends Plugin
break;
}
}
else if (event.getMenuOption().equals("Loot") && IMPLING_JARS.contains(event.getId()))
{
String name = itemManager.getItemComposition(event.getId()).getName();
onInvChange(collectInvItems(LootRecordType.EVENT, name));
}
}
}