From 4299428465c0497520a1491a8a802dd98b6287c4 Mon Sep 17 00:00:00 2001 From: WiredSpast Date: Sat, 3 Feb 2024 08:51:24 +0100 Subject: [PATCH] Updated catalog parsers to include Silver --- .../main/java/gearth/extensions/parsers/catalog/HOffer.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/G-Earth/src/main/java/gearth/extensions/parsers/catalog/HOffer.java b/G-Earth/src/main/java/gearth/extensions/parsers/catalog/HOffer.java index 6a9cb58..c5073de 100644 --- a/G-Earth/src/main/java/gearth/extensions/parsers/catalog/HOffer.java +++ b/G-Earth/src/main/java/gearth/extensions/parsers/catalog/HOffer.java @@ -13,6 +13,7 @@ public class HOffer { private int priceInCredits; private int priceInActivityPoints; private int activityPointType; + private int priceInSilver; private boolean giftable; private List products = new ArrayList<>(); private int clubLevel; @@ -28,6 +29,7 @@ public class HOffer { this.priceInCredits = packet.readInteger(); this.priceInActivityPoints = packet.readInteger(); this.activityPointType = packet.readInteger(); + this.priceInSilver = packet.readInteger(); this.giftable = packet.readBoolean(); int productCount = packet.readInteger(); @@ -65,6 +67,10 @@ public class HOffer { return activityPointType; } + public int getPriceInSilver() { + return priceInSilver; + } + public boolean isGiftable() { return giftable; }