aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authornea <romangraef@gmail.com>2022-07-12 02:40:32 +0200
committernea <romangraef@gmail.com>2022-07-12 02:40:32 +0200
commitf38206401e76303f04c7d82f24cbd1fa034d354f (patch)
treeaa58289977b7b1bd804b3d59f5b543083edb1a7f /src/test
downloadneurepoparsing-f38206401e76303f04c7d82f24cbd1fa034d354f.tar.gz
neurepoparsing-f38206401e76303f04c7d82f24cbd1fa034d354f.tar.bz2
neurepoparsing-f38206401e76303f04c7d82f24cbd1fa034d354f.zip
Initial commit
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/TestMain.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/test/java/TestMain.java b/src/test/java/TestMain.java
new file mode 100644
index 0000000..693e3ba
--- /dev/null
+++ b/src/test/java/TestMain.java
@@ -0,0 +1,24 @@
+import io.github.moulberry.repo.NEURepository;
+import io.github.moulberry.repo.NEURepositoryException;
+import io.github.moulberry.repo.NEURepositoryVersion;
+
+import java.nio.file.Paths;
+
+public class TestMain {
+ public static void main(String[] args) throws NEURepositoryException {
+ System.out.printf("Parser v%s%n", NEURepositoryVersion.REPOSITORY_PARSER_VERSION);
+ System.out.printf("Schema %d.%d%n", NEURepositoryVersion.REPOSITORY_SCHEMA_VERSION_MAJOR, NEURepositoryVersion.REPOSITORY_SCHEMA_VERSION_MINOR);
+
+ NEURepository repository = NEURepository.of(Paths.get("NotEnoughUpdates-REPO"));
+ repository.reload();
+ System.out.println("pet mf (115): " + repository.getConstants().getBonuses().getPetRewards(115));
+ System.out.println("skill reward (combat 60): " + repository.getConstants().getBonuses().getAccumulativeLevelingRewards("skill_combat", 60));
+ System.out.println("parent of FLAWED_AMETHYST_GEM: " + repository.getConstants().getParents().getParent("FLAWED_AMETHYST_GEM"));
+ System.out.println("enchants for a sword: " + repository.getConstants().getEnchants().getAvailableEnchants("SWORD"));
+ System.out.println("conflicting enchants with sharpness: " + repository.getConstants().getEnchants().getConflictingEnchants("sharpness"));
+ System.out.println("upgrade cost for HOT_CRIMSON_HELMET: " + repository.getConstants().getEssenceCost().getCosts().get("HOT_CRIMSON_HELMET"));
+ System.out.println("first fairy soul in the hub: " + repository.getConstants().getFairySouls().getSoulLocations().get("hub").get(0));
+ System.out.println("soul total: " + repository.getConstants().getFairySouls().getMaxSouls());
+ System.out.println("minecraft item of ASPECT_OF_THE_END: "+repository.getItems().getItemBySkyblockId("ASPECT_OF_THE_END").getMinecraftItemId());
+ }
+}